﻿/* ================================================================
   WENGS PRODUCTS - Universal CSS Framework
   Reusable for ANVOICE, ENROLLS, SHUKRAAH & all future products
   Cross-Platform | Mobile Responsive | Browser Compatible
   ================================================================ */

/* Product Base Container */
.product-page {
    width: 100%;
    overflow-x: hidden;
}

/* Product Hero Section - Universal */
.product-hero {
    background: linear-gradient(135deg, #1a472a 0%, var(--brand-blue) 100%);
    color: #fff;
    padding: calc(var(--nav-h) + 60px) var(--sp-6) var(--sp-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .product-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><path fill="white" d="M0,0 L1000,0 L1000,1000 L0,1000 Z M200,200 L800,200 L800,800 L200,800 Z"/></svg>');
        background-repeat: repeat;
        pointer-events: none;
    }

    .product-hero h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
        font-weight: 800;
        margin-bottom: var(--sp-4);
        letter-spacing: -0.02em;
        position: relative;
        z-index: 1;
        color: #fff;
    }

    .product-hero p {
        font-size: clamp(1rem, 2vw, 1.2rem);
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
        position: relative;
        z-index: 1;
        opacity: 0.95;
    }

/* Product Container */
.product-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--sp-16) var(--sp-6) var(--sp-20);
}

/* Product Sections */
.product-section {
    margin-bottom: var(--sp-16);
    width: 100%;
}

/* Stats Section - For ENROLLS type products */
.product-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-8);
    margin-bottom: var(--sp-12);
    padding: var(--sp-8);
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, var(--n-50) 100%);
    border-radius: var(--r-xl);
}

.stat-item {
    text-align: center;
    padding: var(--sp-4) var(--sp-6);
    min-width: 150px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1.2;
    margin-bottom: var(--sp-2);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--n-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Grid - Universal */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--sp-6);
    margin-top: var(--sp-8);
}

.feature-card {
    background: var(--n-0);
    border: 1px solid var(--n-200);
    border-radius: var(--r-xl);
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
    transition: all var(--dur);
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--brand-blue), #1a472a);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s var(--ease);
    }

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, #e8f5e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-5);
    transition: all var(--dur);
}

.feature-card:hover .feature-icon {
    background: var(--brand-blue);
    transform: scale(1.05);
}

.feature-icon i {
    font-size: 32px;
    color: var(--brand-blue);
    transition: all var(--dur);
}

.feature-card:hover .feature-icon i {
    color: #fff;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--sp-3);
    color: var(--n-900);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--n-500);
    line-height: 1.7;
}

/* Pricing Section - Universal */
.pricing-plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-6);
    margin-top: var(--sp-8);
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: var(--n-0);
    border: 1px solid var(--n-200);
    border-radius: var(--r-xl);
    padding: var(--sp-8) var(--sp-6) var(--sp-10);
    text-align: center;
    transition: all var(--dur);
    position: relative;
}

    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--brand-blue);
    }

    .pricing-card.popular {
        border: 2px solid var(--brand-blue);
        position: relative;
        background: linear-gradient(135deg, var(--n-0) 0%, var(--brand-blue-light) 100%);
    }

        .pricing-card.popular::before {
            content: 'Most Popular';
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--brand-blue);
            color: #fff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 16px;
            border-radius: var(--r-pill);
            white-space: nowrap;
        }

.plan-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--n-900);
    margin-bottom: var(--sp-4);
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: var(--sp-5);
}

    .plan-price span {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--n-500);
    }

.plan-features {
    list-style: none;
    margin-bottom: var(--sp-8);
    text-align: left;
}

    .plan-features li {
        padding: var(--sp-2) 0;
        color: var(--n-700);
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: var(--sp-2);
    }

        .plan-features li::before {
            content: '✓';
            color: var(--brand-blue);
            font-weight: 700;
            font-size: 1rem;
        }

.plan-button {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: var(--brand-blue);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-md);
    font-weight: 700;
    transition: all var(--dur);
    border: none;
    cursor: pointer;
}

    .plan-button:hover {
        background: var(--brand-blue-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.pricing-card.popular .plan-button {
    background: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(0,103,184,0.3);
}

/* Customization Section - Universal */
.customization-section {
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, var(--n-50) 100%);
    border-radius: var(--r-xl);
    padding: var(--sp-12);
    margin: var(--sp-12) 0;
    text-align: center;
}

.customization-content {
    max-width: 700px;
    margin: 0 auto;
}

    .customization-content h2 {
        font-size: clamp(1.6rem, 3vw, 2rem);
        font-weight: 700;
        color: var(--n-900);
        margin-bottom: var(--sp-4);
    }

    .customization-content p {
        font-size: 1rem;
        color: var(--n-700);
        line-height: 1.7;
        margin-bottom: var(--sp-4);
    }

/* Demo Button - Universal */
.demo-button {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 14px 32px;
    background: var(--brand-blue);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-md);
    font-weight: 700;
    transition: all var(--dur);
    margin-top: var(--sp-4);
    border: none;
    cursor: pointer;
}

    .demo-button:hover {
        background: var(--brand-blue-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* ================================================================
   PRODUCT SPECIFIC THEMES
   ================================================================ */

/* ANVOICE Theme */
.product-anvoice .product-hero {
    background: linear-gradient(135deg, #1a472a 0%, var(--brand-blue) 100%);
}

/* ENROLLS Theme */
.product-enrolls .product-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

/* SHUKRAAH Theme (for future) */
.product-shukraah .product-hero {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
}

/* ================================================================
   RESPONSIVE DESIGN - UNIVERSAL
   ================================================================ */

@media (max-width: 968px) {
    .pricing-plans {
        gap: var(--sp-5);
    }

    .pricing-card {
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: calc(var(--nav-h) + 40px) var(--sp-4) var(--sp-12);
    }

        .product-hero h1 {
            font-size: 2.2rem;
        }

    .product-container {
        padding: var(--sp-10) var(--sp-4) var(--sp-16);
    }

    .product-section {
        margin-bottom: var(--sp-12);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-5);
    }

    .feature-card {
        padding: var(--sp-6) var(--sp-5);
    }

    .pricing-plans {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        max-width: 400px;
        width: 100%;
    }

    .customization-section {
        padding: var(--sp-8) var(--sp-5);
        margin: var(--sp-8) 0;
    }

    .product-stats {
        gap: var(--sp-4);
    }

    .stat-item {
        min-width: 120px;
        padding: var(--sp-3) var(--sp-4);
    }
}

@media (max-width: 480px) {
    .product-hero h1 {
        font-size: 1.8rem;
    }

    .product-hero p {
        font-size: 0.9rem;
    }

    .plan-name {
        font-size: 1.3rem;
    }

    .plan-price {
        font-size: 1.8rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
    }

        .feature-icon i {
            font-size: 24px;
        }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .customization-section {
        padding: var(--sp-6) var(--sp-4);
    }

    .demo-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .product-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-container {
        max-width: 960px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card {
        min-width: 270px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .product-container {
        max-width: 1400px;
    }

    .features-grid {
        gap: var(--sp-8);
    }
}

/* Print Styles */
@media print {
    .product-hero {
        background: #1a472a;
        padding: 20px;
    }

    .customization-section,
    .demo-button,
    .plan-button {
        display: none;
    }

    .pricing-card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s var(--ease) backwards;
}

    .feature-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .feature-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .feature-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .feature-card:nth-child(6) {
        animation-delay: 0.6s;
    }

/* SHUKRAAH Theme */

.product-shukraah .feature-card:hover .feature-icon {
    background: #2e7d32;
}

.product-shukraah .plan-button:hover {
    background: #2e7d32;
}

.product-shukraah .demo-button:hover {
    background: #2e7d32;
}

.product-shukraah .pricing-card.popular {
    border-color: #2e7d32;
}

    .product-shukraah .pricing-card.popular .plan-button {
        background: #2e7d32;
    }

        .product-shukraah .pricing-card.popular .plan-button:hover {
            background: #1b5e20;
        }