/* ============================================================
   AMARA COLE — AUTHOR WEBSITE
   Brand: Red (#C0392B primary) + Gold/Yellow (#F0A500 accent)
   Fonts: Playfair Display (headings) + Crimson Pro (body)
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --red:       #C0392B;
  --red-dark:  #9B2335;
  --red-light: #E85444;
  --gold:      #F0A500;
  --gold-light:#FFD166;
  --gold-pale: #FFF3CC;
  --ink:       #1A1208;
  --ink-soft:  #3D2E1E;
  --cream:     #FAF6EF;
  --cream-dark:#F0E9DC;
  --white:     #FFFFFF;
  --gray:      #8A7E72;
  --gray-light:#E5DDD3;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --radius:    4px;
  --shadow:    0 8px 40px rgba(26,18,8,0.12);
  --shadow-sm: 0 2px 12px rgba(26,18,8,0.08);
  --transition:0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== TYPOGRAPHY ===== */
.section-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--red);
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 500px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--gray);
  border-color: var(--gray-light);
}
.btn-ghost:hover { background: var(--gray-light); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(250,246,239,0.97);
  box-shadow: 0 2px 20px rgba(26,18,8,0.1);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.navbar.scrolled .nav-links a { color: var(--ink); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--ink); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 0.75rem 0;
  font-size: 1.1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--gray-light);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--ink) 0%, #3D1A0A 50%, #2A0A0A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(240,165,0,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(192,57,43,0.2) 0%, transparent 50%);
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-head);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  user-select: none;
  letter-spacing: -0.05em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 700px;
  animation: heroFade 1.2s ease forwards;
}

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

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollAnim 1.5s ease infinite;
}

@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: var(--red);
  padding: 0.9rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.marquee-track .dot { color: var(--gold); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about {
  padding: 7rem 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-frame {
  position: relative;
  display: inline-block;
  width: 100%;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  position: relative;
  z-index: 2;
}

.about-image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--gold);
  border-radius: 2px;
  z-index: 1;
}

.about-stat-card {
  position: absolute;
  top: -1.5rem;
  right: -2rem;
  background: var(--red);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: 2px;
  text-align: center;
  z-index: 3;
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-awards {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.award-item i {
  color: var(--gold);
  font-size: 1rem;
  width: 20px;
}

/* ===== BOOKS ===== */
.books {
  padding: 7rem 0;
  background: var(--cream-dark);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-light);
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.book-cover-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-card:hover .book-cover { transform: scale(1.05); }

.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(192,57,43,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.book-card:hover .book-overlay { opacity: 1; }

.book-overlay span {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.book-info { padding: 1.25rem; }

.book-genre {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.book-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.35rem 0 0.6rem;
  line-height: 1.3;
}

.book-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
}

.book-rating { color: var(--gold); }

/* ===== NEW RELEASES ===== */
.new-releases {
  padding: 7rem 0;
  background: var(--cream);
}

.admin-toggle-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-panel {
  display: none;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 8px;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.admin-header {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: var(--white);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-header h3 i { color: var(--gold); }

.admin-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
}
.admin-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.admin-body {
  padding: 1.5rem;
}

.admin-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.admin-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--transition);
  outline: none;
}

.admin-input:focus { border-color: var(--gold); background: var(--white); }

.admin-textarea {
  resize: vertical;
  min-height: 90px;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.75rem;
}

/* Dynamic book delete button */
.book-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.book-delete-btn:hover { background: var(--red-dark); }

body.admin-unlocked .book-delete-btn { display: flex; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gray-light);
}

/* ===== CONTACT ===== */
.contact {
  padding: 7rem 0;
  background: var(--cream-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
}

.contact-success {
  text-align: center;
  padding: 3rem 1rem;
}

.contact-success i {
  font-size: 3rem;
  color: #27ae60;
  margin-bottom: 1rem;
}

.contact-success h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.75rem;
  text-align: center;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.contact-info > p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.platform-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.platform-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(6px);
}

.platform-card div strong { display: block; font-size: 1rem; color: var(--ink); }
.platform-card div span  { font-size: 0.85rem; color: var(--gray); }

.platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.zoom-icon   { background: #2D8CFF; }
.meet-icon   { background: #34A853; }
.teams-icon  { background: #464EB8; }
.skype-icon  { background: #00AFF0; }

.social-links p {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.social-row {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 1.5px solid var(--gray-light);
}

.social-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .nav-logo {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.95rem; }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--gold); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,18,8,0.75);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  border-top: 4px solid var(--red);
  animation: modalIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray);
  cursor: pointer;
}

.modal-box p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.modal-box h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.modal-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .admin-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .admin-row { flex-direction: column; }
  .modal-btns { flex-direction: column; }
  .contact-form-wrap { padding: 1.5rem; }
}
