/* =============================================
   HERO POSTER SLIDER - FULL WIDTH
   Modern full-screen poster carousel
   ============================================= */

/* Hero Slider Section */
.hero-slider-section {
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    height: 92vh;
    /* Increased from 85vh for taller display */
    min-height: 650px;
    /* Increased from 600px */
    max-height: 1000px;
    /* Increased from 900px */
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Poster Slider Wrapper */
.poster-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Poster Slider Container */
.poster-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Poster Item */
.poster-item {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    border-radius: 24px;
    overflow: hidden;
}

.poster-item img {
    width: 100%;
    height: 100%;
    /* object-fit and object-position will be set dynamically from Firestore */
    display: block;
    border-radius: 24px;
}

/* Video Element Support */
.poster-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Portrait Orientation Support */
.poster-item.poster-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.poster-item.poster-portrait img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Poster Overlay */
.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 3rem;
    color: white;
}

.poster-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.poster-overlay p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    /* Hidden - auto-scroll only */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 2rem;
}

.slider-btn.next {
    right: 2rem;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 100;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

/* Quick Actions Section */
.quick-actions {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.action-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.action-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Loading State */
.poster-slider-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.poster-slider-loading p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-slider-section {
        margin: 1.5rem;
        height: 60vh;
        min-height: 400px;
        border-radius: 20px;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .slider-btn.prev {
        left: 1rem;
    }

    .slider-btn.next {
        right: 1rem;
    }

    .poster-overlay {
        padding: 2rem;
    }

    .poster-overlay h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        margin: 1rem;
        height: 50vh;
        min-height: 350px;
        border-radius: 16px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        padding: 1.5rem;
    }

    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 0.5rem;
    }

    .slider-btn.next {
        right: 0.5rem;
    }

    .slider-indicators {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .slider-indicator {
        width: 8px;
        height: 8px;
    }

    .slider-indicator.active {
        width: 30px;
    }

    .poster-overlay {
        padding: 1.5rem;
    }

    .poster-overlay h3 {
        font-size: 1.2rem;
    }

    .poster-overlay p {
        font-size: 0.9rem;
    }
}

/* Light Theme */
[data-theme="light"] .action-card {
    background: white;
    border-color: #e5e7eb;
}

[data-theme="light"] .action-card:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}