/* ===================================
   RESPONSIVE DESIGN - MsKS Humenné
   Mobile-First Responsive Styles
   =================================== */

/* ===================================
   MOBILE FIRST - Base (< 576px)
   =================================== */

/* Zabezpečenie, že všetko je mobile-friendly */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly interakcie */
a, button, .btn-primary, .btn-secondary {
    -webkit-tap-highlight-color: transparent;
}

/* Väčšie touch targets */
button, 
.btn-primary, 
.btn-secondary,
.nav-link,
.social-link,
.pill-btn {
    min-height: 44px;
    min-width: 44px;
}

/* ===================================
   GLOBAL TEXT SPACING - Mobile
   =================================== */
@media (max-width: 768px) {
    /* Zabezpečenie správnych medzier medzi slovami */
    h1, h2, h3, h4, h5, h6,
    .hero-title,
    .section-title,
    .page-title,
    .event-title,
    .movie-title,
    .service-title {
        word-spacing: 0.08em;
        letter-spacing: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    p, span, a, li {
        word-spacing: normal;
        letter-spacing: normal;
    }
    
    /* Texty v hero */
    .hero-title,
    .hero-subtitle,
    .hero-description {
        word-spacing: 0.1em;
    }
}

/* ===================================
   TOP BAR - Mobile Optimizations
   =================================== */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .top-bar-left {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .top-link {
        font-size: 0.75rem;
        gap: 0.35rem;
    }
    
    .top-link i {
        font-size: 0.85rem;
    }
    
    .top-bar-right {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0.4rem 0;
    }
    
    .top-bar-left {
        gap: 0.75rem;
    }
    
    .top-link span {
        display: none;
    }
    
    /* Skrátiť text - zobraziť len ikony */
    .top-link {
        font-size: 0;
    }
    
    .top-link i {
        font-size: 1rem;
    }
}

/* ===================================
   NAVIGATION - Mobile Hamburger Menu
   =================================== */
@media (max-width: 992px) {
    .navbar {
        padding: 0;
    }
    
    .nav-wrapper {
        padding: 0.75rem 0;
        min-height: 52px;
    }

    /* Text vedľa ikony skryť – názov je v strede */
    .logo .logo-text {
        display: none !important;
    }

    .nav-mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        text-align: center;
        line-height: 1.15;
        max-width: 55vw;
    }

    .nav-mobile-brand-main {
        font-family: var(--font-secondary, 'Playfair Display', Georgia, serif);
        font-size: 1.2rem;
        font-weight: 700;
        color: #1565c0;
        letter-spacing: 0.02em;
    }

    .nav-mobile-brand-sub {
        font-size: 0.62rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #64748b;
        margin-top: 0.1rem;
    }
    
    /* Logo zmenšenie */
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .logo-main {
        font-size: 1.25rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    /* Mobilné menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height pre iOS */
        background: #ffffff;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a,
    .nav-link {
        display: flex;
        width: 100%;
        padding: 1rem 0.5rem;
        font-size: 1rem;
        color: #2d3748;
        border-radius: 0;
    }
    
    .nav-menu a::after,
    .nav-link::after {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-link:hover,
    .nav-menu a.active,
    .nav-link.active {
        color: #d32f2f;
        background: rgba(211, 47, 47, 0.05);
    }
    
    /* Vstupenky (Kino FAJN) – na mobile úplne skryté */
    .nav-cta {
        display: none !important;
    }
    
    /* Hamburger button */
    .mobile-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        z-index: 1001;
    }
    
    .mobile-toggle span {
        width: 24px;
        height: 2px;
        background: #d32f2f;
        transition: all 0.3s ease;
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Submenu v mobile */
    .menu-item-has-children > .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-item-has-children.active > .sub-menu {
        max-height: 500px;
    }
    
    .sub-menu .menu-item a {
        padding-left: 2rem;
        font-size: 0.9rem;
        border-bottom: 1px solid #e8e8e8;
    }
    
    /* Skryť ikony v submenu */
    .sub-menu .nav-link i,
    .sub-menu a i {
        display: none;
    }
}

@media (max-width: 576px) {
    .nav-menu {
        width: 100%;
        max-width: 100%;
        padding: 4.5rem 1rem 2rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* ===================================
   HERO SECTION - Mobile
   =================================== */

/* Slideshow sa zobrazuje iba na desktope */
@media (max-width: 992px) {
    .hero {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .hero-for-compat {
        position: relative !important;
        overflow: hidden !important;
        aspect-ratio: 5 / 2 !important;
        min-height: 420px !important;
        max-height: 1000px !important;
    }
    
    .hero-slider {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .hero-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
        display: none;
    }
    
    .hero-slide.active {
        display: block !important;
        opacity: 1 !important;
    }
    
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .hero-content {
        position: relative !important;
        z-index: 10;
        padding: 3rem 1rem;
        max-width: 100%;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    /* Šípky hero slideru */
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        z-index: 20;
    }
    
    .hero-prev {
        left: 0.5rem;
    }
    
    .hero-next {
        right: 0.5rem;
    }
    
    /* Hero dots */
    .hero-dots {
        position: absolute;
        bottom: 1rem;
        z-index: 20;
    }
}

@media (max-width: 768px) {
    .hero,
    .hero-slider,
    .hero-slide {
        min-height: 450px !important;
    }
    
    .hero-content {
        padding: 2.5rem 1rem;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-arrow {
        display: none;
    }
    
    .hero-dots {
        bottom: 1rem;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-dot.active {
        width: 25px;
    }
}

@media (max-width: 576px) {
    .hero,
    .hero-slider,
    .hero-slide {
        min-height: 420px !important;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        min-height: 380px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        word-spacing: 0.1em;
        letter-spacing: normal;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* BR tag funguje normálne - zalomí riadok */
    .hero-title br {
        display: block;
        content: "";
        margin-top: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        word-spacing: 0.15em;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.6;
        word-spacing: 0.05em;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero,
    .hero-slider,
    .hero-slide {
        min-height: 400px !important;
    }
    
    .hero-content {
        padding: 1.5rem 0.75rem;
        min-height: 360px;
    }
    
    .hero-title {
        font-size: 1.25rem;
        line-height: 1.35;
        word-spacing: 0.15em;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}

/* ===================================
   HERO STATS - Mobile
   =================================== */
@media (max-width: 992px) {
    .hero-stats {
        position: relative;
        margin-top: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .stat-item {
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        gap: 0.75rem;
    }
    
    .stat-item:nth-child(2n) {
        border-right: none;
    }
    
    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-item i {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1rem;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 0.5rem;
        border-bottom: 1px solid #e8e8e8;
        gap: 1rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-item i {
        font-size: 1.5rem;
        width: 40px;
        text-align: center;
    }
}

/* ===================================
   GLOBAL MOBILE SPACING
   =================================== */
@media (max-width: 768px) {
    /* Medzery medzi hlavnými sekciami */
    .hero + .info-banner {
        margin-top: 0;
    }
    
    .info-banner + .section {
        margin-top: 0;
    }
    
    /* Container padding na mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Gridy - medzery */
    .movies-grid,
    .events-grid,
    .services-grid,
    .gallery-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
}

/* ===================================
   SECTION HEADERS - Mobile
   =================================== */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 0.75rem;
    }
    
    .section-footer {
        margin-top: 2rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
}

/* ===================================
   INFO BANNER - Mobile Spacing
   =================================== */
@media (max-width: 768px) {
    .info-banner {
        padding: 1.5rem 0;
    }
    
    .info-banner-content {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .info-text h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .info-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ===================================
   CARDS & GRIDS - Mobile
   =================================== */

/* Movies Grid - Homepage & Archive */
@media (max-width: 992px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .movies-grid-classic {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .movie-card {
        max-width: 100%;
    }
    
    .movie-card-classic {
        max-width: 100%;
    }
    
    /* Filmový poster - menšia výška na mobile */
    .movie-poster {
        aspect-ratio: 3/4; /* Menej vysoký pomer */
    }
    
    .movie-poster-classic {
        height: 300px;
    }
    
    .movie-info {
        padding: 1rem;
    }
    
    .movie-info-classic {
        padding: 1.25rem;
    }
    
    .movie-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .movie-title-classic {
        font-size: 1.1rem;
    }
    
    .movie-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .movie-genre {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .movie-desc {
        font-size: 0.8rem;
        display: none; /* Skryť popis na mobile pre úsporu miesta */
    }
    
    .movie-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    /* Overlay tlačidlo menšie */
    .movie-overlay .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .movie-poster {
        aspect-ratio: 4/5; /* Ešte menej vysoký */
    }
    
    .movie-info {
        padding: 0.75rem;
    }
    
    .movie-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .movie-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .movie-meta span {
        font-size: 0.7rem;
    }
    
    .movie-genre {
        display: none; /* Skryť žáner na veľmi malých obrazovkách */
    }
}

/* Events Grid - základné overrides (detail štýly sú v events-modern.css) */
@media (max-width: 1200px) {
    .events-grid {
        padding-left: 0;
    }
    
    /* Skryť červenú čiaru na mobile */
    .upcoming-events-section .events-grid::before {
        display: none !important;
    }
}

/* Services Grid */
@media (max-width: 768px) {
    .services-grid,
    .services-overview-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .service-card,
    .service-overview-card {
        padding: 1.5rem 1.25rem;
    }
    
    .service-icon,
    .service-overview-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
}

/* Homepage Event Cards - Mobile Spacing */
@media (max-width: 768px) {
    .event-card-home {
        margin-bottom: 0;
    }
    
    .event-image-home {
        height: 220px;
    }
    
    .event-content-home {
        padding: 1.25rem;
    }
    
    .event-title-home {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    .event-meta-home {
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }
    
    .event-desc-home {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .event-date-badge-home {
        padding: 0.4rem 0.6rem;
        min-width: 55px;
    }
    
    .event-date-badge-home .badge-day-home {
        font-size: 1.35rem;
    }
    
    .event-date-badge-home .badge-month-home {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .event-image-home {
        height: 200px;
    }
    
    .event-content-home {
        padding: 1rem;
    }
    
    .event-title-home {
        font-size: 1.1rem;
    }
}

/* Gallery Grid */
@media (max-width: 768px) {
    .gallery-grid,
    .gallery-grid-simple,
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item,
    .gallery-item-simple {
        aspect-ratio: 1;
    }
    
    .album-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid,
    .gallery-grid-simple {
        grid-template-columns: 1fr;
    }
}

/* Homepage social video section */
@media (max-width: 1024px) {
    .social-video-grid {
        grid-template-columns: 1fr;
    }

    .instagram-reels-grid {
        grid-template-columns: repeat(2, minmax(210px, 240px));
        justify-content: center;
        gap: 0.8rem;
    }

    .instagram-reels-grid .instagram-media,
    .instagram-reels-grid .instagram-media-rendered,
    .instagram-reels-grid blockquote.instagram-media,
    .instagram-reels-grid iframe {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }
}

@media (max-width: 768px) {
    .video-embed-card {
        padding: 0.8rem;
    }

    .video-embed-card h3 {
        font-size: 1.02rem;
    }

    .video-embed-frame {
        height: 560px;
    }

    .instagram-reels-grid {
        grid-template-columns: minmax(210px, 230px);
        justify-content: center;
        gap: 0.7rem;
    }

    .instagram-reels-grid .instagram-media,
    .instagram-reels-grid .instagram-media-rendered,
    .instagram-reels-grid blockquote.instagram-media,
    .instagram-reels-grid iframe {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }
}

@media (max-width: 480px) {
    .video-embed-frame {
        height: 480px;
    }

    .video-embed-note {
        font-size: 0.86rem;
    }
}

/* ===================================
   BUTTONS - Mobile Touch-Friendly
   =================================== */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-sm {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Skupiny tlačidiel */
    .hero-buttons,
    .cta-buttons,
    .services-cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ===================================
   CTA SECTION - Mobile
   =================================== */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 0;
        background-attachment: scroll; /* Lepší výkon na mobile */
    }
    
    .cta-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .cta-desc {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-input {
        padding: 1rem;
    }
    
    .newsletter-form .btn-primary {
        width: 100%;
    }
}

/* ===================================
   PAGE HEADERS - Mobile
   =================================== */
@media (max-width: 768px) {
    .page-header {
        min-height: 250px;
        padding: 4rem 0 2rem;
    }
    
    .page-header-content {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        min-height: 200px;
        padding: 3rem 0 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
}

/* ===================================
   FOOTER - Mobile
   =================================== */

/* Fix pre footer na všetkých stránkach */
footer.footer {
    position: relative !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    clear: both;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%) !important;
}

/* DÔLEŽITÉ: Prepísať AOS animácie pre footer - aby bol vždy viditeľný */
footer.footer [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
}

footer.footer .footer-col[data-aos],
footer.footer .partners-title[data-aos],
footer.footer .partners-grid[data-aos],
footer.footer [data-aos="fade-up"] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Footer grid - MUSÍ byť vždy grid */
footer.footer .footer-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer.footer .footer-col {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer.footer .footer-top,
footer.footer .footer-partners,
footer.footer .footer-bottom {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

/* Fix pre stránku Program - upcoming-events-section nesmie prekrývať footer */
.upcoming-events-section {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.upcoming-events-section + footer.footer,
section + footer.footer {
    margin-top: 0;
}

@media (max-width: 992px) {
    footer.footer .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    footer.footer .partners-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    footer.footer .footer-top {
        padding: 3rem 0 !important;
        display: block !important;
    }
    
    footer.footer .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    footer.footer .footer-col {
        display: block !important;
        padding: 0 1rem;
    }
    
    footer.footer .footer-title {
        display: block !important;
    }
    
    footer.footer .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    footer.footer .footer-logo {
        justify-content: center;
        display: flex !important;
    }
    
    footer.footer .footer-social {
        justify-content: center;
        display: flex !important;
    }
    
    footer.footer .footer-links {
        display: block !important;
    }
    
    footer.footer .footer-links li {
        display: block !important;
    }
    
    footer.footer .footer-links a {
        justify-content: center;
        display: flex !important;
    }
    
    footer.footer .footer-contact {
        display: block !important;
    }
    
    footer.footer .footer-contact li {
        justify-content: center;
        text-align: center;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
    
    footer.footer .footer-partners {
        display: block !important;
    }
    
    footer.footer .partners-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    footer.footer .partner-logo {
        display: flex !important;
    }
    
    footer.footer .partner-logo img {
        max-width: 100px;
    }
    
    footer.footer .footer-bottom {
        display: block !important;
    }
    
    footer.footer .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        display: flex !important;
    }
    
    footer.footer .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partner-logo img {
        max-width: 80px;
    }
}

/* ===================================
   FILTER SECTIONS - Mobile
   =================================== */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .filter-bar .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Filter Pills */
    .filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .filter-pills::-webkit-scrollbar {
        display: none;
    }
    
    .pill-btn {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Month Navigator */
    .month-navigator {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .month-navigator .nav-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .month-navigator .current-month {
        font-size: 1.25rem;
    }
}

/* ===================================
   FORMS - Mobile
   =================================== */
@media (max-width: 768px) {
    .contact-form-kontakt {
        padding: 1.5rem;
    }
    
    .form-grid-kontakt {
        grid-template-columns: 1fr;
    }
    
    .form-group-kontakt input,
    .form-group-kontakt select,
    .form-group-kontakt textarea,
    .wpcf7-form input,
    .wpcf7-form select,
    .wpcf7-form textarea {
        padding: 0.875rem;
        font-size: 16px; /* Zabraňuje zoom na iOS */
    }
    
    .form-title-kontakt,
    .info-title-kontakt {
        font-size: 1.5rem;
    }
    
    .contact-info-card-kontakt {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon-kontakt {
        margin: 0 auto;
    }
}

/* ===================================
   CINEMA INFO GRID - Mobile
   =================================== */
@media (max-width: 992px) {
    .cinema-info-grid {
        display: none !important;
    }

    .info-grid-classic {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===================================
   FEATURED EVENT - Mobile
   =================================== */
@media (max-width: 1024px) {
    .featured-event {
        grid-template-columns: 1fr;
    }
    
    .featured-event-image {
        min-height: 250px;
    }
    
    .featured-event-content {
        padding: 2rem;
    }
    
    .featured-event-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .featured-event-image {
        min-height: 200px;
    }
    
    .featured-event-content {
        padding: 1.5rem;
    }
    
    .featured-event-title {
        font-size: 1.5rem;
    }
    
    .featured-event-desc {
        font-size: 1rem;
    }
    
    .featured-meta-item {
        font-size: 0.95rem;
    }
}

/* ===================================
   SERVICES DETAIL - Mobile
   =================================== */
@media (max-width: 1024px) {
    .service-detail,
    .service-detail.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail.reverse .service-detail-gallery {
        order: -1;
    }
}

@media (max-width: 768px) {
    .service-detail-title {
        font-size: 1.5rem;
    }
    
    .service-badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .price-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .detail-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .detail-gallery-thumbs img {
        height: 70px;
    }
}

/* ===================================
   LIGHTBOX - Mobile
   =================================== */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        position: fixed;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        position: fixed;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-counter {
        bottom: 70px;
    }
}

/* ===================================
   COOKIE BANNER - Mobile
   =================================== */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-text i {
        font-size: 1.5rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

/* ===================================
   SCROLL TO TOP - Mobile
   =================================== */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ===================================
   ALBUM PAGES - Mobile
   =================================== */
@media (max-width: 768px) {
    .album-header {
        min-height: 200px;
    }
    
    .album-header-title {
        font-size: 1.75rem;
    }
    
    .album-header-meta {
        gap: 0.75rem;
    }
    
    .album-meta-item {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .album-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .album-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===================================
   SINGLE EVENT PAGE - Mobile
   =================================== */
@media (max-width: 768px) {
    .event-header {
        min-height: 250px;
    }
    
    .event-header-title {
        font-size: 1.75rem;
    }
    
    .event-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-sidebar {
        position: static;
        order: -1;
    }
}

/* ===================================
   UTILITIES - Mobile
   =================================== */

/* Text utilities */
@media (max-width: 768px) {
    .text-mobile-center {
        text-align: center !important;
    }
    
    .text-mobile-left {
        text-align: left !important;
    }
}

/* Hide/Show utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Spacing utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .mb-mobile-2 {
        margin-bottom: 2rem !important;
    }
    
    .pt-mobile-2 {
        padding-top: 2rem !important;
    }
}

/* ===================================
   LANDSCAPE MODE FIXES
   =================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .page-header {
        min-height: 150px;
        padding: 2rem 0;
    }
}

/* ===================================
   iOS SPECIFIC FIXES
   =================================== */
@supports (-webkit-touch-callout: none) {
    /* iOS specific styles */
    .nav-menu {
        height: -webkit-fill-available;
    }
    
    /* Fix pre safe area (notch) */
    .top-bar {
        padding-top: max(0.75rem, env(safe-area-inset-top));
    }
    
    .footer-bottom {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
    
    .cookie-banner {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

/* Hide TIC banner on mobile */
@media (max-width: 768px) {
    .info-banner {
        display: none !important;
    }
}

@media print {
    .top-bar,
    .navbar,
    .mobile-toggle,
    .nav-cta,
    .cookie-banner,
    .scroll-top,
    .hero-arrow,
    .hero-dots,
    .footer-social,
    .lightbox-overlay {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        height: auto;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    body {
        font-size: 12pt;
    }
}
