/* ===================================================
   CineMitra Homepage Template
   =================================================== */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --card: #151517;
  --border: #2a2a2e;
  --gold: #e9ad4f;
  --gold-2: #d4953a;
  --gold-soft: rgba(233, 173, 79, .35);
  --text: #ffffff;
  --muted: #b9b6b0;
  --dim: #8f8c86;
  --verified: #2f8cff;
  --radius: 10px;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-script: 'Allura', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 26px; border-radius: 6px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: filter .2s, background .2s; }
.btn-gold { background: linear-gradient(180deg, #f3bb5f, var(--gold-2)); color: #1a1206; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(0,0,0,.25); }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-sm { height: 38px; padding: 0 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 84px; }
.logo img { height: 72px; width: auto; mix-blend-mode: lighten; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.main-nav > a, .has-drop > a { position: relative; padding: 8px 0; color: #eee; display: inline-flex; align-items: center; gap: 6px; }
.main-nav i { font-size: 9px; }
.main-nav a:hover { color: var(--gold); }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); }
.has-drop { position: relative; }
.drop { position: absolute; top: 100%; left: -16px; min-width: 190px; background: #141416; border: 1px solid var(--border); border-radius: 8px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.drop a { display: block; padding: 8px 16px; font-size: 14px; color: var(--muted); }
.drop a:hover { color: var(--gold); background: rgba(255,255,255,.03); }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: 20px; }
.icon-btn { background: none; border: 0; color: #fff; font-size: 17px; cursor: pointer; padding: 6px; }
.login-link { font-weight: 600; font-size: 15px; }
.login-link:hover { color: var(--gold); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 520px; padding: 120px 0 140px; background:
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 22%, rgba(10,10,11,0) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,11,.25) 0%, rgba(10,10,11,.75) 24%, rgba(10,10,11,.65) 55%, rgba(10,10,11,0) 72%),
    url('../images/hero-bg.jpg') 82% 20% / cover no-repeat; }
.hero-inner { position: relative; }
.hero-content { margin-left: 21%; max-width: 560px; }
.hero-tag { margin: 0 0 16px; font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: #ddd; }
.hero h1 { font-family: var(--font-head); font-weight: 500; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.08; margin: 0 0 20px; }
.gold { color: var(--gold); }
.hero-sub { color: #e6e3de; font-size: 15px; margin: 0 0 26px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-script { position: absolute; right: 24px; top: 40px; margin: 0; font-family: var(--font-script); font-size: 46px; line-height: 1; color: var(--gold); transform: rotate(-8deg); text-align: center; }

/* ---------- Search Panel ---------- */
.search-panel { position: relative; z-index: 5; margin: -110px auto 0; max-width: 1080px; background: rgba(12,12,13,.94); border: 1px solid var(--gold-soft); border-radius: 18px; padding: 16px; backdrop-filter: blur(6px); }
.search-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.tab { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #ddd; font-size: 13px; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.tab i { font-size: 13px; }
.tab:hover { color: var(--gold); }
.tab.active { background: linear-gradient(180deg, #f3bb5f, var(--gold-2)); color: #1a1206; font-weight: 600; }
.search-row { display: flex; gap: 10px; }
.field { position: relative; display: flex; align-items: center; background: #0d0d0e; border: 1px solid #3a3a3e; border-radius: 6px; height: 46px; min-width: 240px; }
.field-grow { flex: 1; }
.field > i:first-child { position: absolute; left: 14px; color: #bbb; font-size: 14px; pointer-events: none; }
.field input, .field select { width: 100%; height: 100%; background: transparent; border: 0; color: #eee; padding: 0 36px 0 40px; outline: none; appearance: none; font-size: 14px; }
.field select option { background: #141416; }
.field:not(:has(> i:first-child:not(.caret))) select { padding-left: 14px; }
.caret { position: absolute; right: 14px; font-size: 10px; color: #bbb; pointer-events: none; }
.search-btn { min-width: 150px; height: 46px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 26px; }
.stat { display: flex; align-items: center; gap: 14px; justify-content: center; }
.stat > i { font-size: 30px; color: var(--gold); }
.stat strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Category Cards ---------- */
.categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.cat-card:hover { border-color: var(--gold-soft); }
.cat-card img { width: 100%; aspect-ratio: 150 / 82; object-fit: cover; }
.cat-body { position: relative; padding: 10px 14px 14px; margin-top: -18px; background: linear-gradient(180deg, rgba(21,21,23,0) 0, var(--card) 18px); }
.cat-body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.cat-body p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; padding-right: 22px; }
.cat-body i { position: absolute; right: 14px; bottom: 16px; font-size: 13px; }

/* ---------- Section Block ---------- */
.block { padding-top: 22px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.block-head h2 { margin: 0; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.block-head h2 i { color: var(--gold); font-size: 22px; }
.block-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.view-all { color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.view-all:hover { filter: brightness(1.15); }

/* ---------- Artists ---------- */
.artists { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.artist { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color .2s; }
.artist:hover { border-color: var(--gold-soft); }
.artist img { width: 100%; aspect-ratio: 107 / 68; object-fit: cover; }
.artist-info { padding: 8px 10px 10px; }
.artist-info h4 { margin: 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.verified { color: var(--verified); font-size: 13px; background: #fff; border-radius: 50%; }
.artist-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.artist-info small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.artist-info small i { font-size: 11px; margin-right: 3px; }

/* ---------- Casting Calls ---------- */
.castings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.casting { position: relative; min-height: 160px; padding: 56px 16px 14px; border: 1px solid var(--border); border-radius: var(--radius); background-size: cover; background-position: center top; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.casting::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0) 15%, rgba(10,10,11,.85) 55%, rgba(10,10,11,.95) 100%); }
.casting > * { position: relative; }
.badge { align-self: flex-start; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; border-radius: 10px; color: #fff; margin-bottom: 8px; }
.badge-red { background: #d7263d; }
.badge-purple { background: #8a3ffc; }
.badge-blue { background: #1f6fe0; }
.badge-pink { background: #c2186a; }
.casting h3 { margin: 0; font-size: 15px; font-weight: 600; }
.casting .company { margin: 2px 0 0; font-size: 13px; color: #d8d5cf; }
.casting .meta { margin: 4px 0 0; font-size: 13px; color: #d8d5cf; }
.casting .meta i { font-size: 11px; margin-right: 4px; }
.casting-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #d8d5cf; margin-top: 2px; }
.casting-foot a { color: var(--gold); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.project { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); }
.project img { width: 100%; aspect-ratio: 108 / 110; object-fit: cover; }
.project-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px; background: linear-gradient(180deg, rgba(10,10,11,0), rgba(10,10,11,.92) 55%); }
.project-info h4 { margin: 0; font-size: 13px; font-weight: 600; }
.project-info span { font-size: 11px; color: var(--muted); }
.project:hover { border-color: var(--gold-soft); }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 12px; }
.event { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.event:hover { border-color: var(--gold-soft); }
.date { flex-shrink: 0; width: 60px; height: 64px; border-radius: 8px; background: #f3f1ec; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date strong { font-size: 24px; font-weight: 700; }
.date span { font-size: 11px; margin-top: 4px; }
.event h4 { margin: 0; font-size: 14px; font-weight: 600; }
.event p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.event small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.event small i { font-size: 11px; margin-right: 4px; }

/* ---------- Community Banner ---------- */
.community { margin-top: 20px; background:
    linear-gradient(90deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.2) 45%, rgba(10,10,11,0) 100%),
    url('../images/community-bg.jpg') center / cover no-repeat; }
.community-inner { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 40px; min-height: 170px; padding-top: 28px; padding-bottom: 28px; }
.community-text h2 { font-family: var(--font-body); margin: 0 0 12px; font-size: 26px; font-weight: 600; line-height: 1.2; }
.community-text p { margin: 0; font-size: 13px; max-width: 360px; color: #eee; }
.community-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; justify-self: end; max-width: 520px; width: 100%; align-self: end; }
.community-steps div { text-align: center; display: flex; flex-direction: column; align-items: center; }
.community-steps i { font-size: 24px; margin-bottom: 6px; }
.community-steps strong { font-size: 13px; font-weight: 600; }
.community-steps span { font-size: 12px; color: #ddd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.5fr; gap: 28px; padding-bottom: 26px; }
.footer-logo { height: 76px; width: auto; mix-blend-mode: lighten; margin-bottom: 14px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 15px; }
.s-ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.s-yt { background: #e62117; color: #fff; }
.s-in { color: #4ea1ff; }
.s-x { color: #fff; }
.s-fb { background: #1877f2; color: #fff; border-radius: 50% !important; }
.footer-col h5, .footer-news h5 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.footer-col a { display: block; font-size: 12px; color: var(--muted); padding: 3px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-news p { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.news-form { display: flex; gap: 6px; }
.news-form input { flex: 1; min-width: 0; height: 38px; background: #0b0b0c; border: 1px solid #3a3a3e; border-radius: 6px; color: #eee; padding: 0 12px; font-size: 12px; outline: none; }
.news-form button { width: 38px; height: 38px; border: 0; border-radius: 6px; background: linear-gradient(180deg, #f3bb5f, var(--gold-2)); color: #1a1206; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 1180px) {
  .main-nav { gap: 18px; }
  .hero-content { margin-left: 12%; }
  .artists, .projects { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .categories { grid-template-columns: repeat(3, 1fr); }
  .castings, .events { grid-template-columns: repeat(2, 1fr); }
  .community-inner { grid-template-columns: 1fr auto; }
  .community-steps { grid-column: 1 / -1; justify-self: stretch; max-width: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .login-link { display: none; }
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #0e0e10; border-top: 1px solid var(--border); padding: 12px 24px 20px; max-height: calc(100vh - 84px); overflow-y: auto; display: none; }
  .main-nav.open { display: flex; }
  .main-nav > a, .has-drop > a { padding: 12px 0; border-bottom: 1px solid #1d1d20; width: 100%; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 6px 12px; display: none; }
  .has-drop.open .drop { display: block; }
  .main-nav a.active::after { display: none; }
  .site-header { background: rgba(10,10,11,.85); }
  .hero-script { display: none; }
  .hero-content { margin-left: 0; }
  .search-row { flex-wrap: wrap; }
  .field { min-width: 0; flex: 1 1 45%; }
  .field-grow { flex-basis: 100%; }
  .search-btn { flex: 1 1 100%; }
  .search-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab { white-space: nowrap; }
}

@media (max-width: 640px) {
  .header-inner { height: 72px; gap: 12px; }
  .logo img { height: 56px; }
  .main-nav { top: 72px; }
  .header-actions { gap: 12px; margin-left: auto; }
  .header-actions .btn-sm { padding: 0 14px; }
  .hero { padding: 110px 0 140px; background-position: 70% center; }
  .stats, .categories { grid-template-columns: repeat(2, 1fr); }
  .stat { justify-content: flex-start; }
  .artists, .projects { grid-template-columns: repeat(2, 1fr); }
  .castings, .events { grid-template-columns: 1fr; }
  .block-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .community-inner { grid-template-columns: 1fr; gap: 20px; }
  .community-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
