/*
 * Responsive štýly a mobilné menu - Jasné Farby
 */

/* ========== TABLET (max-width: 1024px) ========== */
@media (max-width: 1024px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-center {
        display: none;
    }

    .nav-logo,
    .nav-social {
        flex: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .hero-logo-wrapper img,
    .hero-title img {
        max-height: 30vh !important;
        transform: none !important;
        object-fit: contain;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ========== MOBILE (max-width: 640px) ========== */
@media (max-width: 640px) {
    .nav-social {
        gap: 0.5rem;
    }

    .nav-social a {
        width: 32px;
        height: 32px;
    }

    .hero {
        padding: 7rem 1rem 4rem;
        /* Increased top padding to avoid clipping */
        min-height: 100vh;
        /* Force full height to maintain spacing */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
        line-height: 0.9;
    }

    .hero-logo-wrapper {
        margin-bottom: 2rem;
    }

    .hero-logo-wrapper img,
    .hero-title img {
        max-width: 85vw !important;
        max-height: 25vh !important;
        height: auto !important;
        width: auto !important;
        transform: none !important;
        object-fit: contain;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 2rem;
        margin-bottom: 4rem;
        /* Add space for scroll indicator */
    }

    .scroll-indicator {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 2rem auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Fix for "Spojme sa" and other animated elements on mobile */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .contact-info h3 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 2rem;
        font-family: var(--font-display);
        font-size: 1.8rem;
        color: var(--color-text);
    }

    .concert-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        gap: 1.25rem;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-legal {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal .footer-separator {
        display: none;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Lights Out Mobile Adjustments */
    #hudba.music-active::before {
        filter: blur(40px);
        /* Reduce blur for mobile performance */
        opacity: 0.6;
    }

    #hudba.music-active .container {
        position: relative;
        z-index: 5;
    }
}

/* ========== MOBILE MENU ========== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 6px auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 1.5rem 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-links li {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-menu-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-links a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== POP-UP RESPONSIVE ========== */
@media (max-width: 640px) {
    .popup-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

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

    .popup-actions {
        flex-direction: column;
    }

    .popup-actions .btn {
        width: 100%;
    }
}

/* ========== COOKIE BANNER RESPONSIVE ========== */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-icon {
        margin-bottom: 0.5rem;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }

    .cookie-privacy-link {
        margin-top: 0.5rem;
    }
}

/* ========== PRIVACY MODAL RESPONSIVE ========== */
@media (max-width: 640px) {
    .privacy-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .privacy-modal {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .privacy-modal-header {
        padding: 1rem;
    }

    .privacy-modal-header h2 {
        font-size: 1.2rem;
    }

    .privacy-modal-content {
        padding: 1.25rem;
    }

    .privacy-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .privacy-modal-footer .btn {
        width: 100%;
    }
}

/* ========== STREAMING SECTION RESPONSIVE ========== */
@media (max-width: 768px) {
    .streaming-section {
        padding: 2rem 1rem;
    }

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

    .streaming-buttons {
        gap: 0.75rem;
    }

    .streaming-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .streaming-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .streaming-btn {
        width: 100%;
        justify-content: center;
    }
}