/**
 * vSkul Pricing Page Styles
 * Supports: 3-tier instructor model, unified student section, Paystack integration
 */

/* ===== PAGE STRUCTURE ===== */
.pricing-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 60px 0;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 40px 0;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* ===== PRICING SECTIONS ===== */
.pricing-section {
    margin-bottom: 20px;
    scroll-margin-top: 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.teacher-intro {
    background: #f0f4f8;
    border-left: 4px solid #007bff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.teacher-intro p {
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.teaching-styles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teaching-styles li {
    padding: 8px 0;
    color: #444;
    font-size: 0.95rem;
}

.teaching-styles strong {
    color: #007bff;
    font-weight: 600;
}

/* ===== PRICING CARDS ===== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Student cards layout */
.student-card {
    max-width: 600px;
    margin: 0 auto;
}

/* Teacher cards layout */
.teacher-cards {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

.pricing-card.featured {
    border: 2px solid #007bff;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15);
}

.pricing-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Tier badges */
.tier-badge {
    display: inline-block;
    background: #f0f4f8;
    color: #007bff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-popular {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    z-index: 10;
}

/* ===== PRICING DISPLAYS ===== */
.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
}

.price span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-left: 8px;
}

/* Price display variants */
.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
}

.price-free {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.price-flexible {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.price-option .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.price-option .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
}

.divider {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 0;
}

/* Pricing tiers (student section) */
.pricing-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
}

.tier-item {
    text-align: center;
}

.tier-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-item .tier-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
}

/* Revenue highlight */
.revenue-highlight {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
}

.revenue-highlight strong {
    color: #0056b3;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.revenue-highlight small {
    color: #0056b3;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* ===== FEATURE LISTS ===== */
.features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features li {
    padding: 12px 0;
    color: #444;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.features li::before {
    content: "✓";
    color: #28a745;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
    margin: 30px 0;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f4f8;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    margin-right: 15px;
}

/* ===== PRICING NOTES & WARNINGS ===== */
.pricing-note {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.pricing-note strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 5px;
}

.pricing-note.warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.pricing-note.warning strong {
    color: #856404;
}

/* ===== PRICING EXAMPLES ===== */
.pricing-example {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    font-size: 0.9rem;
    page-break-inside: avoid;
}

.pricing-example h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-example p {
    margin: 10px 0;
    color: #666;
}

.calc-table {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.calc-table li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #444;
}

.calc-table li:last-child {
    border-bottom: none;
}

.calc-table li span:first-child {
    color: #666;
}

.calc-table li strong {
    color: #1a1a1a;
    font-weight: 700;
}

.calc-table li.highlight {
    background: #e7f3ff;
    font-weight: 700;
    color: #0056b3;
}

.calc-table li.separator-line {
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    margin: 5px 0;
    height: 0;
    padding: 0;
}

.pricing-example .note {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 12px;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #0056b3;
    font-style: italic;
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e5e7eb;
}

.comparison-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.comparison-table thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.comparison-table thead th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}

.comparison-table tbody td {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    color: #444;
}

.comparison-table tbody tr:hover {
    background: #f9fafb;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: #1a1a1a;
    background: #f9fafb;
    width: 30%;
}

/* ===== PAYMENT INFO SECTION ===== */
.payment-info-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    padding: 60px;
    border-radius: 12px;
    margin: 80px 0;
}

.payment-info-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 50px;
}

.payment-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #007bff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.1);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 10px 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f4f8;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 3px;
}

.formula {
    background: #1a1a1a;
    color: #00d084;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 15px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.formula code {
    color: #00d084;
}

.info-card .example {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #0056b3;
}

/* ===== FAQ SECTION ===== */
.pricing-faq {
    margin-top: 80px;
}

.pricing-faq h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #007bff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.1);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 12px;
}

.faq-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
    line-height: 1.6;
}

.faq-item p:first-of-type {
    margin-top: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    margin-top: 80px;
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.3);
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 16px 32px;
    font-size: 1rem;
}

.cta-buttons .btn-primary {
    background: white;
    color: #007bff;
}

.cta-buttons .btn-primary:hover {
    background: #f0f4f8;
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #007bff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .teacher-cards {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .pricing-card {
        padding: 30px;
    }

    .payment-info-section {
        padding: 40px 20px;
    }

    .payment-info-cards {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-lg {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .pricing-tiers {
        grid-template-columns: 1fr;
    }

    .price-flexible {
        gap: 15px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .page-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .pricing-card {
        padding: 20px;
    }

    .pricing-card h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .price {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .calc-table li {
        padding: 8px 5px;
        font-size: 0.75rem;
    }

    .btn-block {
        margin: 20px 0;
    }

    .comparison-section h3 {
        font-size: 1.3rem;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .cta-section {
        padding: 30px 15px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .pricing-page {
        background: white;
    }

    .pricing-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn {
        display: none;
    }

    .cta-section {
        display: none;
    }
}
