/* Mad Catz Gaming - Page Specific Styles */
/* Depends on main.css for CSS variables and base styles */

/* ===== STATS BANNER ===== */
.mc-stats-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 52px 0;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    position: relative;
    overflow: hidden;
}

/* Subtle gaming-grid overlay on stats */
.mc-stats-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Glow blob centre */
.mc-stats-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.mc-stats-banner .section {
    padding: 0;
    position: relative;
    z-index: 1;
}

.mc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.mc-stats-grid > div {
    padding: 12px 20px;
    position: relative;
}

/* Vertical separator between stats */
.mc-stats-grid > div:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(14, 165, 233, 0.3), transparent);
}

.mc-stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1;
    text-shadow: 0 0 24px rgba(14, 165, 233, 0.45);
    letter-spacing: -1px;
}

.mc-stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===== PRODUCT CARDS ===== */
.mc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.mc-product-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Top accent line — visible on hover */
.mc-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.mc-product-card:hover {
    transform: translateY(-7px) scale(1.01);
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.09),
        0 0 0 1px rgba(14, 165, 233, 0.25),
        0 0 30px rgba(14, 165, 233, 0.08);
    border-color: transparent;
}

.mc-product-card:hover::before {
    opacity: 1;
}

/* Product image area — sfondo neutro chiaro, coerente con tutte le immagini */
.mc-product-img {
    height: 200px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.mc-product-img img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

.mc-product-card:hover .mc-product-img img {
    transform: scale(1.08) translateY(-3px);
}

.mc-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.mc-product-body {
    padding: 18px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mc-product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.mc-product-desc {
    font-size: 0.81rem;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.45;
}

.mc-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}

.mc-product-tag {
    background: rgba(14, 165, 233, 0.07);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.18);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.mc-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
    margin-top: auto;
}

.mc-btn-action {
    padding: 9px 6px;
    font-size: 0.7rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.mc-btn-buy {
    background: var(--accent);
    color: white;
}
.mc-btn-buy:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.mc-btn-try {
    background: var(--primary);
    color: white;
}
.mc-btn-try:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.mc-btn-wa {
    background: #25d366;
    color: white;
}
.mc-btn-wa:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ===== SECTION LABEL CHIP ===== */
.mc-section-label {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* ===== 4-CARD BENEFITS GRID FIX ===== */
/* Overrides main.css auto-fit which tops out at 3 cols at 1200px max-width */
.mc-benefits-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

/* ===== ALTERNATING SECTION BACKGROUNDS ===== */
/* Gives visual rhythm between product section and info section */
#accessori {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.03) 0%, transparent 100%);
}

/* ===== CONTACT FORM ===== */
.mc-form-group {
    margin-bottom: 18px;
}

.mc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mc-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.88rem;
}

.mc-form-group input,
.mc-form-group select,
.mc-form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    background: white;
    color: var(--dark);
    font-family: inherit;
}

.mc-form-group input:focus,
.mc-form-group select:focus,
.mc-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.mc-form-group textarea {
    height: 100px;
    resize: vertical;
}

.mc-form-help {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 4px;
}

.mc-security-block {
    background: var(--light-bg);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin: 18px 0;
}

.mc-result-msg {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
}

.mc-result-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.mc-result-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Honeypot (anti-spam) */
.mc-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Spinner */
@keyframes mc-spin {
    to { transform: rotate(360deg); }
}

.mc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: mc-spin 1s linear infinite;
}

/* ===== HERO CTA AREA ===== */
.mc-hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* WhatsApp variant in hero */
.btn-wa-hero {
    background: #25d366;
    color: white !important;
}
.btn-wa-hero:hover {
    background: #128c7e !important;
}

/* Hero image — prevent cropping */
.hero .hero-image .hero-devices {
    max-height: 340px;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.18));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mc-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mc-product-img {
        height: 180px;
    }

    .mc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .mc-stats-grid > div:nth-child(2)::after {
        display: none;
    }

    .mc-stat-number {
        font-size: 2rem;
    }

    .mc-product-actions {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }

    .mc-btn-action {
        min-height: 38px;
        font-size: 0.68rem;
        padding: 8px 4px;
    }

    .mc-hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .mc-hero-ctas .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .mc-benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .mc-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mc-benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .mc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mc-stats-grid > div:nth-child(2)::after {
        display: none;
    }
}

@media (min-width: 1024px) {
    .mc-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .mc-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .mc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mc-stat-number {
        font-size: 1.8rem;
    }

    .mc-stat-label {
        font-size: 0.72rem;
    }

    .mc-benefits-grid {
        grid-template-columns: 1fr !important;
    }

    .mc-product-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mc-btn-action {
        min-height: 42px;
        font-size: 0.82rem;
        padding: 10px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-product-card,
    .mc-product-card::before,
    .mc-product-card:hover,
    .mc-product-card:hover .mc-product-img img,
    .mc-btn-action {
        transition: none;
        transform: none;
        animation: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .mc-product-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.06);
    }

    .mc-product-card:hover::before {
        opacity: 0;
    }

    .mc-btn-action:hover {
        transform: none;
        box-shadow: none;
    }
}
