/*
Theme Name: BlueCine Pro
Theme URI: https://alltodo.in/
Author: KASAPP Studio
Author URI: https://alltodo.in/
Description: A to Z Complete Professional Blue & Dark Movie Downloading WordPress Theme. Features auto-created categories, 3-character AJAX live search, Load More AJAX, custom movie meta boxes, multi-quality download links, screenshot gallery, JSON-LD Movie Schema, Adsterra/AdSense slots, and one-click demo importer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bluecine
*/

:root {
  --bg-main: #060b16;
  --bg-card: #0d1629;
  --bg-card-hover: #13203b;
  --bg-header: #081020;
  --blue-primary: #0ea5e9;
  --blue-accent: #2563eb;
  --blue-glow: rgba(14, 165, 233, 0.25);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --badge-green: #10b981;
  --badge-amber: #f59e0b;
  --badge-red: #ef4444;
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Top Notice Bar */
.top-notice {
  background: linear-gradient(90deg, #0284c7, #1d4ed8);
  color: #fff;
  font-size: 13px;
  padding: 7px 14px;
  text-align: center;
  font-weight: 500;
}

.top-notice a {
  text-decoration: underline;
  font-weight: 700;
  margin-left: 6px;
}

/* Header */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.site-logo .logo-icon {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 14px var(--blue-glow);
}

.site-logo span.highlight {
  color: var(--blue-primary);
}

/* Live Search Box */
.header-search {
  position: relative;
  flex: 1;
  max-width: 440px;
  min-width: 240px;
}

.header-search form {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.header-search form:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.header-search button {
  background: var(--blue-accent);
  color: #fff;
  border: none;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.header-search button:hover {
  background: var(--blue-primary);
}

.live-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--blue-primary);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color);
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover {
  background: var(--bg-card-hover);
}

.live-search-item img {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.live-search-info h4 {
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.3;
}

.live-search-info span {
  font-size: 11px;
  color: var(--blue-primary);
  font-weight: 600;
}

/* Primary Nav */
.primary-nav {
  background: #0a1326;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.primary-nav::-webkit-scrollbar {
  height: 3px;
}

.primary-nav::-webkit-scrollbar-thumb {
  background: var(--blue-accent);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}

.nav-list li a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: 6px;
}

.nav-list li a:hover,
.nav-list li.current-menu-item a,
.nav-list li.current-cat a {
  background: var(--blue-accent);
  color: #fff;
}

/* Quick Category Chips Strip */
.category-strip {
  padding: 12px 0 6px;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-chip:hover,
.cat-chip.active {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
  border-color: var(--blue-primary);
  color: #fff;
}

/* Featured Top Box */
.featured-box {
  background: linear-gradient(135deg, #0d1b36 0%, #091224 100%);
  border: 1px solid #1e3a8a;
  border-radius: var(--radius);
  padding: 14px;
  margin: 12px 0 18px;
}

.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.featured-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--blue-primary);
  border-radius: 2px;
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

/* Ad Slot Container */
.ad-slot-wrap {
  margin: 14px 0;
  text-align: center;
  overflow: hidden;
  border-radius: 8px;
}

/* Section Heading */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.section-bar h1,
.section-bar h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-bar h1::before,
.section-bar h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--blue-primary);
  border-radius: 2px;
}

/* Movie Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-primary);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #070d1a;
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.04);
}

.badge-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.badge-imdb {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-lang {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(6, 11, 22, 0.88);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-body {
  padding: 10px 11px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.movie-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.movie-card:hover .movie-card-title {
  color: var(--blue-primary);
}

.movie-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Load More & Pagination */
.load-more-wrap {
  text-align: center;
  margin: 26px 0;
}

.btn-load-more {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--blue-glow);
  transition: opacity 0.2s, transform 0.2s;
}

.btn-load-more:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wp-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 28px;
  flex-wrap: wrap;
}

.wp-pagination .page-numbers {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
}

.wp-pagination .page-numbers.current,
.wp-pagination .page-numbers:hover {
  background: var(--blue-accent);
  border-color: var(--blue-primary);
  color: #fff;
}

/* Single Movie Page */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  margin: 18px 0 32px;
}

.single-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.breadcrumbs {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--blue-primary);
}

.single-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 14px;
}

.movie-hero {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  background: #080f1e;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.movie-hero-poster img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #1e3a8a;
}

.movie-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.movie-specs-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border-color);
}

.movie-specs-table td:first-child {
  font-weight: 700;
  color: var(--blue-primary);
  width: 135px;
}

.storyline-box {
  background: #080f1e;
  border-left: 4px solid var(--blue-primary);
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #cbd5e1;
}

.storyline-box h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
}

/* Screenshots Grid */
.screenshots-section {
  margin: 22px 0;
}

.screenshots-section h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 12px;
  border-left: 4px solid var(--blue-primary);
  padding-left: 10px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.screenshots-grid img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Download Section */
.download-section {
  background: #070d19;
  border: 1px solid #1e3a8a;
  border-radius: 10px;
  padding: 18px;
  margin: 22px 0;
  text-align: center;
}

.download-section h3 {
  font-size: 18px;
  color: #38bdf8;
  margin-bottom: 14px;
}

.download-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.download-item:last-child {
  margin-bottom: 0;
}

.download-label {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.dl-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.dl-btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.dl-btn-fast {
  background: linear-gradient(135deg, #059669, #10b981);
}

.dl-btn-gdrive {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

/* Sidebar */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--blue-primary);
  border-radius: 2px;
}

.widget-cat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.widget-cat-list li a {
  display: block;
  background: #080f1e;
  border: 1px solid var(--border-color);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.widget-cat-list li a:hover {
  border-color: var(--blue-primary);
  color: #fff;
  background: #10203f;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trending-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.trending-item img {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.trending-item h4 {
  font-size: 13px;
  color: #f1f5f9;
  line-height: 1.35;
  margin-bottom: 4px;
}

.trending-item:hover h4 {
  color: var(--blue-primary);
}

.trending-item span {
  font-size: 11px;
  color: var(--blue-primary);
}

/* Footer & All Categories Directory */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  padding: 28px 0 18px;
  margin-top: 30px;
}

.footer-cat-directory {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.footer-cat-directory h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-cat-tags a {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 12px;
  color: #cbd5e1;
}

.footer-cat-tags a:hover {
  background: var(--blue-accent);
  color: #fff;
  border-color: var(--blue-primary);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 12px;
  color: #64748b;
  max-width: 820px;
  margin: 0 auto 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .featured-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .single-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .movie-hero {
    grid-template-columns: 1fr;
  }
  .movie-hero-poster {
    max-width: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .featured-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .single-title {
    font-size: 18px;
  }
}
