/*
Theme Name: UwatchFree (WPVibe Draft)
Theme URI: https://uwatchfree.org
Author: UwatchFree Team
Author URI: https://uwatchfree.org
Description: Ultra-fast, high-density cinematic movie streaming and downloading WordPress theme with TMDB Importer, multi-server video player, technical specification matrix, multi-quality download hub, and modern #40D7BC mint/teal styling.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uwatchfree
Tags: movies, streaming, downloading, cinema, dark-mode, responsive, tmdb, minimal, boxed
*/

/* CSS Variables */
:root {
  --theme-primary: #40D7BC;
  --theme-primary-hover: #35beA5;
  --theme-bg-outer: #06070a;
  --theme-bg-box: #0e1017;
  --theme-surface: #111319;
  --theme-surface-low: #151720;
  --theme-surface-card: #171923;
  --theme-surface-high: #202330;
  --theme-border: #1e2230;
  --theme-border-card: #252837;
  --theme-text: #e7eaf0;
  --theme-text-muted: #9da6b8;
}

/* Base Body: Deep Obsidian Outer Canvas */
html, body {
  margin: 0;
  padding: 0;
  background-color: #06070a !important;
  color: #e7eaf0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Boxed Theme Wrapper */
.site-boxed-wrapper {
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  background-color: #0e1017;
  border-left: 1px solid #1e2230;
  border-right: 1px solid #1e2230;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Sticky Header with WordPress Admin Bar Support */
.admin-bar .site-boxed-wrapper header.sticky {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-boxed-wrapper header.sticky {
    top: 46px !important;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #06070a;
}
::-webkit-scrollbar-thumb {
  background: #202330;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #40D7BC;
}

/* Cinema Glow Effects */
.glow-primary {
  box-shadow: 0 0 20px rgba(64, 215, 188, 0.25);
}
.glow-primary-hover:hover {
  box-shadow: 0 0 25px rgba(64, 215, 188, 0.4);
}
.text-glow {
  text-shadow: 0 0 10px rgba(64, 215, 188, 0.5);
}

/* Theater Mode Dimmer */
#theater-backdrop.active {
  display: block;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.94);
  z-index: 45;
}
.theater-active {
  position: relative;
  z-index: 50 !important;
}

/* Standardized Card & Grid Enhancements */
.cinema-card {
  background-color: #171923;
  border: 1px solid #252837;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s ease-in-out;
}
.cinema-card:hover {
  border-color: rgba(64, 215, 188, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(64, 215, 188, 0.15);
  transform: translateY(-2px);
}

/* Accessibility: Hide Screen Reader Text */
.screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  word-wrap: normal !important;
}

/* Fallback WordPress Posts Pagination */
.navigation.pagination,
.uwatchfree-pagination {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e7eaf0;
  background-color: #151722;
  border: 1px solid #232736;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.navigation.pagination .page-numbers:hover {
  color: #40D7BC;
  border-color: rgba(64, 215, 188, 0.4);
  background-color: #1f2333;
}
.navigation.pagination .page-numbers.current {
  background-color: #40D7BC !important;
  color: #02241e !important;
  border-color: #40D7BC !important;
  box-shadow: 0 0 15px rgba(64, 215, 188, 0.35);
  font-weight: 700;
  pointer-events: none;
}
.navigation.pagination .page-numbers.dots {
  background: transparent !important;
  border-color: transparent !important;
  color: #9da6b8;
}

/* WordPress Dynamic Primary & Mobile Menus */
.nav-menu-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu-primary > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu-primary > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  color: #9da6b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.nav-menu-primary > li:hover > a,
.nav-menu-primary > li.current-menu-item > a {
  color: #40D7BC;
  background-color: #1a1c26;
}
.nav-menu-primary .menu-item-has-children > a::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  font-size: 15px;
  line-height: 1;
  margin-left: 2px;
  color: #9da6b8;
  transition: transform 0.2s ease;
}
.nav-menu-primary .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  color: #40D7BC;
}
.nav-menu-primary .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 195px;
  background-color: #111319;
  border: 1px solid #2b2e3e;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 50;
}
.nav-menu-primary li:hover > .sub-menu {
  display: flex;
  flex-direction: column;
}
.nav-menu-primary .sub-menu li {
  list-style: none;
  margin: 0;
}
.nav-menu-primary .sub-menu li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 12px;
  color: #9da6b8;
  text-decoration: none;
  transition: all 0.15s ease;
}
.nav-menu-primary .sub-menu li:hover > a {
  color: #40D7BC;
  background-color: #1a1c26;
}

/* Mobile Nav Menu Drawer */
.mobile-nav-menu-primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-menu-primary li {
  list-style: none;
  margin: 0;
}
.mobile-nav-menu-primary a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.375rem;
  border-radius: 0.25rem;
  color: #e7eaf0;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.mobile-nav-menu-primary a:hover {
  background-color: #181a24;
  color: #40D7BC;
}
.mobile-nav-menu-primary .sub-menu {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}


