/**
 * Helsinki Salsa Academy - Enhanced Mobile Styles
 * Inspired by modern mobile-first design patterns
 */

/* ==========================================
   MOBILE HEADER ENHANCEMENTS
   ========================================== */

@media (max-width: 767px) {

    /* Sticky Mobile Header */
    .vibrant-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .vibrant-header.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* Hide top header on mobile */
    .vibrant-header-top {
        display: none;
    }

    /* Simplified main header for mobile */
    .vibrant-header-main {
        height: 64px;
        padding: 0 16px;
    }

    .vibrant-header-main-inner {
        padding: 0;
    }

    /* Mobile Logo */
    .vibrant-logo {
        gap: 0.5rem;
    }

    .vibrant-logo-hsa {
        font-size: 1.5rem;
    }

    .vibrant-logo-divider {
        display: none;
    }

    .vibrant-logo-text {
        display: flex;
    }

    .vibrant-logo-line-1,
    .vibrant-logo-line-2 {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
    }

    /* Mobile Menu Toggle */
    .vibrant-mobile-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(7, 10, 100, 0.05);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .vibrant-mobile-toggle:hover {
        background: rgba(7, 10, 100, 0.1);
        transform: scale(1.05);
    }

    .vibrant-mobile-toggle i {
        font-size: 1.25rem;
        color: #070a64;
    }

    /* ==========================================
       ENHANCED MOBILE MENU
       ========================================== */

    .vibrant-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .vibrant-mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .vibrant-mobile-menu-inner {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        background: #ffffff;
    }

    /* Mobile Menu Header */
    .vibrant-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .vibrant-mobile-logo {
        font-family: var(--font-heading);
        font-size: 1.75rem;
        font-weight: 800;
        color: #070a64;
        letter-spacing: -0.05em;
    }

    .vibrant-mobile-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(7, 10, 100, 0.05);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .vibrant-mobile-close:hover {
        background: rgba(7, 10, 100, 0.1);
        transform: rotate(90deg);
    }

    .vibrant-mobile-close i {
        font-size: 1.25rem;
        color: #070a64;
    }

    /* Mobile Navigation */
    .vibrant-mobile-nav {
        flex: 1;
        overflow-y: auto;
        padding: 0;
    }

    .vibrant-mobile-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .vibrant-mobile-link {
        display: block;
        padding: 16px 20px;
        font-size: 1rem;
        font-weight: 600;
        color: #111827;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
    }

    .vibrant-mobile-link:active {
        background: rgba(7, 10, 100, 0.05);
    }

    .vibrant-mobile-link.highlight {
        background: linear-gradient(135deg, #070a64 0%, #1a237e 100%);
        color: white;
        font-weight: 700;
    }

    .vibrant-mobile-divider {
        padding: 12px 20px;
        font-size: 0.625rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: #070a64;
        background: rgba(7, 10, 100, 0.03);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* ==========================================
       MOBILE HERO SECTION
       ========================================== */

    .vibrant-hero {
        min-height: 100vh;
        padding-top: 64px;
    }

    .vibrant-hero-gradient {
        background: linear-gradient(to bottom, rgba(7, 10, 100, 0.3) 0%, rgba(7, 10, 100, 0.7) 100%);
    }

    .vibrant-hero-content {
        padding: 24px 16px;
        text-align: center;
    }

    .vibrant-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .vibrant-badge-dot {
        width: 8px;
        height: 8px;
        background: #22c55e;
        border-radius: 50%;
        animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }

    .vibrant-hero-title {
        font-size: 2.5rem;
        line-height: 1;
        margin-bottom: 1.5rem;
        color: white;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .vibrant-text-gradient {
        background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .vibrant-hero-description {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .vibrant-hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .vibrant-hero-actions .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }

    /* ==========================================
       MOBILE COURSE CARDS
       ========================================== */

    .vibrant-programs-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 16px;
    }

    .vibrant-course-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .vibrant-course-card:active {
        transform: scale(0.98);
    }

    .vibrant-course-image {
        position: relative;
        height: 200px;
        overflow: hidden;
    }

    .vibrant-course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .vibrant-course-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    }

    .vibrant-course-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 0.375rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.625rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: white;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .vibrant-course-badge-red {
        background: rgba(239, 68, 68, 0.9);
    }

    .vibrant-course-badge-orange {
        background: rgba(249, 115, 22, 0.9);
    }

    .vibrant-course-badge-yellow {
        background: rgba(234, 179, 8, 0.9);
    }

    .vibrant-course-badge-pink {
        background: rgba(236, 72, 153, 0.9);
    }

    .vibrant-course-content {
        padding: 1.25rem;
    }

    .vibrant-course-title {
        font-size: 1.125rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 0.5rem;
    }

    .vibrant-course-description {
        font-size: 0.875rem;
        color: #6b7280;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    /* ==========================================
       MOBILE TESTIMONIALS
       ========================================== */

    .vibrant-testimonials-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 16px;
    }

    .vibrant-testimonial-card {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .vibrant-testimonial-icon {
        font-size: 1.5rem;
        color: #070a64;
        margin-bottom: 1rem;
        opacity: 0.3;
    }

    .vibrant-testimonial-text {
        font-size: 0.9375rem;
        color: #374151;
        line-height: 1.6;
        margin-bottom: 1.25rem;
        font-style: italic;
    }

    .vibrant-testimonial-author {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .vibrant-testimonial-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #070a64 0%, #1a237e 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 1.125rem;
    }

    .vibrant-testimonial-name {
        display: block;
        font-size: 0.9375rem;
        font-weight: 700;
        color: #111827;
    }

    .vibrant-testimonial-role {
        display: block;
        font-size: 0.75rem;
        color: #6b7280;
    }

    /* ==========================================
       MOBILE VALUE PROPOSITION
       ========================================== */

    .vibrant-value-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 16px;
    }

    .vibrant-value-card {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .vibrant-value-card:active {
        transform: scale(0.98);
    }

    .vibrant-value-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        font-size: 1.5rem;
        color: white;
    }

    .vibrant-value-icon-red {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .vibrant-value-icon-orange {
        background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    }

    .vibrant-value-icon-yellow {
        background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    }

    .vibrant-value-title {
        font-size: 1.125rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 0.5rem;
    }

    .vibrant-value-description {
        font-size: 0.875rem;
        color: #6b7280;
        line-height: 1.5;
    }

    /* ==========================================
       MOBILE FAQ SECTION
       ========================================== */

    .vibrant-faq-container {
        padding: 0 16px;
    }

    .vibrant-faq-title {
        font-size: 1.75rem;
        font-weight: 800;
        color: #111827;
        text-align: center;
        margin-bottom: 2rem;
    }

    .vibrant-faq-item {
        background: white;
        border-radius: 12px;
        margin-bottom: 0.75rem;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .vibrant-faq-question {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
        font-weight: 600;
        color: #111827;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
        transition: all 0.2s ease;
    }

    .vibrant-faq-question:active {
        background: rgba(7, 10, 100, 0.03);
    }

    .vibrant-faq-icon {
        font-size: 1rem;
        color: #070a64;
        transition: transform 0.3s ease;
    }

    .vibrant-faq-item.active .vibrant-faq-icon {
        transform: rotate(45deg);
    }

    .vibrant-faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .vibrant-faq-answer p {
        padding: 0 1.25rem 1rem;
        font-size: 0.875rem;
        color: #6b7280;
        line-height: 1.6;
        margin: 0;
    }

    .vibrant-faq-item.active .vibrant-faq-answer {
        max-height: 200px;
    }

    /* ==========================================
       MOBILE CTA SECTION
       ========================================== */

    .vibrant-cta {
        padding: 4rem 16px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .vibrant-cta-background {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #070a64 0%, #1a237e 100%);
    }

    .vibrant-cta-glow {
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.3;
    }

    .vibrant-cta-glow-1 {
        top: -100px;
        left: -100px;
        background: #ef4444;
    }

    .vibrant-cta-glow-2 {
        bottom: -100px;
        right: -100px;
        background: #f97316;
    }

    .vibrant-cta-content {
        position: relative;
        z-index: 1;
    }

    .vibrant-cta-title {
        font-size: 2rem;
        font-weight: 800;
        color: white;
        margin-bottom: 0.5rem;
    }

    .vibrant-cta-subtitle {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 2rem;
    }

    .vibrant-cta .btn-white {
        width: 100%;
        max-width: 300px;
    }

    /* ==========================================
       MOBILE BOTTOM NAVIGATION
       ========================================== */

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }

    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 16px;
        text-decoration: none;
        color: #9ca3af;
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav-item:active {
        transform: scale(0.95);
    }

    .mobile-bottom-nav-item.active {
        color: #070a64;
    }

    .mobile-bottom-nav-icon {
        font-size: 1.5rem;
    }

    .mobile-bottom-nav-label {
        font-size: 0.625rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* ==========================================
       MOBILE SECTION HEADERS
       ========================================== */

    .vibrant-section-header {
        padding: 3rem 16px 2rem;
        text-align: center;
    }

    .vibrant-section-title {
        font-size: 1.75rem;
        font-weight: 800;
        color: #111827;
        margin-bottom: 0.5rem;
    }

    .vibrant-section-subtitle {
        font-size: 0.9375rem;
        color: #6b7280;
    }

    .vibrant-section-link {
        margin-top: 1rem;
    }

    .vibrant-link {
        font-size: 0.875rem;
        font-weight: 600;
        color: #070a64;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s ease;
    }

    .vibrant-link:active {
        transform: translateX(4px);
    }

    /* ==========================================
       MOBILE FOOTER
       ========================================== */

    .vibrant-footer {
        padding-top: 3rem;
        padding-bottom: 100px;
    }

    .vibrant-footer-grid {
        gap: 2rem;
        padding: 0 16px;
    }

    .vibrant-footer-brand {
        text-align: center;
    }

    .vibrant-footer-logo {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .vibrant-footer-tagline {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .vibrant-footer-social {
        justify-content: center;
    }

    .vibrant-footer-column {
        text-align: center;
    }

    .vibrant-footer-heading {
        margin-bottom: 1rem;
    }

    .vibrant-footer-list {
        gap: 0.75rem;
    }

    .vibrant-footer-bottom {
        padding: 2rem 16px;
    }

    .vibrant-footer-bottom-inner {
        flex-direction: column;
        gap: 1rem;
    }

    /* ==========================================
       UTILITY CLASSES
       ========================================== */

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .safe-area-bottom {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .touch-feedback {
        -webkit-tap-highlight-color: rgba(7, 10, 100, 0.1);
    }
}

/* Desktop overrides */
@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }

    .mobile-bottom-nav {
        display: none;
    }
}