/* src/main/resources/static/css/pages/pricing.css */

/* ===== PRICING PAGE - COMPACT THEME ===== */

/* Hero Section */
.pricing-hero {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%);
    border-bottom: 1px solid #e9eef2;
}

.pricing-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.pricing-hero h1 span {
    color: #2563eb;
}

.pricing-hero p {
    font-size: 15px;
    color: #5b6778;
    max-width: 500px;
    margin: 0 auto;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 30px 0 20px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.toggle-label.active {
    color: #2563eb;
    font-weight: 600;
}

.save-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 30px;
    margin-left: 6px;
    text-transform: uppercase;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #2563eb, #667eea);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Pricing Grid */
.pricing-grid-section {
    padding: 20px 24px 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Pricing Card */
.pricing-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 28px 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37,99,235,0.1);
    border-color: #2563eb;
}

.pricing-card.popular {
    border: 2px solid #2563eb;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(37,99,235,0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #667eea);
    color: white;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(37,99,235,0.3);
    z-index: 2;
}

.pricing-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    text-align: center;
}

.pricing-price {
    text-align: center;
    margin-bottom: 20px;
}

.monthly-price {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
}

.yearly-price {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
}

.original-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

.price-period {
    font-size: 13px;
    font-weight: 400;
    color: #5b6778;
    display: block;
    margin-top: 4px;
}

.price-free {
    color: #10b981;
}

.savings-tag {
    background: #10b981;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.pricing-features li {
    font-size: 13px;
    color: #475569;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #10b981;
    font-size: 12px;
    width: 18px;
}

.pricing-features .not-included {
    color: #cbd5e1;
}

.pricing-features .not-included i {
    color: #cbd5e1;
}

.pricing-footer {
    margin-top: auto;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.btn-pricing:hover {
    background: #e2e8f0;
}

.btn-pricing.primary {
    background: #0f172a;
    color: white;
    border: none;
}

.btn-pricing.primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15,23,42,0.2);
}

/* Enterprise Card Special */
.pricing-card.enterprise {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

/* Feature Comparison Section */
.comparison-section {
    padding: 40px 24px;
    background: #f8fafc;
    text-align: center;
}

.comparison-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.comparison-section p {
    font-size: 14px;
    color: #5b6778;
    margin-bottom: 30px;
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header {
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
    font-size: 13px;
}

.comparison-cell {
    padding: 14px 12px;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-cell:first-child {
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
}

.comparison-cell i {
    font-size: 16px;
}

.comparison-cell .fa-check {
    color: #10b981;
}

.comparison-cell .fa-times {
    color: #cbd5e1;
}

/* FAQ Section */
.faq-section {
    padding: 50px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: #0f172a;
    font-size: 15px;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question i {
    color: #2563eb;
    transition: transform 0.2s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 0 20px 16px 20px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Money Back Guarantee */
.guarantee-box {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 28px;
    flex-shrink: 0;
}

.guarantee-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.guarantee-text p {
    font-size: 13px;
    color: #5b6778;
    margin: 0;
}

/* CTA Section */
.pricing-cta {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 50px 24px;
    text-align: center;
    color: white;
}

.pricing-cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-cta p {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #0f172a;
    padding: 14px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .comparison-row {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .comparison-row.header .comparison-cell:nth-child(4),
    .comparison-row.header .comparison-cell:nth-child(5),
    .comparison-row .comparison-cell:nth-child(4),
    .comparison-row .comparison-cell:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 32px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .billing-toggle {
        flex-wrap: wrap;
    }
    
    .comparison-row {
        grid-template-columns: 2fr 1fr;
        font-size: 12px;
    }
    
    .comparison-row.header .comparison-cell:nth-child(3),
    .comparison-row .comparison-cell:nth-child(3) {
        display: none;
    }
    
    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
    
    .faq-question {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pricing-hero h1 {
        font-size: 28px;
    }
    
    .pricing-hero p {
        font-size: 14px;
    }
    
    .btn-cta {
        padding: 12px 30px;
        font-size: 14px;
    }
}