/* ===================================
   Movies Archive - Classic Design
   =================================== */

/* Page Header */
.page-header {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Cinema Info Grid */
.cinema-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cinema-info-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cinema-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.cinema-info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.cinema-info-card p {
    color: #718096;
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    background: #f5f7fa;
    padding: 2rem 0;
}

.month-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.month-navigator .current-month-movies {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-align: center;
}

.month-navigator .nav-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-navigator .nav-btn:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
    transform: translateY(-2px);
}

.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-group {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

#customDateGroup {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
}

.filter-select {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.filter-bar .btn-primary {
    padding: 0.875rem 2rem;
    white-space: nowrap;
}

/* Movies Grid - Classic */
.movies-grid-classic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.movie-card-classic {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.movie-card-classic:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.movie-poster-classic {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.movie-poster-classic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card-classic:hover .movie-poster-classic img {
    transform: scale(1.1);
}

.movie-overlay-classic {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    flex-direction: column;
}

.movie-card-classic:hover .movie-overlay-classic {
    opacity: 1;
}

.movie-overlay-classic .btn-primary,
.movie-overlay-classic .btn-secondary {
    width: 100%;
    max-width: 200px;
    justify-content: center;
}

.movie-overlay-classic .btn-secondary,
.movie-overlay-classic a.btn-secondary,
a.btn-secondary.btn-sm[target="_blank"] {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.5) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-tickets 2s ease-in-out infinite;
}

.movie-overlay-classic .btn-secondary:hover,
.movie-overlay-classic a.btn-secondary:hover,
a.btn-secondary.btn-sm[target="_blank"]:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.6) !important;
}

@keyframes pulse-tickets {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(39, 174, 96, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(39, 174, 96, 0.7);
    }
}

.movie-overlay-classic .btn-secondary i,
a.btn-secondary.btn-sm[target="_blank"] i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.movie-overlay-classic .btn-primary {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    border: none !important;
}

.movie-overlay-classic .btn-primary:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

/* Všetky tlačidlá "Kúpiť vstupenku" v kine */
.post-type-archive-movie .btn-secondary[target="_blank"],
.single-movie .btn-secondary[target="_blank"] {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.5) !important;
    font-weight: 700 !important;
}

.post-type-archive-movie .btn-secondary[target="_blank"]:hover,
.single-movie .btn-secondary[target="_blank"]:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%) !important;
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.6) !important;
}

/* Movie Badges */
.movie-badge-age {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(211, 47, 47, 0.95);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.movie-badge-age.badge-7 {
    background: rgba(39, 174, 96, 0.95); /* Zelená - pre deti */
}

.movie-badge-age.badge-15 {
    background: rgba(52, 152, 219, 0.95); /* Modrá */
}

.movie-badge-age.badge-18 {
    background: rgba(30, 30, 30, 0.95); /* Tmavá - len dospelí */
}

.movie-badge-age.badge-mp {
    background: rgba(120, 120, 120, 0.95); /* Šedá - bez obmedzenia */
}

.movie-label-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.movie-label-badge.new {
    background: #10b981;
    color: white;
}

.movie-label-badge.popular {
    background: #f59e0b;
    color: white;
}

.movie-price-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 10;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    border: 2px solid #fff;
}

.movie-price-badge.free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.movie-label-badge + .movie-price-badge {
    top: 4rem;
}

/* Movie Info */
.movie-info-classic {
    padding: 1.5rem;
}

.movie-title-classic {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.movie-meta-classic {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #95a5a6;
    margin-bottom: 0.75rem;
}

.movie-meta-classic span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.movie-meta-classic i {
    color: #d32f2f;
}

.movie-genre-classic {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.movie-desc-classic {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.movie-showtimes-classic {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.showtime-classic {
    padding: 0.5rem 1rem;
    background: #f5f7fa;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.showtime-classic:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Cinema Info Details */
.info-grid-classic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.info-title-classic {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d3748;
}

.info-item-classic {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f5f7fa;
}

.info-item-classic:last-child {
    border-bottom: none;
}

.info-item-classic h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.info-item-classic .note {
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
    margin-top: 0.5rem;
}

.info-item-classic a {
    color: #d32f2f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item-classic a:hover {
    color: #b71c1c;
}

/* Price Card */
.price-card-classic,
.support-card-classic {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.price-card-classic h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.price-list-classic {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-item-classic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 0.5rem;
}

.price-item-classic span {
    color: #2d3748;
}

.price-item-classic strong {
    color: #d32f2f;
    font-size: 1.125rem;
}

.price-note-classic {
    font-size: 0.875rem;
    color: #718096;
    text-align: center;
}

/* Support Card */
.support-card-classic {
    text-align: center;
}

.support-card-classic img {
    max-width: 150px;
    margin: 0 auto 1rem;
}

.support-card-classic .small {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 1rem;
}

.rules-card-classic {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.rules-card-classic h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rules-card-classic p {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.6;
}

.rules-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.95rem;
    border-radius: 0.65rem;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.rules-card-link:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #d32f2f 0%, #1a1a2e 100%);
    padding: 5rem 0;
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .filter-bar {
        flex-wrap: wrap;
    }
    
    .filter-group {
        flex-basis: calc(33.333% - 1rem);
        min-width: 180px;
    }
}

@media (max-width: 1024px) {
    .cinema-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar {
        flex-wrap: wrap;
    }
    
    .filter-group {
        flex-basis: calc(50% - 0.5rem);
        min-width: 200px;
    }
    
    .movies-grid-classic {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .info-grid-classic {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .cinema-info-grid {
        grid-template-columns: 1fr;
    }
    
    .month-navigator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .month-navigator .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .month-navigator .current-month-movies {
        font-size: 1.25rem;
        order: -1;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar .btn-primary {
        width: 100%;
    }
    
    .movies-grid-classic {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-lg {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .cinema-info-card {
        padding: 1.5rem;
    }
    
    .info-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .movie-poster-classic {
        height: 350px;
    }
}
