/* ==========================================================================
   TellyQuelz — "Midnight Cinema" design system
   Drop this file in:  public/site_assets/css/tq-theme.css
   It loads LAST in site_app.blade.php, so it re-skins the whole front end.
   Change the palette in ONE place: the :root block below.
   Ad containers (.banner_ads_item, .ad-center-row) are intentionally NOT styled.
   ========================================================================== */

:root {
  /* surfaces */
  --mq-bg:        #070b13;
  --mq-bg-2:      #0b1120;
  --mq-surface:   #0f1729;
  --mq-surface-2: #16213a;
  --mq-surface-3: #1d2a49;
  --mq-line:      rgba(255, 255, 255, .08);
  --mq-line-2:    rgba(255, 255, 255, .14);

  /* text */
  --mq-text:      #e8edf7;
  --mq-text-dim:  #9aa7c0;
  --mq-text-mute: #6b7896;

  /* brand */
  --mq-accent:       #2dd4bf;   /* text / borders / icons on dark */
  --mq-accent-solid: #0d9488;   /* fills that carry white text    */
  --mq-accent-soft:  #99f6e4;
  --mq-accent-2:     #38bdf8;   /* secondary (sky) */
  --mq-gold:         #fbbf24;   /* ratings / stars */
  --mq-hot:          #e11d48;   /* live / premium / alerts */

  /* shape + motion */
  --mq-r-sm: 8px;
  --mq-r:    14px;
  --mq-r-lg: 20px;
  --mq-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --mq-ease: cubic-bezier(.22, .8, .24, 1);

  --mq-font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --mq-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--mq-bg) !important;
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(45, 212, 191, .10), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(56, 189, 248, .08), transparent 55%) !important;
  background-repeat: no-repeat !important;
  color: var(--mq-text);
  font-family: var(--mq-font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, button, input, select, textarea, .btn {
  font-family: var(--mq-font);
}
h1, h2, h3, h4, h5, h6 { color: #fff; letter-spacing: -.01em; line-height: 1.25; font-family: var(--mq-font-display); }
h1 { font-weight: 800; }
p { color: var(--mq-text-dim); }
a { color: var(--mq-accent); text-decoration: none; transition: color .2s var(--mq-ease); }
a:hover { color: var(--mq-accent-soft); }
img { max-width: 100%; height: auto; }
::selection { background: var(--mq-accent-solid); color: #fff; }

/* keyboard focus — accessibility signal Google's Lighthouse checks for */
:focus-visible { outline: 2px solid var(--mq-accent); outline-offset: 2px; border-radius: 4px; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--mq-surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--mq-surface-3); border-radius: 10px; border: 2px solid var(--mq-bg); }

/* screen-reader-only helper (used for the SEO <h1> on image-heavy pages) */
.tq-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tq-skip {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--mq-accent-solid); color: #fff; padding: 10px 16px;
  border-radius: var(--mq-r-sm); font-weight: 700; transition: top .2s;
}
.tq-skip:focus { top: 12px; color: #fff; }

/* ---------- layout rhythm ---------- */
main#main { display: block; min-height: 60vh; }
.container-fluid { max-width: 1480px; margin-left: auto; margin-right: auto; }
.vid-item-ptb { padding-top: 18px; padding-bottom: 18px; }
/* NOTE: .banner_ads_item / .ad-center-row deliberately left alone */

/* ---------- section titles ---------- */
.section-title, .vfx-item-section h3, .vfx-item-section h2 {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; color: #fff;
  margin: 8px 0 16px; padding-left: 14px;
}
.section-title::before, .vfx-item-section h3::before, .vfx-item-section h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 1.1em; border-radius: 4px;
  background: linear-gradient(180deg, var(--mq-accent), var(--mq-accent-2));
}

/* ---------- buttons ---------- */
.btn, button.btn, a.btn {
  border-radius: 999px; font-weight: 700; letter-spacing: .02em;
  transition: transform .2s var(--mq-ease), box-shadow .2s var(--mq-ease), background .2s;
}
.btn-primary, .btn-success, .btn-danger, .btn-info {
  background: linear-gradient(135deg, var(--mq-accent-solid), #0e7490) !important;
  border: 0 !important; color: #fff !important;
  box-shadow: 0 6px 18px rgba(13, 148, 136, .35);
}
.btn-primary:hover, .btn-success:hover, .btn-danger:hover, .btn-info:hover {
  transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13, 148, 136, .5);
}
.btn-outline-secondary, .btn-secondary, .btn-light {
  background: var(--mq-surface-2); border: 1px solid var(--mq-line-2); color: var(--mq-text);
}

/* ---------- cards / posters (movie, show, blog tiles) ---------- */
.card, .movie-card, .series-card, .vid-item, .item-box, .blog-card {
  background: var(--mq-surface);
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-r);
  overflow: hidden;
  transition: transform .28s var(--mq-ease), border-color .28s, box-shadow .28s;
}
.card:hover, .movie-card:hover, .series-card:hover, .vid-item:hover, .item-box:hover, .blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, .45);
  box-shadow: var(--mq-shadow), 0 0 0 1px rgba(45, 212, 191, .18);
}
.card img, .movie-card img, .series-card img, .vid-item img { display: block; width: 100%; }

/* ---------- forms ---------- */
input[type=text], input[type=search], input[type=email], input[type=password],
input[type=number], input[type=url], select, textarea, .form-control {
  background: var(--mq-surface-2); color: var(--mq-text);
  border: 1px solid var(--mq-line-2); border-radius: var(--mq-r-sm);
}
input::placeholder, textarea::placeholder { color: var(--mq-text-mute); }
input:focus, select:focus, textarea:focus, .form-control:focus {
  border-color: var(--mq-accent) !important; outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .18) !important; background: var(--mq-surface-2);
}

/* ---------- pagination ---------- */
.pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination li a, .pagination li span, .page-link {
  background: var(--mq-surface-2) !important; color: var(--mq-text) !important;
  border: 1px solid var(--mq-line) !important; border-radius: 10px !important;
  min-width: 40px; text-align: center; font-weight: 700;
}
.pagination li a:hover, .page-link:hover { border-color: var(--mq-accent) !important; color: var(--mq-accent) !important; }
.pagination .active a, .pagination .active span, .page-item.active .page-link {
  background: linear-gradient(135deg, var(--mq-accent-solid), #0e7490) !important;
  border-color: transparent !important; color: #fff !important;
}

/* ---------- breadcrumbs ---------- */
.breadcrumb, nav[aria-label=breadcrumb] ol { background: transparent; padding: 10px 0; font-size: .85rem; }
.breadcrumb a { color: var(--mq-text-dim); }
.breadcrumb a:hover { color: var(--mq-accent); }

/* ---------- tables / modals / dropdowns ---------- */
.table { color: var(--mq-text); }
.modal-content { background: var(--mq-surface); border: 1px solid var(--mq-line-2); border-radius: var(--mq-r); color: var(--mq-text); }
.modal-header, .modal-footer { border-color: var(--mq-line); }
.btn-close { filter: invert(1) grayscale(1); }

/* ---------- search overlay (popup1) ---------- */
.popup-overlay { background: rgba(5, 8, 15, .92) !important; backdrop-filter: blur(10px); }
.search .search-container .title { color: #fff; font-weight: 800; }
.search .search-input input[type=text] {
  border-radius: 999px; border: 1px solid var(--mq-line-2); color: #fff; padding: 14px 22px;
}
.popup-view .close { color: #fff; }

/* ---------- scroll-top + cookie banner ---------- */
.scroll-top .scroll-icon {
  background: linear-gradient(135deg, var(--mq-accent-solid), #0e7490) !important;
  color: #fff !important; border-radius: 50% !important; box-shadow: var(--mq-shadow);
}
.eupopup-container {
  background: var(--mq-surface-2) !important; color: var(--mq-text) !important;
  border: 1px solid var(--mq-line-2); border-radius: var(--mq-r) var(--mq-r) 0 0;
}

/* ---------- owl / splide controls ---------- */
.owl-nav button, .splide__arrow {
  background: var(--mq-surface-3) !important; color: #fff !important;
  border: 1px solid var(--mq-line-2) !important; border-radius: 50% !important;
}
.owl-dots .owl-dot span, .splide__pagination__page { background: var(--mq-surface-3) !important; }
.owl-dots .owl-dot.active span, .splide__pagination__page.is-active { background: var(--mq-accent) !important; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 575px) {
  body { font-size: 14px; }
  .section-title, .vfx-item-section h3 { font-size: 1.02rem; }
  .container-fluid { padding-left: 12px; padding-right: 12px; }
}
