/* Tailwind v4 utilities are loaded via the @tailwindcss/browser CDN script.
   No @import needed — the browser runtime processes all CSS automatically. */

/* Screen reader only - for SEO H1 tags */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   PREMIUM NAVIGATION STYLES
   ============================================ */
.site-header {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-glass-container {
    background: linear-gradient(to bottom, rgba(31, 41, 55, 0.1), rgba(17, 24, 39, 0.05));
}

.nav-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3B82F6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-item:hover::after {
    width: 8px;
}

.dropdown-menu-v2 {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-search-container input:focus {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Mobile Drawer Specifics */
#mobile-menu-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    height: 100dvh;
    width: 300px;
    position: fixed;
    right: 0;
    top: 0;
    margin-top: 0 !important;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex; /* Always flex but controlled by transform */
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

#mobile-menu-panel.hidden {
    display: flex; /* Maintain flex for transition */
    transform: translateX(100%);
    pointer-events: none;
}

#mobile-menu-panel:not(.hidden) {
    transform: translateX(0);
}

/* Backdrop Overlay */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Header Z-Index Fix */
.site-header {
    z-index: 100;
}

/* Menu Item Refinement */
.mobile-nav-link {
    transition: all 0.2s ease;
}

.mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

/* Active State */
.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active::after {
    width: 20px;
}

/* Scroll Lock Helper */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* Hide any stray text/content before the main site */
html>body::before {
    content: none !important;
}

/* Force body to start clean - hide any raw text output */
body {
    font-size: 0;
}

body * {
    font-size: 1rem;
}

body>*:first-child:not(#page):not(#wpadminbar):not(script):not(style) {
    display: none !important;
}

#page,
.site {
    font-size: 1rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    /* Dark blue-gray */
    color: #F3F4F6;
}

/* Custom scrollbar for carousels */
#hero-backdrop-container {
    min-height: 30vh;
}

@media (min-width: 640px) {
    #hero-backdrop-container {
        min-height: 50vh;
    }
}

@media (min-width: 1280px) {
    #hero-backdrop-container {
        min-height: 60vh;
    }
}

.carousel-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.carousel-scrollbar::-webkit-scrollbar-track {
    background: #1F2937;
    border-radius: 10px;
}

.carousel-scrollbar::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 10px;
}

.carousel-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* CLS Fix: Reserve space for carousels before JS hydrates them */
#now-playing-carousel,
#upcoming-carousel,
#top-rated-carousel,
#tv-popular-carousel,
#tv-airing-today-carousel,
#tv-top-rated-carousel {
    min-height: 280px;
    display: flex;
}

@media (min-width: 640px) {
    #now-playing-carousel,
    #upcoming-carousel,
    #top-rated-carousel,
    #tv-popular-carousel,
    #tv-airing-today-carousel,
    #tv-top-rated-carousel {
        min-height: 330px; /* sm:h-72 (288px) + padding/margins */
    }
}

/* Rating Stars */
.rating-stars .star {
    color: #4B5563;
    /* Gray */
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars .star:hover,
.rating-stars .star.selected,
.rating-stars .star.hovered {
    color: #F59E0B;
    /* Yellow */
}

/* Ensure stars are in correct visual order */
.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars .star:hover~.star {
    color: #F59E0B;
}

/* Make aspect ratio consistent */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
}

.aspect-h-9 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.aspect-\[2\/3\] {
    aspect-ratio: 2 / 3;
}

/* Li
ne clamp utilities for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News grid responsive layout */
#news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    #news-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-navigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-navigation {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-navigation {
        grid-template-columns: 1fr;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
}

.site-info p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}


/* ============================================
   AI VERDICT STYLES - Override any strikethrough
   ============================================ */

#ai-verdict-content,
#ai-verdict-content * {
    text-decoration: none !important;
}

#ai-verdict-content article {
    text-decoration: none !important;
}

#ai-verdict-content p,
#ai-verdict-content span,
#ai-verdict-content div {
    text-decoration: none !important;
}

#ai-verdict-content [itemprop="reviewBody"],
#ai-verdict-content [itemprop="reviewBody"] * {
    text-decoration: none !important;
}


/* ============================================
   BREADCRUMB STYLES
   ============================================ */

.breadcrumb-nav {
    font-size: 0.875rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #6b7280;
}

.breadcrumb-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #3b82f6;
}

.breadcrumb-current {
    color: #f8fafc;
    font-weight: 500;
}

/* ============================================
   USER DASHBOARD REDESIGN
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-glass-card {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dashboard-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dashboard-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
}

.dashboard-sidebar-item.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.dashboard-stat-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
}

.dashboard-folder-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-folder-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(31, 41, 55, 0.8);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.3);
}

.dashboard-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: white !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.dashboard-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

.dashboard-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.dashboard-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
/* ============================================
   USER REGISTRATION PLUGIN - PREMIUM DARK STYLES
   ============================================ */

/* Center the form on the specialized login page */
.page-id-login .site-main,
.page-id-register .site-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 400px);
    padding: 2rem 1rem;
}

/* Base Form Styling - Glassmorphism */
.ur-frontend-form {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    background: rgba(31, 41, 55, 0.4) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1.5rem !important;
    padding: 2.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    color: #f3f4f6 !important;
}

/* Form Row & Grid Cleanup */
.ur-form-row, .ur-form-grid {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Label Styling */
.ur-label label, .ur-label {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Input Field Styling - Robust Selectors for UR Plugin */
.ur-frontend-form input[type="text"],
.ur-frontend-form input[type="email"],
.ur-frontend-form input[type="password"],
.ur-frontend-form input[type="url"],
.ur-frontend-form input[type="number"],
.ur-frontend-form textarea,
.ur-frontend-field,
.user-registration-login-form .input-text {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: white !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.ur-frontend-form input:focus,
.ur-frontend-field:focus,
.user-registration-login-form .input-text:focus {
    border-color: #3b82f6 !important;
    background: rgba(15, 23, 42, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* Submit Button Styling */
.ur-submit-button {
    width: 100% !important;
    margin-top: 1.5rem !important;
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4) !important;
    text-transform: none !important;
}

.ur-submit-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.5) !important;
    filter: brightness(1.1) !important;
}

.ur-submit-button:active {
    transform: translateY(0) !important;
}

/* Extra View Links (Forget Password, Login, etc) */
.ur-extra-view {
    margin-top: 1.5rem !important;
    text-align: center !important;
    font-size: 0.875rem !important;
    color: #9ca3af !important;
}

.ur-extra-view a {
    color: #60a5fa !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ur-extra-view a:hover {
    color: #93c5fd !important;
    text-decoration: underline !important;
}

/* Checkbox Styling */
.ur-frontend-field input[type="checkbox"] {
    accent-color: #3b82f6 !important;
    margin-right: 0.5rem !important;
}

/* Success/Error Message Styling */
.user-registration-message,
.user-registration-error,
.user-registration-Error {
    border-radius: 1rem !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.user-registration-message {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

.user-registration-error,
.user-registration-Error {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
}

/* Form Title Integration */
.ur-frontend-form h2 {
    color: white !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

/* Privacy Policy / Terms Link */
.ur-frontend-field p {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    margin-top: 0.5rem !important;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .ur-frontend-form {
        padding: 1.5rem !important;
        border-radius: 1rem !important;
    }
    
    .ur-frontend-form h2 {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   STREAMING PROVIDER SYNC STYLES
   ============================================ */
.streaming-provider-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.streaming-provider-card img {
    border-width: 2px;
    transition: all 0.3s ease;
}

.streaming-provider-card.selected img {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.streaming-provider-card:hover img {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.5);
}

.streaming-provider-card.selected:hover img {
    border-color: #3b82f6;
}

/* ============================================
   PERSONALIZATION DASHBOARD STYLES
   ============================================ */
#dashboard-status-bar {
    animation: fadeInDown 0.5s ease-out;
}

.provider-mini-icon {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.provider-mini-icon:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

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