/* ===========================================================
   SMOOVIE — PUBLIC BASE CSS (global)
   =========================================================== */

@import url("./films.css");
@import url("./partners.css");
@import url("./stories.css");
@import url("./venues.css");
@import url("./local_ads.css");
@import url("./signup.css");

/* ========== 0) BASE / RESETS ========== */
:root{
  --accent:#e11d48;
  --ink:#0f0f0f;
  --bg:#fff;
  --hover:rgba(0,0,0,.04);
  --line:rgba(0,0,0,.10);
  --shadow:0 6px 18px rgba(0,0,0,.10);

  /* Shared content width for public pages */
  --public-maxw:1240px;
  --public-pad:18px;

  /* Navbar spacing when centred */
  --nav-gap:44px;

  --easing:cubic-bezier(.25,.1,.25,1);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  padding:0;
  font-family:'Segoe UI','Futura',sans-serif;
  background:#fefefe;
  color:#111;
  line-height:1.6;
}

.frontend-content{ width:100%; }
.navpage-container{ width:100%; }

/* =========================================
   PUBLIC NAVBAR (stable)
   ========================================= */
.dashboard-navbar.public-navbar{
  position:sticky;
  top:0;
  z-index:5000;
  background:var(--bg);
  color:var(--ink);
  box-shadow:var(--shadow);
}

/* Keep header layout ALWAYS stable */
.navbar-inner.public-inner{
  width:max-content;
  max-width:100%;
  margin:0 auto;

  padding:10px var(--public-pad);
  display:flex;
  align-items:center;
  gap:var(--nav-gap);
  min-height:72px;
}

.public-left{ display:none; }

.public-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  flex:0 0 auto;
}
.public-logo img{
  height:58px;
  width:auto;
  display:block;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.10));
}

.public-right{
  display:flex;
  align-items:center;
  gap:12px;
  position:relative; /* anchors dropdown */
  flex:0 0 auto;
}


/* =========================================
   NAV LINKS (mock underline)
   ========================================= */
.nav-menu ul{
  list-style:none;
  margin:0;
  padding:0;
}

.nav-menu a{
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
  letter-spacing:.01em;
  display:inline-flex;
  align-items:center;
  padding:10px 6px;
  border-radius:0;
  position:relative;
  transition:opacity .15s var(--easing);
}
.nav-menu a:hover{ opacity:.75; }

/* Active underline (simple red line) */
.nav-menu a.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:2px;
  height:2px;
  background:var(--accent);
}

/* =========================================
   HAMBURGER (mobile)
   ========================================= */
.nav-toggle{
  display:inline-block;
  background:none;
  border:0;
  cursor:pointer;
  padding:6px;
  line-height:0;
  color:var(--ink);
}
.nav-toggle:focus,
.nav-toggle:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}

.nav-toggle .bar{
  display:block;
  width:24px;
  height:2px;
  margin:4px 0;
  background:var(--ink);
  border-radius:1px;
  transition:transform .18s var(--easing), opacity .18s var(--easing);
}

.dashboard-navbar.open .nav-toggle .bar:nth-child(1),
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.dashboard-navbar.open .nav-toggle .bar:nth-child(2),
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){
  opacity:0;
}
.dashboard-navbar.open .nav-toggle .bar:nth-child(3),
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

/* =========================================
   DESKTOP NAV (always visible)
   ========================================= */
@media (min-width:901px){
  .nav-toggle{ display:none; }

  .nav-menu{
    display:block;
    position:static;
    background:transparent;
    border:none;
    box-shadow:none;
    padding:0;
  }

  .nav-menu ul{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:18px;
  }
}

/* =========================================
   MOBILE NAV (dropdown panel)
   - NOT full screen
   - page remains visible behind
   ========================================= */
@media (max-width:900px){
  :root{ --nav-gap:16px; }

  .public-logo img{ height:50px; }

  /* IMPORTANT: make the whole navbar row the positioning anchor */
  .navbar-inner.public-inner{ position: relative; }
  .public-right{ position: static; } /* override the desktop anchor */

  /* hide desktop inline menu */
  .nav-menu{ display:none; }

  /* when open: show as dropdown panel (CENTERED) */
  .dashboard-navbar.open .nav-menu{
    display:block;
    position:absolute;
    top:calc(100% + 8px);

    left:50%;
    transform:translateX(-50%);

    right:auto;
    width:min(360px, calc(100vw - 24px));

    background:#fff;
    border:1px solid var(--line);
    box-shadow:0 10px 28px rgba(0,0,0,.12);
    padding:14px 12px;
    z-index:4990;
  }

  .nav-menu ul{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:stretch;
    text-align:left;
  }

  .nav-menu li{ margin:0; }

  .dashboard-navbar.open .nav-menu a{
    font-size:18px;
    padding:12px 10px;
    width:100%;
    justify-content:flex-start;
  }

  .nav-menu a.active::after{
    left:10px;
    right:10px;
    bottom:6px;
    height:3px;
  }

  /* ✅ SHOW sign-in in mobile dropdown (same as everything else) */
  .nav-menu .nav-signin{ display:list-item; }

  /* ensure sign-in looks identical to other links */
  .nav-menu .nav-signin a{
    border:0;
    background:transparent;
    color:var(--ink);
  }
}



/* =========================================
   FILM MODAL (shell)
   ========================================= */
.film-modal{
  display:none;
  position:fixed;
  z-index:9999;
  left:0; top:0;
  width:100%;
  height:100%;
  overflow-y:auto;
  background-color:rgba(0,0,0,0.5);
  transition:opacity 0.3s ease-in-out;
}

.modal-content{
  background-color:transparent;
  margin:4rem auto;
  padding:0;
  border-radius:0;
  max-width:960px;
  position:relative;
  animation:slideUp 0.4s ease-out;
  overflow:hidden;
  box-sizing:border-box;
  box-shadow:none;
}

@keyframes slideUp{
  from{ transform:translateY(30px); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}

.close-button{
  position:absolute;
  top:17px;
  right:-5px;
  font-size:3rem;
  font-weight:800;
  color:#111;
  background:transparent;
  border:none;
  cursor:pointer;
  line-height:1;
  padding:0.5rem 0.75rem;
  z-index:10;
  transition:transform 0.2s ease, color 0.2s ease;
}
.close-button:hover{ color:#000; transform:scale(1.1); }

@media (max-width:600px){
  .modal-content{
    margin:2rem auto;
    padding:0;
    width:calc(100% - 20px);
    border-radius:0;
  }
  .close-button{
    font-size:2.4rem;
    padding:0.6rem 0.8rem;
    top:28px;
    right:0px;
  }
}

/* =========================================
   FOOTER
   - mini nav: Support, Terms, Privacy, About, Contact
   - tighter spacing above socials
   ========================================= */
.frontend-footer{
  border-top:1px solid var(--line);
  margin-top:14px;
  padding:0.85rem 1rem 1.05rem;
  text-align:center;
}

.footer-nav{
  max-width:var(--public-maxw);
  margin:0 auto 0.45rem;
  padding:0 var(--public-pad);
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 16px;
}

.footer-link{
  font-size:13px;
  font-weight:700;
  color:#222;
  text-decoration:none;
  opacity:.85;
  padding:2px 0;
}
.footer-link:hover{
  opacity:1;
  text-decoration:underline;
}

.social-links{
  display:flex;
  justify-content:center;
  gap:1.05rem;
  margin:0.35rem 0 0.55rem; /* reduced top padding */
}

.social-links img{
  width:26px;
  height:26px;
  transition:transform 0.2s ease;
}
.social-links img:hover{ transform:scale(1.08); }

.footer-copyright{
  font-size:0.88rem;
  color:#777;
  margin:0;
}


/* ===== Film Modal Shell (global) ===== */
.film-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.55);
  display: none;               /* JS toggles to block */
  padding: 24px 12px;
  overflow: auto;
}

.film-modal .modal-content{
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
  background: #fff;
  border-radius: 18px;
}

.film-modal .close-button{
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
}


/* ===========================================================
   AUTH (Public login) — sharp, consistent, boxed layout
   =========================================================== */

/* Page background band like other pages */
.auth-page{
  min-height: calc(100vh - 72px); /* keeps footer from creeping up */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px var(--public-pad) 56px;
  background:
    radial-gradient(1200px 520px at 50% -220px, rgba(238,241,255,1) 0%, rgba(238,241,255,0) 55%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 70%);
}

/* The box */
.auth-wrap{
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 0; /* sharp */
  padding: 22px;
}

/* Header */
.auth-header{
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.auth-header h1{
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.auth-lead{
  margin: 10px auto 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15,15,16,.72);
}

/* Errors */
.auth-errors,
.field-errors{
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(225,29,72,.35);
  background: rgba(225,29,72,.06);
  color: #9f1239;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.5;
}

/* Form */
.auth-form{
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.auth-field{
  display: grid;
  gap: 8px;
}

.auth-field label{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15,15,16,.72);
}

/* Style Django’s default input widgets too */
.auth-field input{
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}

.auth-field input:focus{
  border-color: rgba(225,29,72,.45);
  box-shadow: 0 0 0 3px rgba(225,29,72,.16);
}

/* Actions */
.auth-actions{
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* Make the submit button match your .btn system */
.auth-actions .cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 18px;
  border-radius:0;
  font-weight:950;
  border:1px solid var(--accent);
  background: var(--accent);
  color:#fff;
  cursor:pointer;
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease;
}

.auth-actions .cta:hover{
  background:#d4143f;
  border-color:#d4143f;
}

.auth-actions .cta:active{
  transform: translateY(1px);
}

/* Mobile padding */
@media (max-width: 560px){
  .auth-wrap{ padding: 18px; }
}


/* ===========================================================
   AUTH (Public login) — sharp, consistent, not glued to header
   =========================================================== */

/* Page backdrop + spacing below sticky navbar */
.auth-page{
  /* Navbar is ~72px tall in your CSS; give it breathing room */
  padding: 34px var(--public-pad) 64px;
  /* Make sure the first content isn't hard against sticky header */
  margin-top: 14px;

  /* Nice subtle background like other public pages */
  background:
    radial-gradient(1200px 520px at 50% -240px, rgba(238,241,255,1) 0%, rgba(238,241,255,0) 55%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 70%);

  min-height: calc(100vh - 72px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* The boxed card */
.auth-wrap{
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 0 !important;     /* HARD edges */
  overflow: hidden;                /* keep edges crisp */
}

/* Inner padding */
.auth-inner{
  padding: 20px 20px 18px;
}

/* Header block inside the card */
.auth-header{
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 16px;
  text-align: center;
}

.auth-header h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.auth-header p{
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(15,15,16,.72);
  max-width: 520px;
  margin-inline: auto;
}

.auth-subline{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(15,15,16,.72);
}

.auth-subline a{
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(225,29,72,.35);
}

.auth-subline a:hover{
  border-bottom-color: var(--accent);
}

/* Errors */
.auth-errors{
  margin: 14px 20px 0;
  padding: 12px;
  border: 1px solid rgba(225,29,72,.35);
  background: rgba(225,29,72,.06);
  color: #9f1239;
  font-weight: 850;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0 !important;
}

.field-errors{
  margin-top: 8px;
  color: #9f1239;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.45;
}

/* Form */
.auth-form{
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
  margin-top: 16px;
}

.auth-field{
  display: grid;
  gap: 8px;
}

.auth-field label{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15,15,16,.72);
}

/* Force sharp inputs even if Django widgets have classes */
.auth-field input{
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0 !important;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}

.auth-field input:focus{
  border-color: rgba(225,29,72,.45);
  box-shadow: 0 0 0 3px rgba(225,29,72,.16);
}

/* Actions */
.auth-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}

/* Button (sharp + matches your public .btn feel) */
.auth-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  padding:0 22px;
  border-radius: 0 !important;
  font-weight:950;
  border:1px solid var(--accent);
  background: var(--accent);
  color:#fff;
  cursor:pointer;
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease;
}

.auth-submit:hover{
  background:#d4143f;
  border-color:#d4143f;
}

.auth-submit:active{
  transform: translateY(1px);
}

/* Footer note inside card */
.auth-foot{
  border-top: 1px solid var(--line);
  padding: 14px 20px 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(15,15,16,.72);
}

.auth-foot a{
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(225,29,72,.35);
}

.auth-foot a:hover{
  border-bottom-color: var(--accent);
}

/* Mobile tweaks */
@media (max-width: 560px){
  .auth-page{ padding: 22px var(--public-pad) 48px; margin-top: 10px; }
  .auth-header{ padding: 16px 16px 14px; }
  .auth-inner{ padding: 16px; }
  .auth-form{ padding: 0 16px 16px; }
  .auth-errors{ margin: 12px 16px 0; }
  .auth-foot{ padding: 12px 16px 14px; }
}
