/* ===========================
   NAVRAS — Mood Page CSS
   =========================== */

/* Hero */
.mood-hero {
  padding: 52px 32px 40px;
  text-align: center;
  border-bottom: 0.5px solid var(--ink3);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%);
}

.mood-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.mood-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
}

.mood-hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.mood-hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* AI Prompt bar */
.mood-ai-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink2);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 0 16px;
  height: 52px;
  max-width: 700px;
  margin: 0 auto;
}

.map-icon { flex-shrink: 0; display: flex; }

.mood-ai-prompt input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
}

.mood-ai-prompt input::placeholder { color: var(--text-dim); }

.map-search-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  border: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.map-search-btn:hover { opacity: 0.85; }

/* Nine Rasas Grid */
.rasas-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 0.5px solid var(--ink3);
}

.rasa-full-card {
  padding: 28px 28px 24px;
  border-right: 0.5px solid var(--ink3);
  border-bottom: 0.5px solid var(--ink3);
  text-align: left;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.rasa-full-card:nth-child(3n) { border-right: none; }

.rasa-full-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201,168,76,0.04);
  opacity: 0;
  transition: opacity 0.2s;
}

.rasa-full-card:hover::before { opacity: 1; }
.rasa-full-card:hover { border-color: var(--gold-dim); }
.rasa-full-card.active { background: rgba(201,168,76,0.06); border-color: var(--gold) !important; }

.rfc-icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}

.rfc-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.rfc-meaning {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.rfc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.rfc-examples {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 10px;
}

.rfc-count {
  font-size: 10px;
  font-weight: 500;
  color: var(--gold-dim);
  background: rgba(201,168,76,0.08);
  border: 0.5px solid rgba(201,168,76,0.2);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Results Panel */
.mood-results-panel {
  padding: 0;
  border-bottom: 0.5px solid var(--ink3);
}

.mrp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 0.5px solid var(--ink3);
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 57px;
  background: var(--ink);
  z-index: 50;
}

.mrp-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mrp-back {
  font-size: 13px;
  color: var(--gold);
  background: none;
  border: 0.5px solid var(--gold-dim);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}

.mrp-back:hover { border-color: var(--gold); }

.mrp-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-display);
}

.mrp-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mrp-select {
  background: var(--ink2);
  border: 0.5px solid var(--ink3);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 10px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.mrp-select:focus { border-color: var(--gold-dim); }

/* Featured pick */
.mrp-featured {
  padding: 28px 32px;
  border-bottom: 0.5px solid var(--ink3);
}

.featured-pick-card {
  display: flex;
  gap: 20px;
  background: var(--ink2);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 20px;
  max-width: 700px;
}

.fp-poster {
  width: 100px;
  height: 140px;
  border-radius: 8px;
  flex-shrink: 0;
}

.fp-badge {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
  background: var(--gold);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.fp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.fp-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

.fp-verdict {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

.fp-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fp-score {
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  font-family: var(--font-display);
}

.fp-score span { font-size: 12px; color: var(--gold-dim); font-family: var(--font-main); }

.fp-watch-btn {
  padding: 7px 16px;
  border-radius: 7px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

/* Results grid */
.mrp-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.mrp-grid-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.mrp-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.sort-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 0.5px solid var(--ink3);
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.sort-btn.active, .sort-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.mrp-films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 0 32px 28px;
}

.load-more-btn {
  display: block;
  margin: 0 auto 32px;
  padding: 10px 28px;
  border-radius: 8px;
  border: 0.5px solid var(--ink3);
  background: none;
  color: var(--gold);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}

.load-more-btn:hover { border-color: var(--gold); }

/* Philosophy section */
.rasa-philosophy {
  padding: 52px 32px;
  border-top: 0.5px solid var(--ink3);
  background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.04) 0%, transparent 60%);
}

.rp-inner { max-width: 640px; margin: 0 auto; text-align: center; }

.rp-eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.rp-headline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.rp-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.rp-text em { color: var(--gold); font-style: italic; }

/* Responsive */
@media (max-width: 900px) {
  .rasas-full-grid { grid-template-columns: repeat(2, 1fr); }
  .rasa-full-card:nth-child(3n) { border-right: 0.5px solid var(--ink3); }
  .rasa-full-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 600px) {
  .mood-hero { padding: 36px 20px 28px; }
  .rasas-full-grid { grid-template-columns: 1fr; }
  .rasa-full-card { border-right: none !important; }
  .rasa-full-card:nth-child(2n) { border-right: none; }
  .mrp-header { padding: 14px 20px; top: 52px; }
  .mrp-featured { padding: 20px; }
  .featured-pick-card { flex-direction: column; gap: 14px; }
  .mrp-grid-head { padding: 16px 20px 10px; }
  .mrp-films-grid { padding: 0 20px 20px; grid-template-columns: repeat(2,1fr); }
  .rasa-philosophy { padding: 36px 20px; }
}

/* Light mode overrides — mood page */
.rasa-full-card { background: var(--ink2); box-shadow: var(--shadow); }
.rasa-full-card:hover { box-shadow: var(--shadow-md); }
.rasa-full-card.active { background: var(--gold-bg); }
.featured-pick-card { background: var(--ink2); box-shadow: var(--shadow-md); }
.mood-results { background: var(--ink2); box-shadow: var(--shadow-md); }
.mood-result-item { background: var(--ink); }
.mood-ai-bar { background: var(--ink); }
.mrp-header { background: var(--ink); }
.mrp-select { background: var(--ink2); }

/* ===========================
   RASA FACE CARDS — New illustrated style
   =========================== */
.rasas-face-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.rasa-face-card {
  background: var(--ink2);
  border: 2px solid transparent;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  padding: 0;
  text-align: left;
  font-family: inherit;
}

.rasa-face-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-color: var(--gold-dim);
}

.rasa-face-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.rfc-face-wrap {
  position: relative;
  overflow: hidden;
}

.rfc-svg {
  display: block;
  width: 100%;
  transition: transform 0.3s;
}

.rasa-face-card:hover .rfc-svg {
  transform: scale(1.03);
}

.rfc-active-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
  font-weight: 700;
}

.rasa-face-card.active .rfc-active-overlay {
  opacity: 1;
}

.rfc-face-label {
  padding: 10px 12px 12px;
  background: var(--ink2);
  border-top: 0.5px solid var(--ink3);
}

.rfc-art-form {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 3px;
}

.rfc-face-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  font-family: var(--font-display);
}

.rfc-face-meaning {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.rfc-face-count {
  font-size: 10px;
  color: var(--gold-dim);
  background: var(--gold-bg);
  border: 0.5px solid var(--gold-border);
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .rasas-face-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .rasas-face-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rfc-face-label { padding: 7px 8px 9px; }
  .rfc-face-name { font-size: 12px; }
  .rfc-face-meaning { display: none; }
}
