/* =========================
   Theme Variables
========================= */
:root {
  --bg: #000000;
  --text: #e8e8ec;
  --muted: #9a9aa5;
  --gold: #e6c27a;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
  padding-top: 60px; /* space for fixed header */
}

/* =========================
   Layout
========================= */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 80px 40px;
}

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

/* =========================
   Header
========================= */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  z-index: 1000;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.top-header.is-scrolled {
  background: rgba(0,0,0,0.58);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.top-header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 80px;

  display: flex;
  justify-content: space-between; /* ✅ spreads items */
  align-items: center;
}

.logo img {
  height: 30px;
  display: block;
  transition: opacity 0.3s ease;
}

.logo img:hover {
  opacity: 0.8;
}

/* =========================
   Hero
========================= */
h1 {
  font-family: "Libre Baskerville", serif;
  font-weight: 500;
  font-size: clamp(42px, 6vw, 60px);
  line-height: 0.8;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

h1 span {
  color: var(--gold);
}

.subtitle {
  font-size: 16px;
  color: var(--muted);
  opacity: 0.75;
  max-width: 540px;
  margin-bottom: 28px;
}

.take-me {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 48px;
  padding: 10px 20px 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(201,169,106,0.28);
  background: rgba(201,169,106,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.take-me-text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(154,154,165,0.75);
  letter-spacing: 0.15px;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.take-me-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(154,154,165,0.6);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.22s ease;
}

.take-me:hover {
  border-color: rgba(230,194,122,0.5);
  background: rgba(230,194,122,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 14px rgba(230,194,122,0.08);
}

.take-me:hover .take-me-text {
  color: rgba(154,154,165,0.95);
}

.take-me:hover .take-me-arrow {
  transform: translateX(3px);
  color: rgba(154,154,165,0.95);
}

/* =========================
   Section Label
========================= */
.section-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  opacity: 0.6;
  margin-bottom: 40px;
}

.latest .section-label {
  display: flex;
  align-items: center;
  gap: 28px;
}

.latest .section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08); /* use darker if light bg */
}

/* =========================
   Featured
========================= */
.featured {
  margin-bottom: 120px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 36px;
  align-items: center;
}
.featured-image {
  aspect-ratio: 2 / 3;
  max-width: 360px;
  overflow: hidden;
  justify-self: start;
  border-radius: 10px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  /* filter: grayscale(100%); */
  transition: filter 0.6s ease;
}

.featured-image:hover img {
  filter: grayscale(0%);
}

.featured-content h2 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  margin-bottom: 14px;
  line-height: 1.15;
}

.featured-content p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.read-more {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
}

/* =========================
   Latest Stories
========================= */
.latest {
  margin-bottom: 120px;
}

.stories-grid {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.story-card {
  flex: 0 0 240px;   /* fixed card width */
  scroll-snap-align: start;
}

.story-image {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 10px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(100%); */
  transition: filter 0.6s ease;
}

.story-card:hover img {
  filter: grayscale(0%);
}

/* Title */
.story-card-content h3 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 17px;
  margin-top: 18px;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

/* Meta */
.story-card-content p {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.55;
  letter-spacing: 0.3px;
}

.latest {
  position: relative;
}

.latest::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to left, var(--bg), transparent);
  pointer-events: none;
}

.story-genre {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96a; /* your gold tone */
  margin-bottom: 8px;
  margin-top: 16px;
  opacity: 0.85; 
}

/* =========================
   Philosophy Section
========================= */
/* Combined philosophy + submissions layout */
.pf-combined {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
  margin: 60px 0 100px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pf-left {
  position: sticky;
  top: 120px;
}

.pf-left .section-label {
  margin-bottom: 20px;
}

.pf-left h2 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.pf-left p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

.pf-right .feedback-box {
  max-width: none;
  margin: 0;
  text-align: left;
}

.pf-right .feedback-box h2,
.pf-right .feedback-box p {
  text-align: left;
}

@media (max-width: 860px) {
  .pf-combined {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 40px 0 60px;
    padding-top: 40px;
  }
  .pf-left {
    position: static;
    text-align: center;
  }
  .pf-left h2 { font-size: 28px; }
  .pf-right .feedback-box { text-align: center; }
  .pf-right .feedback-box h2,
  .pf-right .feedback-box p { text-align: center; }
}

/* legacy selectors kept for safety */
.philosophy {
  text-align: center;
  max-width: 760px;
  margin: 50px auto 80px;
}

.philosophy h2 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 36px;
  margin-bottom: 30px;
}

.philosophy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

/* =========================
   Stories CTA
========================= */

.stories-cta {
  text-align: center;
  padding: 0 0 40px;
}

.stories-cta-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: 18px;
}

.stories-cta-heading {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 36px;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.3;
}

.mobile-br { display: none; }

.stories-cta-btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 13px 36px;
  border-radius: 999px;
  border: 1px solid rgba(230, 194, 122, 0.45);
  background: rgba(230, 194, 122, 0.07);
  color: #e6c27a;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.stories-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 194, 122, 0.22), transparent);
  transform: translateX(-150%);
  animation: cta-shimmer 3s ease-in-out infinite;
}

@keyframes cta-shimmer {
  0%   { transform: translateX(-150%); }
  55%  { transform: translateX(350%); }
  100% { transform: translateX(350%); }
}

.stories-cta-btn:hover {
  border-color: rgba(230, 194, 122, 0.75);
  background: rgba(230, 194, 122, 0.13);
  transform: translateY(-1px);
}

/* =========================
   Connect Section
========================= */

.connect-section {
  max-width: 800px;
  margin: 50px auto 100px;
  text-align: center;
}

.connect-section h2 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 36px;
  margin-bottom: 10px;
}

.connect-section > p {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.3px;
  margin: 0;
  opacity: 0.7;
}

.connect-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: left;
}

.connect-card:hover {
  border-color: rgba(201,169,106,0.22);
  background: rgba(255,255,255,0.048);
  transform: translateY(-1px);
}

.connect-card-main {
  border-color: rgba(201,169,106,0.22);
  background: rgba(201,169,106,0.05);
  justify-content: space-between;
  padding: 22px 28px;
}

.connect-card-main:hover {
  border-color: rgba(201,169,106,0.45);
  background: rgba(201,169,106,0.1);
}

.connect-card-main .connect-platform {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.connect-card-main .connect-handle {
  font-size: 13px;
  color: #5a5a65;
  margin-top: 2px;
}

.connect-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.connect-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(201,169,106,0.45);
}

.connect-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.connect-platform {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #ede8e0;
  letter-spacing: 0.1px;
}

.connect-handle {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  color: #5a5a65;
}

.connect-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.25s;
  opacity: 1;
  transform-origin: right center;
}

.connect-card-main:hover .connect-arrow {
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .connect-section {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .connect-section h2 { font-size: 22px; margin-bottom: 8px; }
  .connect-card-main { padding: 15px 18px; }
  .connect-card-main .connect-platform { font-size: 15px; }
  .connect-card-main .connect-handle { font-size: 11.5px; }
  .connect-social-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .connect-card { padding: 14px 16px; gap: 12px; }
  .connect-platform { font-size: 12.5px; }
  .connect-social-row .connect-handle { display: none; }
  .connect-icon { width: 26px; height: 26px; }
  .connect-icon svg { width: 18px; height: 18px; }
}


/* =========================
   Feedback Section (legacy, kept for reference)
========================= */

.feedback-section {
  padding: 20px 0 100px;
  text-align: center;
}

.feedback-box {
  max-width: 620px;
  margin: 0 auto;

  padding: 32px;

  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.06);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.015)
    );

  backdrop-filter: blur(10px);

  text-align: center;
}

.feedback-box h2 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;

  margin: 0 0 14px;

  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;

  color: var(--text);
}

.feedback-box p {
  max-width: 560px;
  margin: 0 auto 24px;

  font-size: 15px;
  line-height: 1.8;

  color: var(--muted);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 16px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.03);

  font: inherit;
  font-size: 13px;
  color: var(--text);

  outline: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.feedback-form textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.7;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: rgba(230,194,122,0.4);
  background: rgba(255,255,255,0.05);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: rgba(255,255,255,0.34);
}

.feedback-form button {
  height: 44px;

  border: none;
  border-radius: 999px;

  background: linear-gradient(135deg,#e6c27a,#caa94f);
  color: #111;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.feedback-form button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

#feedback-status {
  min-height: 18px;

  font-size: 13px;
  color: var(--muted);
}

/* =========================
   Footer
========================= */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.45;
  letter-spacing: 0.3px;
}

.story-footer-policy {
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-footer-policy a {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.45;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.story-footer-policy a:hover {
  opacity: 0.8;
}

.footer-instagram {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.footer-instagram:hover {
  color: var(--gold);
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    text-align: center;
  }

  .take-me {
    padding: 7px 13px;
    gap: 7px;
    max-width: 100%;
  }

  .take-me-text {
    font-size: 10px;
    white-space: normal;
    line-height: 1.45;
  }

  .take-me-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    align-self: center;
  }

  .top-header-inner {
    padding: 14px 32px;
  }

  .container {
    padding: 20px 28px 28px;
  }

  .hero {
    margin-top: 10px;
  }

  h1 {
    font-size: 29px;
  }
  .subtitle {
    font-size: 13px;
  }

  .story-image {
    height: 300px;
  }

  .story-card-content h3 {
    font-size: 16px;
    margin-top: 12px;
  }

  .logo img {
    height: 24px !important;
  }

  .featured-image {
    height: 400px;      /* 👈 control height */
    overflow: hidden;
  }

  .featured-image {
    max-width: 100%;
    aspect-ratio: 3 / 3;
  }
   /* Reduce gap between image and text */
   .featured-grid {
    gap: 18px;
  }

  /* Reduce space above title */
  .featured-content h2 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 26px;   /* optional: slightly smaller */
  }

  /* Reduce description spacing */
  .featured-content p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  /* Reduce overall section spacing */
  .featured {
    margin-bottom: 100px;
  }

  
  .read-more {
    font-size: 10px;
  }

  .philosophy h2 {
    font-size: 26px;
    line-height: 1.5;
  }

  .philosophy p {
    font-size: 14px;
  }

  .stories-cta-heading {
    font-size: 26px;
    line-height: 1.5;
  }

  .mobile-br { display: block; }

  .stories-cta-btn {
    font-size: 13px;
    padding: 12px 28px;
    border-color: rgba(201, 169, 106, 0.45);
    color: #e6c27a;
    letter-spacing: 0.3px;
  }
}

/* Scroll Animation */

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s ease;
}
  .search-btn{
  background:none;
  border:none;
  cursor:pointer;
  opacity:0.7;
  }
  
  .search-btn:hover{
  opacity:1;
  }

  
  .search-overlay{
    position:fixed;
    top:0px;                     /* 👈 CHANGE */
    left:0;
    width:100%;
    height:100%;    /* 👈 CHANGE */
    background: linear-gradient(
  to bottom,
  transparent 0px,
  transparent 60px,   /* 👈 header height */
  rgba(0,0,0,0.9) 60px
);
  
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding-top:100px;
    z-index:999;
  
    opacity:0;
    pointer-events:none;
    transition:opacity 0.2s ease;
  }
    
    .search-overlay.active{
    opacity:1;
    pointer-events:auto;
    }
  .search-box{
  width:600px;
  max-width:90%;
  }
  
  #search-input{
  width:100%;
  padding:14px 18px;
  font-size:16px;
  background:#111;
  border:1px solid #222;
  color:#fff;
  border-radius:10px;
  outline:none;
  }
  
  #search-results{
  margin-top:20px;
  }
  
  .search-item{
  padding:12px;
  border-bottom:1px solid #1a1a1a;
  cursor:pointer;
  }
  
  .search-item:hover{
  background:#111;
  }
  
  .search-title{
  color:#fff;
  font-size:16px;
  }
  
  .search-meta{
  color:#777;
  font-size:13px;
  }

  .search-header{
    display:flex;
    align-items:center;
    gap:10px;
    }
    
    .search-close{
    background:none;
    border:none;
    color:#aaa;
    font-size:18px;
    cursor:pointer;
    }
    
    .search-close:hover{
    color:#fff;
    }
    .search-label{
      font-size:12px;
      color:#666;
      margin-bottom:10px;
      text-transform:uppercase;
      letter-spacing:1px;
      }

  /* =========================
   Horizontal Grid Layout
========================= */

.all-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

  margin-top: 50px;
  margin-bottom: 40px;  
}

/* Card */
.h-card.compact {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);

  transition: all 0.25s ease;
}

/* Hover */
.h-card.compact:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
}

/* Image */
.h-card.compact img {
  width: 50px;      /* slightly tighter for grid */
  height: 70px;
  object-fit: cover;
  border-radius: 6px;

  filter: grayscale(100%);
  transition: 0.4s ease;
}

.h-card.compact:hover img {
  filter: grayscale(0%);
}

/* Content */
.h-content h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

/* Genre */
.story-genre {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.7;
}


/* =========================
   Responsive
========================= */

/* Tablet */
@media (max-width: 900px) {
  .all-grid-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {

  .all-grid-horizontal {
    grid-template-columns: 1fr;
    gap: 14px; /* tighter spacing */
  }

  .h-card.compact {
    padding: 10px 12px;   /* 👈 smaller card */
    gap: 10px;
    border-radius: 10px;
  }

  .h-card.compact img {
    width: 46px;          /* 👈 smaller image */
    height: 56px;
    border-radius: 6px;
  }

  .h-content h3 {
    font-size: 14px;      /* 👈 compact but readable */
    line-height: 1.3;
  }

  .story-genre {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
  }
}

/* ONLY All Stories Page */

.all-page .h-card.compact img {
  filter: grayscale(0%);
  transition: none;
}

/* remove hover effect only here */
.all-page .h-card.compact:hover img {
  filter: grayscale(0%);
}

/* View All = SAME system as all stories cards */
.view-all-card {
  flex: 0 0 240px;
}

/* match ALL stories card style */
/* Center everything */
.view-all-bg {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 12px;

  background: radial-gradient(
    circle at top,
    rgba(230,194,122,0.08),
    rgba(255,255,255,0.02)
  );

  border: 1px solid rgba(255,255,255,0.08);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  transition: all 0.3s ease;
}

/* hover = slightly premium */
.view-all-card:hover .view-all-bg {
  transform: translateY(-1px);
  border-color: rgba(230,194,122,0.3);
  background: radial-gradient(
    circle at top,
    rgba(230,194,122,0.12),
    rgba(255,255,255,0.03)
  );
}

/* label */
.view-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.8;
}

/* title */
.view-overlay h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 22px;
  margin: 6px 0;
}

/* subtext (NEW) */
.view-sub {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
}

@media (max-width: 640px) {

  .view-all-bg {
    height: 300px;
  }

  /* match visual density of story cards */
  .view-overlay {
    gap: 6px;
  }

  .view-label {
    font-size: 9px;
    letter-spacing: 2px;
  }

}

/* All Stories page - compact hero */
.all-page .hero {
  margin-top: 0;
  margin-bottom: 14px;
  overflow: visible;
}

.all-page .hero h1 {
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.1;
  margin-bottom: 0;
}

.all-page .subtitle {
  font-size: 14px;
  max-width: 380px;
  margin-bottom: 10px;
}

.all-page .container {
  padding-top: 12px;
}

/* =========================
   Filter (All Stories)
========================= */
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  overflow: visible;
}


.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-trigger:hover {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
}

.filter-trigger[aria-expanded="true"] {
  border-color: rgba(201,169,106,0.5);
  color: #c9a96a;
}

.filter-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a96a;
  display: none;
}

.filter-dot.visible {
  display: block;
}

.filter-panel {
  position: fixed;
  z-index: 99999;
  width: 75vw;
  max-width: 680px;
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 14px;
  border-radius: 14px;
  background-color: #000000;
  background: #000000;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 48px rgba(0,0,0,0.9);
  display: none;
}

.filter-panel.open {
  display: block;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

.filter-chip.active {
  border-color: rgba(201,169,106,0.6);
  color: #c9a96a;
  background: rgba(201,169,106,0.08);
}

.filter-reset {
  display: none;
  width: 100%;
  margin-top: 4px;
  padding: 7px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: rgba(255,255,255,0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: center;
  transition: color 0.18s ease;
}

.filter-reset.visible {
  display: block;
}

.filter-reset:hover {
  color: rgba(255,255,255,0.65);
}

.filter-empty {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  margin: 16px 0 40px;
  text-align: center;
}

/* LOGIN BUTTON */
/* =========================
   AUTH (CLEAN FIXED VERSION)
========================= */

/* LOGIN BUTTON */
/* LOGIN BUTTON */
.auth-btn {
  padding: 8px 16px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;

  color: #ddd;
}

.auth-btn:hover {
  border-color: var(--gold);
  color: var(--gold);

  background: rgba(230, 194, 122, 0.08);

  transform: translateY(-1px);
}

.auth-btn:active {
  transform: scale(0.96);
}

/* USER MENU */
/* USER MENU WRAPPER */
.user-menu {
  position: relative;
}

/* AVATAR */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;

  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn img {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  opacity: 1;
}

.icon-btn img {
  transform: translateY(-3px);
}
/* DROPDOWN */
/* DROPDOWN */
 .dropdown-menu {
  position: absolute;
  top: 52px;
  right: 0;

  width: 258px;
  padding: 14px;

  background:
    radial-gradient(
      circle at top,
      rgba(18,28,48,0.95),
      rgba(5,8,14,0.98)
    );

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;

  backdrop-filter: blur(18px);

  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.03);

  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.user-menu.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* USER INFO */
 .user-info {
  padding: 4px 4px 2px;
}

 .user-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

 .user-details .email {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;

  color: #ffffff;

  max-width: 100%;

  overflow-wrap: break-word;
  word-break: break-word;
}

 .user-details .status {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  letter-spacing: -0.01em;
}

 .dropdown-divider {
  height: 1px;
  margin: 14px 0;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
}

 .logout-btn {
  width: 100%;
  padding: 14px;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);

  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.9);

  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

 .logout-btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);

  transform: translateY(-1px);
}

/* ACTIVE */
.logout-btn:active {
  transform: scale(0.98);
}

/* .dropdown-menu backdrop-filter now included in the main .dropdown-menu block */

/* =========================
   MODAL (FIXED)
========================= */

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(6,8,12,0.75);
  backdrop-filter: blur(10px);

  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* MODAL BOX */
.auth-box {
  width: 380px;
  max-width: 92%;
  text-align: center;

  background: linear-gradient(180deg,#0c0f14,#090b10);
  padding: 40px 32px;

  border-radius: 18px;

  transform: translateY(10px) scale(0.96);
  opacity: 0;
  transition: 0.25s ease;

  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

.auth-modal.active .auth-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* CLOSE BUTTON */
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #777;
  font-size: 18px;
  cursor: pointer;
}

/* TITLE */
#auth-title {
  font-family: "Libre Baskerville", serif;
  font-size: 32px;
  margin-bottom: 0px;
  line-height: 1.3; 
}

.auth-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

/* INPUT */
.input-group {
  position: relative;
  margin-bottom: 18px;
}

/* GROUP */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

/* INPUT */
.input-group input {
  width: 100%;
  padding: 18px 14px;
  background: #0a0d12;
  border: 1px solid #1e232b;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;

  outline: none;
  transition: all 0.25s ease;
}

/* FOCUS */
.input-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(230,194,122,0.25);
}

/* LABEL (INSIDE initially) */
.input-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);

  color: #777;
  font-size: 14px;

  pointer-events: none;
  transition: all 0.2s ease;
}

/* FLOAT (only on focus or typing) */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -8px;
  transform: none;

  font-size: 11px;
  color: var(--gold);

  background: #0c0f14;
  padding: 0 6px;
}
/* BUTTON */
#modal-submit {
  width: 100%;
  padding: 14px;
  margin-top: 12px;

  border-radius: 10px;
  border: none;

  font-weight: 600;

  background: linear-gradient(135deg,#e6c27a,#caa94f);
  transition: all 0.25s ease;
}

#modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(230,194,122,0.2);
}

#modal-submit:active {
  transform: scale(0.97);
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #666;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #222;
}

.divider span {
  margin: 0 10px;
}

/* GOOGLE BUTTON */
.google-btn {
  width: 100%;
  height: 50px;

  border-radius: 12px;
  border: 1px solid #2a2f36;

  background: #0f1115;
  color: #e6e6e6;
  font-size: 14px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  position: relative;

  transition: all 0.25s ease;
}

/* HOVER (premium highlight) */
.google-btn:hover {
  background: rgba(230, 194, 122, 0.06);
  border-color: #e6c27a;
  box-shadow: 0 0 0 1px rgba(230,194,122,0.2);
}

/* CLICK FEEDBACK */
.google-btn:active {
  transform: scale(0.98);
}

/* CONTENT */
.google-content {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}

/* ICON */
.google-icon {
  width: 20px;
  height: 20px;
}

/* TEXT */
.google-content span {
  letter-spacing: 0.2px;
}

/* LOADER */
.google-loader {
  width: 16px;
  height: 16px;

  border: 2px solid rgba(255,255,255,0.2);
  border-top: 2px solid #e6c27a;
  border-radius: 50%;

  position: absolute;

  opacity: 0;
  transform: scale(0.8);

  animation: spin 0.7s linear infinite;
  transition: all 0.2s ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* LOADING STATE */
.google-btn.loading {
  pointer-events: none;
}

.google-btn.loading .google-content {
  opacity: 0;
}

.google-btn.loading .google-loader {
  opacity: 1;
  transform: scale(1);
}


/* =========================
   MOBILE (REAL FIX)
========================= */
#switch-mode {
  color: #e6c27a;
  cursor: pointer;        /* 👈 THIS fixes it */
  transition: opacity 0.2s ease;
}

#switch-mode:hover {
  opacity: 0.8;
  text-decoration: underline;
}

#auth-toggle {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;
  gap: 6px;                  /* space between text + button */
  font-size: 14px;
  color: #aaa;
  margin-top: 14px;
}

#auth-toggle span {
  margin-left: 4px;
}

.auth-link {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font: inherit;

  transition: opacity 0.2s ease;
}

.auth-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

#modal-status {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;

  color: #9a9aa5;
  letter-spacing: 0.2px;
  line-height: 1.6;

  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

/* show */
#modal-status.show {
  opacity: 1;
  transform: translateY(0);
}

/* success */
#modal-status.success {
  color: #cfcfcf;
}

/* error */
#modal-status.error {
  color: #a66;
}

#user-menu {
  display: none;
}
 .sub-notify-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  padding: 14px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

 .sub-notify-card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border-color: rgba(255,255,255,0.07);
}

.drop-sub-msg {
  font-size: 11px;
  color: var(--muted);
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.drop-sub-msg.visible {
  max-height: 24px;
  opacity: 1;
  padding-bottom: 4px;
}

.drop-sub-msg.success { color: #7fc9a0; }
.drop-sub-msg.error   { color: #e08080; }

 .sub-toggle {
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: none;
  padding: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.22s ease;
}

 .sub-toggle.is-on {
  background: #6fcf97;
}

 .sub-toggle.error {
  background: rgba(220,80,80,0.55);
  transition: background 0.15s ease;
}

 .sub-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.22s ease;
  pointer-events: none;
}

 .sub-toggle.is-on .sub-toggle-thumb {
  transform: translateX(14px);
}

 .saved-link + .saved-link {
  margin-top: 6px;
}

 .saved-link {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  padding: 14px 14px;
  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.018)
    );

  border: 1px solid rgba(255,255,255,0.04);

  color: rgba(255,255,255,0.82);

  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;

  overflow: hidden;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

 .saved-link:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.025)
    );

  border-color: rgba(255,255,255,0.07);

  color: #ffffff;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;

  margin-top: 28px;
  margin-bottom: 80px;
}

.saved-card {
  position: relative;

  display: flex;
  align-items: flex-end;

  min-height: 96px;
  padding: 10px 12px 22px;

  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.028),
      rgba(255,255,255,0.016)
    );

  border: 1px solid rgba(255,255,255,0.055);

  text-decoration: none;
  overflow: hidden;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.saved-card:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.022)
    );

  border-color: rgba(255,255,255,0.08);

  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.saved-card::before {
  content: "Saved";

  position: absolute;
  top: 10px;
  left: 10px;

  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.22);
}

.saved-title {
  font-family: "Libre Baskerville", serif;

  font-size: 15px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 400;

  margin-bottom: 10px;
  color: #ffffff;

  max-width: 98%;

  display: -webkit-box;
  display: box;

  -webkit-box-orient: vertical;
  box-orient: vertical;

  -webkit-line-clamp: 3;
  line-clamp: 3;

  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-state {
  grid-column: 1 / -1;

  padding: 54px 28px;

  border-radius: 22px;

  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.05);

  text-align: center;
}

.empty-state h2 {
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.empty-state p {
  color: rgba(255,255,255,0.48);
  font-size: 13px;
  line-height: 1.6;
}

.empty-state-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 36px;
  border-radius: 999px;
  border: 1px solid rgba(230, 194, 122, 0.45);
  background: rgba(230, 194, 122, 0.07);
  color: #e6c27a;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.empty-state-cta:hover {
  border-color: rgba(230, 194, 122, 0.75);
  background: rgba(230, 194, 122, 0.13);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .saved-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .saved-card {
    min-height: 82px;
    padding: 10px 12px 20px;
    border-radius: 12px;
  }

  .saved-title {
    font-size: 14px;
    line-height: 1.18;
  }
}

.saved-card-wrapper {
  position: relative;
}

.unsave-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  padding: 6px 10px;

  border: 0;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.58);

  font-size: 10px;
  letter-spacing: 0.04em;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.unsave-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}



  /* Feedback Section */
  .feedback-section {
    padding: 10px 0 70px;
  }

  .feedback-box {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .feedback-box h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .feedback-box p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .feedback-form {
    gap: 14px;
  }

  .feedback-form input,
  .feedback-form textarea {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
  }

  .feedback-form textarea {
    min-height: 120px;
  }

  .feedback-form button {
    height: 48px;
    font-size: 13px;
  }
}

