/* assets/css/style.css */

:root {
  --bg: #050814;
  --bg-alt: #0b0f1f;
  --card: #101425;
  --card-alt: #141a2c;
  --accent: #ff6b3d;
  --accent-soft: rgba(255, 107, 61, 0.16);
  --accent-green: #34d399;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.24);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.55);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #1f2937 0, #020617 40%);
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(22px);
  background: radial-gradient(circle at top left, #111827, #020617);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 0, #f97316, #7c2d12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff7ed;
  box-shadow: 0 14px 30px rgba(248, 113, 22, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-text .brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-text .tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.main-nav a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
}

.main-nav a.active {
  color: #0f172a;
  background: var(--accent);
  border-color: transparent;
}

/* Hero */

.hero {
  padding: 2.8rem 0 1.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin: 0 0 0.7rem;
}

.hero-text p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-highlight {
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  background: radial-gradient(circle at top right, #f97316 0, #111827 45%);
  box-shadow: var(--shadow-soft);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fed7aa;
  border: 1px solid rgba(248, 250, 252, 0.125);
  margin: 0 0 0.7rem;
}

.hero-highlight h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #fee2e2;
  font-size: 0.9rem;
}

.hero-list li + li {
  margin-top: 0.2rem;
}

/* Sections */

.section {
  padding: 1.5rem 0 2.8rem;
}

.section.alt {
  background: radial-gradient(circle at top, #0b1120, #020617);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2,
.section-header h1 {
  margin: 0 0 0.35rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* Buttons */

.btn {
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(248, 113, 22, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(248, 113, 22, 0.45);
}

.btn.ghost,
.btn.ghost-sm {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
}

.btn.ghost:hover,
.btn.ghost-sm:hover {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
}

.btn.primary-sm {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #0f172a;
  border: none;
  box-shadow: 0 8px 20px rgba(248, 113, 22, 0.35);
}

.btn.primary-sm:hover {
  transform: translateY(-1px);
}

.btn.wide {
  width: 100%;
}

.icon-btn {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.18s ease;
}

.icon-btn:hover {
  background: rgba(51, 65, 85, 0.9);
}

.mini-link {
  font-size: 0.8rem;
  color: #e5e7eb;
  text-decoration: underline;
  text-decoration-color: rgba(248, 250, 252, 0.35);
}

/* Featured grid */

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.movie-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #111827, #020617);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.movie-card.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
}

.movie-image {
  min-height: 190px;
  background-size: cover;
  background-position: center;
}

.movie-body {
  padding: 1.1rem 1.2rem 1.1rem;
}

.movie-body h3 {
  margin: 0 0 0.25rem;
}

.meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.excerpt {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.movie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Mini grid */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.movie-card.mini {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #020617, #020617, #0b1120);
  border: 1px solid var(--border-subtle);
}

.movie-thumb {
  background-size: cover;
  background-position: center;
  min-height: 92px;
}

.movie-mini-body {
  padding: 0.6rem 0.7rem;
}

.movie-mini-body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

.mini-meta {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.mini-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

/* Blog preview */

.blog-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.blog-card {
  background: linear-gradient(135deg, #020617, #020617, #0b1120);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle);
}

.blog-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.blog-card p {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Articles list (blog page) */

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.article-card {
  background: linear-gradient(135deg, #020617, #020617, #0b1120);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

.article-card h2 {
  margin: 0.2rem 0 0.4rem;
}

.article-meta {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.article-card p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.article-actions {
  margin-top: 0.4rem;
}

/* Tags */

.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.45);
}

/* Overlay */

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.overlay.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
}

.overlay,
.overlay * {
  transition: 0.18s ease;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
}

.overlay-card {
  position: relative;
  z-index: 1;
  width: min(400px, 92vw);
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: 24px;
  padding: 1.4rem 1.5rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
}

.overlay-emoji {
  width: 40px;
  height: 40px;
  border-radius: 18px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.overlay-card h2 {
  margin: 0 0 0.4rem;
}

.overlay-card p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.overlay-close {
  border: none;
  background: transparent;
  color: var(--muted);
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.overlay.hidden .overlay-card {
  transform: translateY(8px);
  opacity: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  padding: 0.9rem 0 1.2rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
}

/* Helpers */

.centered {
  text-align: center;
  margin-top: 0.5rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-nav {
    display: none; /* simplify for now on small screens */
  }

  .header-inner {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .movie-card.featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .movie-image {
    min-height: 170px;
  }

  .movie-card.mini {
    grid-template-columns: 80px minmax(0, 1fr);
  }
}
