/* ============================================================
   FREE MOVIES ONLINE — Modern Dark Cinema Theme
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-dark:       #0d0f14;
  --bg-card:       #161a24;
  --bg-sidebar:    #12151e;
  --bg-header:     #0a0c10;
  --accent:        #e8b84b;       /* Gold cinema accent */
  --accent-hover:  #f5cc6a;
  --text-primary:  #e8eaf0;
  --text-secondary:#9aa0b4;
  --text-muted:    #5c6278;
  --border:        #252a3a;
  --nav-bg:        #111420;
  --nav-hover:     #1e2333;
  --badge-free:    #1a4731;
  --badge-free-text: #4ade80;
  --badge-account: #1a2e4a;
  --badge-account-text: #60a5fa;
  --badge-library: #3b2a12;
  --badge-library-text: #fbbf24;
  --badge-new:     #2d1a4a;
  --badge-new-text:#c084fc;
  --radius:        10px;
  --shadow:        0 4px 20px rgba(0,0,0,0.4);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { line-height: 1.3; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: linear-gradient(135deg, #0a0c10 0%, #141826 50%, #0f1118 100%);
  border-bottom: 2px solid var(--accent);
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,184,75,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner { position: relative; z-index: 1; }

.header-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.site-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.main-nav li a {
  display: block;
  padding: 14px 18px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
}

.main-nav li a:hover {
  color: var(--accent);
  background-color: var(--nav-hover);
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* ============================================================
   SIDEBARS
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-widget h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.tip-list, .new-list, .removed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-list li, .new-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.tip-list li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }
.new-list li::before { content: '★'; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; top: 3px; }

.removed-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.removed-list li::before { content: '✕'; position: absolute; left: 0; color: #ef4444; font-size: 0.7rem; top: 3px; }
.removed-list em { color: #5c6278; font-size: 0.75rem; }

.removed-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  min-width: 0;
}

/* ---- Intro Section ---- */
.intro-section {
  background: linear-gradient(135deg, #161a24, #1a1f30);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
}

.intro-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.intro-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.stats-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(232,184,75,0.07);
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: 8px;
  padding: 12px 20px;
  min-width: 90px;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ---- Content Sections ---- */
.content-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-icon { font-size: 1.1rem; }

.section-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  margin-top: 8px;
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(232,184,75,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 120px;
}

.card-header h3 a {
  color: var(--text-primary);
}

.card-header h3 a:hover {
  color: var(--accent);
}

.card p {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.visit-btn {
  display: inline-block;
  background-color: rgba(232,184,75,0.1);
  color: var(--accent);
  border: 1px solid rgba(232,184,75,0.3);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  align-self: flex-start;
  margin-top: auto;
}

.visit-btn:hover {
  background-color: rgba(232,184,75,0.2);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-free    { background: var(--badge-free);    color: var(--badge-free-text); }
.badge-account { background: var(--badge-account); color: var(--badge-account-text); }
.badge-library { background: var(--badge-library); color: var(--badge-library-text); }
.badge-new     { background: var(--badge-new);     color: var(--badge-new-text); }

/* ---- Tips Section ---- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tip-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.tip-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  margin-top: 20px;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner strong { color: var(--text-secondary); }

.footer-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .page-wrapper {
    grid-template-columns: 200px 1fr;
  }
  .sidebar-right { display: none; }
}

@media (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar-left { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .stats-bar { justify-content: center; }
  .main-nav ul { justify-content: center; }
  .main-nav li a { padding: 10px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .site-title { font-size: 1.8rem; }
  .intro-section { padding: 20px; }
}
