/* ========================================
   IPTV Central - Homepage Specific Styles
   ======================================== */

/* VOD Showcase */
.vod-showcase-section {
    padding: 60px 0 0 !important;
    background: linear-gradient(135deg, #030712 0%, #0a1628 100%);
    overflow: hidden;
    margin-bottom: 0;
}

.showcase-desktop,
.showcase-desktop-row2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    margin: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    /* Override style.css edge fade mask that creates blank space on left/right */
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.showcase-desktop-row2 { margin-top: 0; }

.showcase-desktop::-webkit-scrollbar,
.showcase-desktop-row2::-webkit-scrollbar { display: none; }

/* Override style.css CSS animation - homepage uses JS-based scrolling */
.showcase-desktop .flex,
.showcase-desktop-row2 .flex,
.showcase-desktop > div,
.showcase-desktop-row2 > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    width: fit-content;
    align-items: center;
    animation: none !important;
}

.showcase-desktop:hover,
.showcase-desktop-row2:hover { cursor: grab; }

.showcase-desktop:active,
.showcase-desktop-row2:active { cursor: grabbing; }

.vod-card-container {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    margin: 0;
}

.vod-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.vod-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: skeletonShimmer 1.5s infinite;
    z-index: 0;
}

.vod-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Override style.css .vod-card img fixed height */
.vod-card img {
    height: 100% !important;
}

.lazy-load { opacity: 0; transition: opacity 0.3s ease; }
.lazy-load.loaded { opacity: 1; }

.showcase-footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 10px 0 0;
    padding: 10px 20px 0;
    line-height: 1.6;
}

/* Sports Showcase */
.sports-showcase-section {
    padding: 60px 0 !important;
    background: linear-gradient(135deg, #030712 0%, #0a1628 100%);
    overflow: hidden;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.showcase-desktop-sports {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    margin: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    flex: 1;
    scroll-behavior: smooth;
    /* Override style.css edge fade mask */
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.showcase-desktop-sports::-webkit-scrollbar { display: none; }

/* Override style.css CSS animation on sports flex */
.showcase-desktop-sports .flex,
.showcase-desktop-sports > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    width: fit-content;
    align-items: center;
    animation: none !important;
}

.showcase-desktop-sports:hover { cursor: grab; }
.showcase-desktop-sports:active { cursor: grabbing; }

.showcase-sports-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* WHITE background so all logos (dark and light) are visible */
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    border: none !important;
    padding: 0 !important;
}

/* Remove shimmer - not needed with white bg */
.showcase-sports-logo::before {
    display: none !important;
}

.sports-card-container {
    flex-shrink: 0;
    width: 120px;
    height: 140px;
    margin: 0;
}

.sports-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
    background: #ffffff;
}

.sports-league-image {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
}

.sports-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 15px 10px 10px;
    text-align: center;
    z-index: 3;
}

.sports-text {
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.sports-card:hover .sports-league-image { transform: scale(1.05); }
.sports-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.35);
}

/* Showcase Controls */
.showcase-controls {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.showcase-controls::before { display: none; }

.showcase-arrow-left,
.showcase-arrow-right {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
    user-select: none;
    animation: arrowPulse 3s ease-in-out infinite;
}

.showcase-arrow-left:hover,
.showcase-arrow-right:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.showcase-arrow-left:active,
.showcase-arrow-right:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

@keyframes arrowPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5); }
}

/* Testimonials Slider - Homepage scroll-based approach */
.testimonials-slider::-webkit-scrollbar { display: none; }

/* Ensure all testimonial images are always visible */
.testimonials-slider .lazy-load,
.testimonials-slider .testimonial-slide img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Override style.css transform approach - homepage uses scrollLeft */
.testimonials-slider-container {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.testimonials-slider {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    /* Override style.css transform-based transition */
    transform: none !important;
    transition: none !important;
}

.testimonial-slide {
    flex-shrink: 0;
    width: 300px;
    margin-right: 0;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

.testimonials-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.testimonials-nav-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: white;
    border: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.testimonials-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.testimonials-nav-btn:active { transform: translateY(0); }
.testimonials-nav-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonials-dot.active {
    background: #00d4ff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.testimonials-dot:hover { background: rgba(255, 255, 255, 0.6); }

/* Skeleton Loading */
.skeleton-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.vod-skeleton { width: 200px; height: 300px; flex-shrink: 0; }
.sports-skeleton { width: 120px; height: 140px; flex-shrink: 0; }
.skeleton-hidden { display: none; }

/* Responsive */
@media (max-width: 1024px) {
    .vod-card-container { width: 170px; height: 255px; }
    .sports-card-container { width: 110px; height: 130px; }
    .testimonial-slide { width: 260px; }
    .vod-skeleton { width: 170px; height: 255px; }
    .sports-skeleton { width: 110px; height: 130px; }
}

@media (max-width: 768px) {
    .vod-card-container { width: 150px; height: 225px; }
    .vod-showcase-section { padding: 40px 0 0 !important; }
    .showcase-desktop { margin: 15px 0; }
    .showcase-desktop-row2 { margin-top: 0; }
    .showcase-desktop > div,
    .showcase-desktop-row2 > div,
    .showcase-desktop .flex,
    .showcase-desktop-row2 .flex { gap: 18px; }
    .sports-card-container { width: 100px; height: 115px; }
    .sports-showcase-section { padding: 40px 0 !important; }
    .showcase-desktop-sports { margin: 15px 0; }
    .showcase-desktop-sports > div,
    .showcase-desktop-sports .flex { gap: 18px; }
    .sports-text { font-size: 12px; padding: 8px; }
    .showcase-arrow-left,
    .showcase-arrow-right { width: 48px; height: 48px; font-size: 16px; margin: 0 10px; }
    .testimonial-slide { width: 250px; }
    .testimonials-nav-btn { width: 48px; height: 48px; }
    .testimonials-dot { width: 8px; height: 8px; }
    .vod-skeleton { width: 150px; height: 225px; }
    .sports-skeleton { width: 100px; height: 115px; }
}

@media (max-width: 480px) {
    .vod-card-container { width: 120px; height: 180px; }
    .vod-showcase-section { padding: 30px 0 0 !important; }
    .showcase-desktop { margin: 10px 0; }
    .showcase-desktop-row2 { margin-top: 0; }
    .showcase-desktop > div,
    .showcase-desktop-row2 > div,
    .showcase-desktop .flex,
    .showcase-desktop-row2 .flex { gap: 12px; }
    .sports-card-container { width: 85px; height: 100px; }
    .showcase-desktop-sports { margin: 10px 0; }
    .showcase-desktop-sports > div,
    .showcase-desktop-sports .flex { gap: 12px; }
    .sports-text { font-size: 12px; padding: 6px; }
    .showcase-arrow-left,
    .showcase-arrow-right { width: 48px; height: 48px; font-size: 16px; margin: 0 8px; }
    .testimonial-slide { width: 220px; }
}
