/* ============================================================
   NOTES.CSS — Netflix-style Personalized Notes Page
   Companion to notes.html
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap");

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DESIGN TOKENS ── */
:root {
  --netflix-red:        #e50914;
  --netflix-red-hover:  #c40812;

  /* Surfaces */
  --bg:           #141414;
  --surface:      #1f1f1f;
  --surface-2:    #2a2a2a;
  --surface-card: #1a1a1a;

  /* Text */
  --text:         #ffffff;
  --text-muted:   #b3b3b3;
  --text-faint:   #6d6d6e;

  /* Structure */
  --border:       rgba(255, 255, 255, 0.08);
  --radius:       4px;
  --radius-md:    6px;

  /* Transitions */
  --transition:   0.15s ease;
}

/* ── GLOBAL ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100dvh;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
}

nav .logo img {
  width: 120px;
  display: block;
}

nav .nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

nav .nav-links a:hover  { color: var(--text); }
nav .nav-links a.active { color: var(--text); font-weight: 500; }

/* ── HERO / BACKDROP ── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 380px;
  max-height: 600px;
  overflow: hidden;
}

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Layered gradients — matches Netflix movie detail page */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(20,20,20,0.9) 0%, rgba(20,20,20,0.4) 50%, transparent 100%),
    linear-gradient(to top,    rgba(20,20,20,1)   0%, rgba(20,20,20,0.1) 30%, transparent 100%);
}

.hero-title-overlay {
  position: absolute;
  bottom: 60px;
  left: 4%;
  z-index: 2;
  max-width: 380px;
}

.hero-title-overlay h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-style: italic;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-title-overlay h1 span {
  font-weight: 300;
  font-style: normal;
  font-size: 0.6em;
  letter-spacing: 0.05em;
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}



/* ── MAIN CONTENT WRAP ── */
.content-wrap {
  padding: 0 4% 60px;
  max-width: 1280px;
}

/* ── META INFO CARD ── */
/* Mirrors the dark info panel below the hero in the Dilan 1990 screenshot */
.meta-card {
  background: rgba(20,20,20,0.97);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  border: 1px solid var(--border);
}

.meta-card .meta-left  { grid-column: 1; }
.meta-card .meta-right { grid-column: 2; align-self: center; }

.meta-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* Green year badge — identical to Netflix "New" indicator */
.badge-year   { color: #46d369; font-size: 0.875rem; font-weight: 500; }

.badge-rating {
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 2px;
}

.badge-genre { color: var(--text-muted); font-size: 0.875rem; }
.badge-dot   { color: var(--text-faint); font-size: 0.75rem; }

.meta-description {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 68ch;
}

.meta-starring {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.meta-starring strong { color: var(--text-muted); font-weight: 400; }
.meta-starring span   { color: var(--text); }

/* ── MORE DETAILS SECTION ── */
.more-details {
  margin-top: 20px;
}

.more-details h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.detail-card .detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 10px;
  font-weight: 500;
}

.detail-card .detail-value {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tag list inside detail cards */
.detail-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-card .tag-list .tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.detail-card .tag-list .tag:not(:last-child)::after {
  content: ',';
}

/* ── PERSONALIZED NOTES SECTION ── */
.notes-section {
  margin-top: 32px;
}

.notes-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

/* Individual friend note card */
.note-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}

.note-card:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.18);
}

/* Card header: avatar + name + role */
.note-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

/* Netflix profile-style coloured square avatar */
.note-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  overflow: hidden;
}

.note-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar colour palette — swap freely */
.note-avatar.color-1  { background: #e50914; }
.note-avatar.color-2  { background: #2164f3; }
.note-avatar.color-3  { background: #e87c03; }
.note-avatar.color-4  { background: #564d27; }
.note-avatar.color-5  { background: #44444b; }
.note-avatar.color-6  { background: #c62a2f; }
.note-avatar.color-7  { background: #1a6b35; }
.note-avatar.color-8  { background: #8b3d90; }
.note-avatar.color-9  { background: #1a4e8b; }
.note-avatar.color-10 { background: #b76e00; }
.note-avatar.color-11 { background: #2b7d4f; }
.note-avatar.color-12 { background: #9c1515; }

.note-info   { flex: 1; min-width: 0; }

.note-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.note-role {
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-style: italic;
}

/* Thin separator between header and note body */
.note-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.note-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Quoted highlight inside each note */
.note-body .highlight {
  color: var(--text);
  font-style: italic;
}

/* Small pill badge at the bottom of each card */
.note-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ── FOOTER ── */
footer {
  padding: 40px 4%;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

footer p {
  font-size: 0.8125rem;
  color: var(--text-faint);
  text-align: center;
}

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 768px) {
  nav { padding: 14px 4%; }
  nav .logo img { width: 90px; }
  nav .nav-links { display: none; }

  .hero {
    aspect-ratio: 16 / 9;
    max-height: 420px;
  }

  .hero-title-overlay {
    bottom: 48px;
  }

  .hero-title-overlay h1 { font-size: 1.8rem; }

  .meta-card {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .meta-card .meta-right { grid-column: 1; }

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

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

  .hero-controls { bottom: 8px; }

  .btn-play,
  .btn-more {
    padding: 7px 16px;
    font-size: 0.875rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-title-overlay h1 { font-size: 1.4rem; }
  .meta-card { padding: 16px 14px; }
  .content-wrap { padding: 0 3% 40px; }
}
