/**
 * Pricing Page Styles
 * Self-contained styles for the pricing page that work on any WordPress theme
 */

/* CSS Variables with fallbacks */
:root {
    --wl-primary: #1DBF73;
    --wl-primary-dark: #169e5f;
    --wl-primary-light: #2dd483;
    --wl-background: #ffffff;
    --wl-surface: #f8fafc;
    --wl-border: #e2e8f0;
    --wl-text-primary: #0f172a;
    --wl-text-secondary: #475569;
    --wl-text-muted: #94a3b8;
    --wl-success: #059669;
}

/* Container */
.wl-pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.wl-pricing-container *,
.wl-pricing-container *::before,
.wl-pricing-container *::after {
    box-sizing: border-box;
}

/* Header */
.wl-pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.wl-pricing-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
    color: var(--wl-text-primary, #0f172a);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.wl-pricing-subtitle {
    font-size: 18px;
    color: #475569;
    color: var(--wl-text-secondary, #475569);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Plans Grid */
.wl-pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
    align-items: stretch;
}

/* Single Plan Card */
.wl-pricing-plan {
    background: #ffffff;
    background: var(--wl-background, #ffffff);
    border: 2px solid #e2e8f0;
    border: 2px solid var(--wl-border, #e2e8f0);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wl-pricing-plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #1DBF73;
    border-color: var(--wl-primary, #1DBF73);
}

/* Popular Plan */
.wl-pricing-plan.wl-popular {
    border-color: #1DBF73;
    border-color: var(--wl-primary, #1DBF73);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(29, 191, 115, 0.15);
}

.wl-pricing-plan.wl-popular:hover {
    transform: scale(1.02) translateY(-8px);
}

/* Current Plan */
.wl-pricing-plan.wl-current {
    border-color: #059669;
    border-color: var(--wl-success, #059669);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.03) 0%, rgba(5, 150, 105, 0.08) 100%);
}

/* Popular Badge */
.wl-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1DBF73 0%, #169e5f 100%);
    color: #000000;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Plan Header */
.wl-plan-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    border-bottom: 1px solid var(--wl-border, #e2e8f0);
}

.wl-plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    color: var(--wl-text-primary, #0f172a);
    margin: 0 0 16px 0;
}

.wl-plan-price {
    margin-bottom: 12px;
}

.wl-price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    color: var(--wl-text-primary, #0f172a);
    line-height: 1;
}

.wl-price-period {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    color: var(--wl-text-muted, #94a3b8);
    margin-top: 8px;
}

.wl-plan-description {
    font-size: 14px;
    color: #475569;
    color: var(--wl-text-secondary, #475569);
    margin: 0;
    line-height: 1.5;
}

/* Features List */
.wl-plan-features {
    flex: 1;
    margin-bottom: 24px;
}

.wl-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wl-plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #475569;
    color: var(--wl-text-secondary, #475569);
    border-bottom: 1px solid #f1f5f9;
}

.wl-plan-features li:last-child {
    border-bottom: none;
}

.wl-feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #ecfdf5;
    color: #059669;
    color: var(--wl-success, #059669);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Plan Footer */
.wl-plan-footer {
    margin-top: auto;
}

/* Buttons */
.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.wl-btn-primary {
    background: #1DBF73;
    background: var(--wl-primary, #1DBF73);
    color: #000000;
    border-color: #1DBF73;
    border-color: var(--wl-primary, #1DBF73);
}

.wl-btn-primary:hover {
    background: #169e5f;
    background: var(--wl-primary-dark, #169e5f);
    border-color: #169e5f;
    border-color: var(--wl-primary-dark, #169e5f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 191, 115, 0.3);
}

.wl-btn-secondary {
    background: #f8fafc;
    background: var(--wl-surface, #f8fafc);
    color: #475569;
    color: var(--wl-text-secondary, #475569);
    border-color: #e2e8f0;
    border-color: var(--wl-border, #e2e8f0);
}

.wl-btn-secondary:hover {
    background: #e2e8f0;
    background: var(--wl-border, #e2e8f0);
}

.wl-btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wl-btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.wl-btn-xlarge {
    padding: 18px 40px;
    font-size: 18px;
}

/* CTA Section */
.wl-pricing-cta {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1DBF73 0%, #169e5f 100%);
    border-radius: 20px;
    color: #000000;
    margin-top: 40px;
}

.wl-pricing-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #000000;
}

.wl-pricing-cta p {
    font-size: 18px;
    margin: 0 0 32px 0;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

.wl-pricing-cta .wl-btn-primary {
    background: #000000;
    color: #1DBF73;
    color: var(--wl-primary, #1DBF73);
    border-color: #000000;
}

.wl-pricing-cta .wl-btn-primary:hover {
    background: #333333;
    border-color: #333333;
}

/* Responsive Design */
@media (max-width: 992px) {
    .wl-pricing-plans {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .wl-pricing-plan.wl-popular {
        transform: none;
    }
    
    .wl-pricing-plan.wl-popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .wl-pricing-container {
        padding: 20px 16px;
    }
    
    .wl-pricing-header {
        margin-bottom: 40px;
    }
    
    .wl-pricing-header h1 {
        font-size: 32px;
    }
    
    .wl-pricing-subtitle {
        font-size: 16px;
    }
    
    .wl-pricing-plans {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .wl-pricing-plan {
        padding: 24px;
    }
    
    .wl-price-amount {
        font-size: 36px;
    }
    
    .wl-pricing-cta {
        padding: 40px 20px;
        border-radius: 16px;
    }
    
    .wl-pricing-cta h2 {
        font-size: 28px;
    }
    
    .wl-pricing-cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wl-pricing-header h1 {
        font-size: 28px;
    }
    
    .wl-price-amount {
        font-size: 32px;
    }
    
    .wl-plan-name {
        font-size: 20px;
    }
    
    .wl-btn-xlarge {
        padding: 14px 24px;
        font-size: 16px;
    }
}
