/**
 * WooCommerce Plugin V2 Styles
 * Modern, gradient-based design system
 */

/* ========================================
   1. CSS VARIABLES
   ======================================== */
:root {
    /* Primary Colors */
    --paynow-purple: #7d1979;
    --paynow-purple-hover: #6a1567;
    --paynow-purple-light: #f9f5ff;
    
    /* Gradient Backgrounds */
    --gradient-purple-white: linear-gradient(to bottom, #f9f5ff, #ffffff);
    --gradient-white-purple: linear-gradient(to bottom, #ffffff, #f9f5ff);
    
    /* Accent Colors */
    --success-green: #16a34a;
    --success-light: #dcfce7;
    --warning-yellow: #eab308;
    --warning-light: #fef9c3;
    --error-red: #dc2626;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    
    /* Spacing */
    --section-padding-desktop: 5rem 0;
    --section-padding-mobile: 3rem 0;
    --gap-large: 3rem;
    --gap-medium: 2rem;
    --gap-small: 1rem;
    
    /* Typography */
    --font-size-h1: 2.5rem;
    --font-size-h1-mobile: 2rem;
    --font-size-h2: 1.875rem;
    --font-size-h3: 1.5rem;
    --font-size-lead: 1.125rem;
    --line-height-relaxed: 1.75;
}

/* ========================================
   2. BASE SECTION STYLES
   ======================================== */

/* Hero Section */
.hero-section-v2 {
    background: var(--gradient-purple-white);
    padding: var(--section-padding-desktop);
    overflow: hidden;
}

.hero-section-v2 h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section-v2 .lead {
    font-size: var(--font-size-lead);
    color: var(--gray-700);
    line-height: var(--line-height-relaxed);
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Customers Section */
.customers-section-v2 {
    padding: var(--section-padding-desktop);
    background: white;
}

.customers-section-v2 h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--gap-large);
}

.customer-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.customer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.customer-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.customer-card .card-body {
    padding: 1.5rem;
}

/* Pricing Section */
.pricing-section-v2 {
    background: var(--gradient-white-purple);
    padding: var(--section-padding-desktop);
}

.pricing-section-v2 h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--gap-large);
}

.pricing-card-featured {
    border: 2px solid var(--paynow-purple);
    border-radius: 1rem;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(125, 25, 121, 0.1), 0 10px 10px -5px rgba(125, 25, 121, 0.04);
    padding: 2rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--paynow-purple);
    line-height: 1;
}

.pricing-period {
    font-size: 1.25rem;
    color: var(--gray-600);
}

/* About Section */
.about-section-v2 {
    padding: var(--section-padding-desktop);
    background: white;
}

.about-section-v2 h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.about-section-v2 .lead {
    font-size: var(--font-size-lead);
    color: var(--gray-700);
    line-height: var(--line-height-relaxed);
}

/* How It Works Section */
.how-it-works-v2 {
    padding: var(--section-padding-desktop);
    background: var(--gray-50);
}

.how-it-works-v2 h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--gap-large);
}

.step-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.step-image-wrapper {
    position: relative;
    overflow: hidden;
}

.step-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: var(--paynow-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.step-card h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Comparison Section */
.comparison-section-v2 {
    padding: var(--section-padding-desktop);
    background: white;
}

.comparison-section-v2 h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--gap-large);
}

.comparison-card {
    border: 1px solid var(--gray-100);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    background: white;
}

.comparison-card-featured {
    border: 2px solid var(--paynow-purple);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    background: var(--paynow-purple-light);
    box-shadow: 0 10px 15px -3px rgba(125, 25, 121, 0.1), 0 4px 6px -2px rgba(125, 25, 121, 0.05);
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comparison-item i {
    flex-shrink: 0;
    font-size: 1.5rem;
    margin-top: 0.125rem;
}

.comparison-item .bi-check-circle-fill {
    color: var(--success-green);
}

.comparison-item .bi-x-circle-fill {
    color: var(--error-red);
}

/* Features Section */
.features-section-v2 {
    padding: var(--section-padding-desktop);
    background: var(--gray-50);
}

.features-section-v2 h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--gap-large);
}

.feature-card {
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: var(--paynow-purple-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-wrapper i {
    font-size: 2rem;
    color: var(--paynow-purple);
}

.feature-card h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section-v2 {
    padding: var(--section-padding-desktop);
    background: white;
}

.faq-section-v2 h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--gap-large);
}

.accordion-v2 .accordion-item {
    border: 1px solid var(--gray-100);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-v2 .accordion-button {
    font-weight: 600;
    color: var(--gray-900);
    background-color: white;
    padding: 1.25rem 1.5rem;
}

.accordion-v2 .accordion-button:not(.collapsed) {
    background-color: var(--paynow-purple-light);
    color: var(--paynow-purple);
    box-shadow: none;
}

.accordion-v2 .accordion-button:focus {
    box-shadow: none;
    border-color: var(--gray-100);
}

.accordion-v2 .accordion-body {
    padding: 1.5rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* CTA Section */
.cta-section-v2 {
    padding: var(--section-padding-desktop);
    background: var(--gradient-purple-white);
}

.cta-card {
    border: 2px solid var(--paynow-purple);
    border-radius: 1.5rem;
    padding: 3rem;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(125, 25, 121, 0.1), 0 10px 10px -5px rgba(125, 25, 121, 0.04);
}

.cta-card h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.cta-guarantee {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ========================================
   3. COMPONENT STYLES
   ======================================== */

/* Badges */
.badge-purple {
    background-color: var(--paynow-purple-light);
    color: var(--paynow-purple);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.badge-success-v2 {
    background-color: var(--success-light);
    color: var(--success-green);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.badge-warning-v2 {
    background-color: var(--warning-light);
    color: var(--warning-yellow);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

/* Buttons */
.btn-primary-v2 {
    background-color: var(--paynow-purple);
    border-color: var(--paynow-purple);
    color: white;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-v2:hover {
    background-color: var(--paynow-purple-hover);
    border-color: var(--paynow-purple-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(125, 25, 121, 0.3);
}

.btn-outline-v2 {
    background-color: transparent;
    border: 2px solid var(--paynow-purple);
    color: var(--paynow-purple);
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-v2:hover {
    background-color: var(--paynow-purple);
    color: white;
    transform: translateY(-2px);
}

/* Feature Checkmarks */
.feature-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.feature-check i {
    color: var(--success-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   4. UTILITY CLASSES
   ======================================== */

.shadow-lg-v2 {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-purple-white {
    background: var(--gradient-purple-white);
}

.gradient-white-purple {
    background: var(--gradient-white-purple);
}

.text-purple {
    color: var(--paynow-purple);
}

.bg-purple-light {
    background-color: var(--paynow-purple-light);
}

/* ========================================
   5. RESPONSIVE OVERRIDES
   ======================================== */

@media (max-width: 991px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
    }
    
    .hero-section-v2,
    .customers-section-v2,
    .pricing-section-v2,
    .about-section-v2,
    .how-it-works-v2,
    .comparison-section-v2,
    .features-section-v2,
    .faq-section-v2,
    .cta-section-v2 {
        padding: var(--section-padding-mobile);
    }
    
    .pricing-card-featured,
    .cta-card {
        padding: 1.5rem;
    }
    
    .step-image-wrapper img {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .pricing-amount {
        font-size: 2.5rem;
    }
    
    .pricing-period {
        font-size: 1rem;
    }
    
    .btn-primary-v2,
    .btn-outline-v2 {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .feature-icon-wrapper {
        width: 3rem;
        height: 3rem;
    }
    
    .feature-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}

/* ========================================
   6. TABLE STYLES
   ======================================== */

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table-v2 {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table-v2 thead {
    background-color: var(--paynow-purple-light);
}

.comparison-table-v2 th {
    padding: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 2px solid var(--paynow-purple);
    text-align: left;
}

.comparison-table-v2 td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.comparison-table-v2 tr:hover {
    background-color: var(--gray-50);
}

.comparison-table-v2 .highlight-column {
    background-color: var(--paynow-purple-light);
    font-weight: 600;
}

/* ========================================
   7. ANIMATION & TRANSITIONS
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .step-card,
    .feature-card,
    .customer-card,
    .btn-primary-v2,
    .btn-outline-v2 {
        transition: all 0.3s ease;
    }
}