/* assets/css/style.css */
/* Sarah Areen — Digital Poetry Publishing Design System */
/* Theme: Luxury Sunset Orange, Gold & Deep Obsidian Black */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-obsidian: #0D0D0D;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --border-subtle: #242220;
  --border-gold: rgba(255, 209, 164, 0.25);
  --sunset-orange: #FF7700;
  --sunset-orange-hover: #FF881A;
  --sunset-glow: rgba(255, 119, 0, 0.25);
  --gold-champagne: #FFD1A4;
  --gold-muted: #C5A880;
  --text-main: #F4F1EA;
  --text-muted: #9E988F;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light / Sepia Mode overrides for Reader */
body.mode-sepia {
  --bg-obsidian: #1E1813;
  --bg-card: #27201A;
  --text-main: #EFE4D2;
  --text-muted: #B8A995;
  --border-subtle: #3E332A;
}

body.mode-velvet {
  --bg-obsidian: #090B10;
  --bg-card: #10141E;
  --text-main: #E9ECEF;
  --text-muted: #8D99AE;
  --border-subtle: #1C2333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography Utility Classes */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.font-serif {
  font-family: var(--font-serif);
}

.text-sunset {
  color: var(--sunset-orange) !important;
}

.text-gold {
  color: var(--gold-champagne) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-gradient-sunset {
  background: linear-gradient(135deg, #FF9E44 0%, #FF7700 60%, #E65100 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFF0DC 0%, #FFD1A4 50%, #C5A880 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Luxury Glows & Backgrounds */
.glow-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-orange {
  background: radial-gradient(circle, rgba(255, 119, 0, 0.18) 0%, rgba(255, 119, 0, 0) 70%);
}

.glow-gold {
  background: radial-gradient(circle, rgba(255, 209, 164, 0.12) 0%, rgba(255, 209, 164, 0) 70%);
}

/* Luxury Cards */
.poetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.poetry-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 119, 0, 0.08);
}

/* Luxury Buttons */
.btn-sunset {
  background: linear-gradient(135deg, #FF881A 0%, #FF7700 100%);
  color: #0D0D0D;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 26px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 119, 0, 0.3);
}

.btn-sunset:hover {
  background: linear-gradient(135deg, #FFA03E 0%, #FF881A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 119, 0, 0.45);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-champagne);
  font-weight: 500;
  font-family: var(--font-sans);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: rgba(255, 209, 164, 0.08);
  border-color: var(--gold-champagne);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Navigation Bar */
.luxury-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-champagne);
  letter-spacing: 0.15em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--sunset-orange);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-champagne);
}

/* Badges & Counters */
.badge-gold {
  background: rgba(255, 209, 164, 0.12);
  color: var(--gold-champagne);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.badge-sunset {
  background: rgba(255, 119, 0, 0.15);
  color: var(--sunset-orange);
  border: 1px solid rgba(255, 119, 0, 0.35);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-champagne);
  letter-spacing: 0.02em;
}

.form-control {
  background: #181716;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--sunset-orange);
  box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.2);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #2D2722;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sunset-orange);
}

/* DRM Protected Reader Styles */
.drm-reader-container {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  position: relative;
}

/* Watermark Overlay */
.drm-watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
  opacity: 0.06;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  transform: rotate(-25deg) scale(1.3);
}

.drm-watermark-stamp {
  font-size: 1.1rem;
  font-family: monospace;
  color: #FFFFFF;
  padding: 40px;
  white-space: nowrap;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: #1C1917;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left: 4px solid #10B981;
}

.toast-error {
  border-left: 4px solid #EF4444;
}

.toast-info {
  border-left: 4px solid var(--sunset-orange);
}

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

/* Reader Toolbar */
.reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Verses Layout */
.poem-stanza {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.95;
  margin-bottom: 2.2rem;
  color: var(--text-main);
  transition: font-size 0.2s ease, line-height 0.2s ease;
}

.poem-line {
  display: block;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-box {
  background: #141312;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

/* Footer */
.luxury-footer {
  margin-top: auto;
  background: #090909;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 24px;
}
