/**
 * TV Series Showcase Component CSS
 * Features European TV series with dual-direction scrolling
 * Uses Electric Xtra theme colors and design
 */

/* Series Showcase Section */
.series-showcase-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.series-showcase-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.series-showcase-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.series-showcase-section .col-12 {
    width: 100%;
    padding: 0 15px;
}

.series-showcase-section .text-center {
    text-align: center;
    margin-bottom: 60px;
}

.series-showcase-section .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6e39;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ff6e39, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.series-showcase-section .section-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Desktop Showcase */
.showcase-desktop {
    position: relative;
    margin-bottom: 60px;
    overflow: hidden;
}

.showcase-desktop .relative {
    position: relative;
    width: 100%;
    height: 400px;
}

.showcase-desktop .absolute {
    position: absolute;
}

.showcase-desktop .inset-y-0 {
    top: 0;
    bottom: 0;
}

.showcase-desktop .left-0 {
    left: 0;
}

.showcase-desktop .right-0 {
    right: 0;
}

.showcase-desktop .w-32 {
    width: 128px;
}

.showcase-desktop .bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.showcase-desktop .bg-gradient-to-l {
    background-image: linear-gradient(to left, var(--tw-gradient-stops));
}

.showcase-desktop .from-secondary-color {
    --tw-gradient-from: #ff6e39;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 110, 57, 0));
}

.showcase-desktop .to-transparent {
    --tw-gradient-to: transparent;
}

.showcase-desktop .z-10 {
    z-index: 10;
}

.showcase-desktop .pointer-events-none {
    pointer-events: none;
}

.showcase-desktop .flex {
    display: flex;
}

.showcase-desktop .gap-6 {
    gap: 24px;
}

.showcase-desktop .animate-scroll-left {
    animation: scrollLeft 60s linear infinite;
}

.showcase-desktop .animate-scroll-right {
    animation: scrollRight 70s linear infinite;
}

.showcase-desktop .width-fit-content {
    width: fit-content;
}

/* Series Card Container */
.series-card-container {
    flex-shrink: 0;
    width: 280px;
    height: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.series-card-container:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 110, 57, 0.3);
}

/* Series Card */
.series-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(145deg, #2a2a3e, #1e1e2e);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.series-card:hover {
    box-shadow: 0 12px 48px rgba(255, 110, 57, 0.2);
}

/* Series Poster */
.series-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    filter: brightness(0.8) contrast(1.1);
}

.series-card:hover .series-poster {
    transform: scale(1.1);
    filter: brightness(0.9) contrast(1.2);
}

/* Series Overlay */
.series-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.series-card:hover .series-overlay {
    opacity: 1;
}

/* Network Logo */
.series-network-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
}

.series-card:hover .series-network-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 110, 57, 0.3);
}

.network-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.8);
}

/* Series Info */
.series-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.9) 100%
    );
    color: white;
    z-index: 4;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.series-card:hover .series-info {
    transform: translateY(-5px);
}

.series-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.series-description {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    max-height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Footer Text */
.showcase-footer-text {
    text-align: center;
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-top: 40px;
    font-style: italic;
    padding: 20px 0;
}

/* Animations */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .series-showcase-section {
        padding: 60px 0;
        min-height: 500px;
    }
    
    .series-showcase-section .section-title {
        font-size: 2.2rem;
    }
    
    .series-showcase-section .section-description {
        font-size: 1rem;
    }
    
    .showcase-desktop .relative {
        height: 350px;
    }
    
    .series-card-container {
        width: 240px;
        height: 350px;
    }
    
    .showcase-desktop .w-32 {
        width: 80px;
    }
    
    .showcase-desktop .gap-6 {
        gap: 16px;
    }
    
    .series-title {
        font-size: 1.1rem;
    }
    
    .series-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .series-showcase-section {
        padding: 40px 0;
    }
    
    .series-showcase-section .container {
        padding: 0 15px;
    }
    
    .series-showcase-section .section-title {
        font-size: 1.8rem;
    }
    
    .series-card-container {
        width: 200px;
        height: 300px;
    }
    
    .showcase-desktop .relative {
        height: 300px;
    }
    
    .showcase-desktop .w-32 {
        width: 60px;
    }
    
    .showcase-desktop .gap-6 {
        gap: 12px;
    }
    
    .series-network-logo {
        width: 50px;
        height: 25px;
    }
    
    .series-info {
        padding: 15px;
    }
    
    .series-title {
        font-size: 1rem;
    }
    
    .series-description {
        font-size: 0.75rem;
        max-height: 2.4em;
    }
}

/* Custom Scrollbar for Webkit Browsers */
.showcase-desktop::-webkit-scrollbar {
    height: 8px;
}

.showcase-desktop::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.showcase-desktop::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6e39, #ff8c42);
    border-radius: 4px;
}

.showcase-desktop::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff8c42, #ffab6b);
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .series-poster {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .showcase-desktop .animate-scroll-left,
    .showcase-desktop .animate-scroll-right {
        animation: none;
    }
    
    .series-card-container,
    .series-card,
    .series-poster,
    .series-overlay,
    .series-network-logo,
    .series-info {
        transition: none;
    }
}

/* Focus States for Accessibility */
.series-card-container:focus-within {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .series-showcase-section {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .series-card-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}