/* ============================================
   POETRYTUBE — general.css
   Where African Voices Live Forever
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=Playfair+Display:wght@700;900&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
  --burgundy:        #4A0E2A;
  --burgundy-mid:    #6B1840;
  --burgundy-light:  #8B2252;
  --gold:            #D4AF37;
  --gold-light:      #E8C84A;
  --gold-dim:        #A8892A;
  --bg:              #0F0A0A;
  --bg-card:         #1A1015;
  --bg-hover:        #221520;
  --bg-sidebar:      #130D10;
  --text:            #F5F0E8;
  --text-muted:      #B8A89C;
  --text-dim:        #7A6A62;
  --border:          #2E1E28;
  --border-light:    #3E2A36;

  --font-display:    'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:       'DM Sans', sans-serif;
  --font-serif:      'Cormorant Garamond', Georgia, serif;

  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       16px;
  --radius-pill:     999px;

  --shadow-sm:       0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.6);
  --shadow-gold:     0 0 20px rgba(212,175,55,0.15);

  --transition:      0.2s ease;
  --transition-slow: 0.35s ease;

  --header-height:   60px;
  --sidebar-width:   240px;
  --sidebar-collapsed: 72px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--burgundy-mid);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--burgundy-light);
}

/* ── Utility Classes ───────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* ── Gold shimmer animation ────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-hover) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* ── Loading dots ──────────────────────────── */
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40%           { transform: scale(1);   opacity: 1; }
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.loading-dots span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── Mood pill colors ──────────────────────── */
.mood-defiant   { --mood-color: #E85D26; }
.mood-tender    { --mood-color: #C77AC2; }
.mood-grief     { --mood-color: #5B8FD4; }
.mood-joy       { --mood-color: #E8C84A; }
.mood-resistance{ --mood-color: #4CAF72; }
.mood-love      { --mood-color: #D4506A; }
.mood-identity  { --mood-color: #6DB8A0; }
.mood-hope      { --mood-color: #8BC34A; }

/* ── Page layout ───────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.content-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px;
  max-width: 100%;
  transition: margin-left var(--transition-slow);
}

/* ── Footer ────────────────────────────────── */
.site-footer {
  margin-left: var(--sidebar-width);
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.8;
}
.site-footer a {
  color: var(--gold);
  transition: opacity var(--transition);
}
.site-footer a:hover { opacity: 0.8; }

/* ── Mobile overlay ────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 90;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ── Mobile: adjust content area ──────────── */
@media (max-width: 768px) {
  .content-area {
    margin-left: 0;
    padding: 16px;
  }
  .site-footer {
    margin-left: 0;
  }
}