/* ================================================
   MERIDIAN VEGA - Learn Platform Styles
   Udemy/Pluralsight style with Launch/Products branding
   
   Copyright (c) 2025-Perpetuity Meridian Vega. All rights reserved.
   Author: Zachariah Ayers
   ================================================ */

/* Header Navigation Additions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-toggle,
.cart-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.search-toggle:hover,
.cart-icon:hover {
    color: var(--aviation-blue);
    background: rgba(53, 79, 88, 0.1);
}

.cart-icon {
    position: relative;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--heritage-red);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-container {
    background: white;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 18px;
    outline: none;
}

.search-input:focus {
    border-color: var(--aviation-blue);
}

.search-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Category Navigation */
.category-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.category-list {
    display: flex;
    gap: 32px;
    list-style: none;
    overflow-x: auto;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-list a:hover,
.category-list a.active {
    color: var(--aviation-blue);
    border-bottom-color: var(--aviation-blue);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--aviation-blue) 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-banner .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-search {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 4px;
    max-width: 500px;
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 6px;
    outline: none;
    color: var(--text-primary);
}

.hero-search-btn {
    background: var(--heritage-red);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hero-search-btn:hover {
    background: var(--signal-red);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    min-width: 200px;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--brass-gold);
}

.hero-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-card p {
    opacity: 0.8;
    margin: 0;
}

/* Stats Bar */
.stats-bar {
    background: var(--off-white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item i {
    font-size: 32px;
    color: var(--aviation-blue);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Promotion Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--heritage-red) 0%, var(--signal-red) 100%);
    color: white;
    padding: 24px 0;
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.promo-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.promo-text p {
    opacity: 0.9;
    margin: 0;
}

.promo-price {
    display: flex;
    align-items: center;
    gap: 16px;
}

.original-price {
    font-size: 18px;
    text-decoration: line-through;
    opacity: 0.7;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
}

.btn-promo {
    background: white;
    color: var(--heritage-red);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    background: var(--cream-white);
    transform: translateY(-2px);
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-controls {
    display: flex;
    gap: 16px;
}

.sort-dropdown {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.course-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Course Headers */
.course-header {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.course-header.mission-training {
    background: var(--aviation-blue);
}

.course-header.launch-specialist {
    background: var(--heritage-red);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--aviation-blue);
}

.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-badge.bestseller {
    background: #ec5252;
    color: white;
}

.course-badge.hot {
    background: #f97316;
    color: white;
}

.course-badge.updated {
    background: #10b981;
    color: white;
}

.course-badge.pro {
    background: var(--heritage-red);
    color: white;
}

.course-content {
    padding: 16px;
}

.course-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-instructor {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rating-score {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rating-stars {
    color: #fbbf24;
    font-size: 12px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.course-meta i {
    margin-right: 4px;
}

.course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--aviation-blue);
}

/* Pricing Section */
.pricing-section {
    background: var(--off-white);
    padding: 80px 0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--aviation-blue);
    box-shadow: 0 8px 30px rgba(53, 79, 88, 0.15);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--heritage-red);
    box-shadow: 0 8px 30px rgba(178, 34, 34, 0.15);
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--heritage-red);
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.price-display {
    margin-bottom: 32px;
}

.currency {
    font-size: 20px;
    vertical-align: top;
    color: var(--text-secondary);
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--aviation-blue);
}

.period {
    font-size: 16px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.custom {
    font-size: 32px;
    font-weight: 700;
    color: var(--aviation-blue);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.pricing-features i {
    color: var(--aviation-blue);
    font-size: 14px;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 16px;
    border: 2px solid var(--aviation-blue);
    background: transparent;
    color: var(--aviation-blue);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-pricing:hover {
    background: var(--aviation-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-pricing.featured {
    background: var(--heritage-red);
    color: white;
    border-color: var(--heritage-red);
}

.btn-pricing.featured:hover {
    background: var(--signal-red);
    border-color: var(--signal-red);
}

.savings {
    margin-top: 16px;
    font-size: 14px;
    color: var(--heritage-red);
    font-weight: 600;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.testimonial {
    background: var(--off-white);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--aviation-blue);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 14px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    background: var(--off-white);
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.faq-item {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--aviation-blue);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
footer {
    background: var(--aviation-blue);
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-brand p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--brass-gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 32px;
    text-align: center;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-banner .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .category-list {
        padding: 0 16px;
    }
    
    .nav-actions {
        display: none;
    }
}