/* ========================================
   Amandla Vinjwa - Professional Book Website
   World-Class Design System
   ======================================== */

/* CSS Variables - Professional Color Scheme */
:root {
  /* Primary Colors - Deep Navy & Gold */
  --primary: #1a365d;
  --primary-dark: #0f2744;
  --primary-light: #2c5282;
  
  /* Accent Colors - Elegant Gold */
  --accent: #d69e2e;
  --accent-light: #ecc94b;
  --accent-dark: #b7791f;
  
  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #f7fafc;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Semantic Colors */
  --success: #38a169;
  --warning: #dd6b20;
  --error: #e53e3e;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Typography */
  --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  
  /* Spacing */
  --container-max: 1280px;
  --section-padding: 80px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-amazon {
  background: linear-gradient(135deg, #ff9900 0%, #e47711 100%);
  color: var(--white);
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, var(--gray-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(214, 158, 46, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 8px;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  background: linear-gradient(145deg, var(--gray-100) 0%, var(--white) 100%);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border: 2px solid var(--accent);
  border-radius: calc(var(--border-radius-lg) + 10px);
  opacity: 0.3;
}

.hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.hero-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.hero-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  background: var(--gray-100);
  padding: 4px;
}

.hero-thumb:hover {
  border-color: var(--accent-light);
}

.hero-thumb.active {
  border-color: var(--accent);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: var(--gray-300);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(214, 158, 46, 0.15);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-600);
}

/* ========================================
   BOOK SECTION
   ======================================== */
.book-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.book-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
}

.book-cover-wrapper {
  position: sticky;
  top: 120px;
}

.book-cover {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: var(--primary);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.1;
}

.book-cover img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.book-purchase {
  margin-top: 24px;
  text-align: center;
}

.book-purchase-title {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.purchase-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-details h3 {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}

.book-details p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.book-features {
  margin: 32px 0;
}

.book-features h4 {
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-content h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.reviews-section .section-header {
  position: relative;
  z-index: 1;
}

.reviews-section .section-label {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-light);
}

.reviews-section .section-title {
  color: var(--white);
}

.reviews-section .section-description {
  color: var(--gray-300);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.review-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.review-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.review-author-info h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.review-author-info span {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.star {
  color: var(--accent);
  font-size: 1.2rem;
}

.review-text {
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
}

.review-quote {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  color: var(--gray-200);
  font-family: var(--font-heading);
  line-height: 1;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(26, 54, 93, 0.9));
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h5 {
  color: var(--white);
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   AUTHOR SECTION
   ======================================== */
.author-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.author-image-wrapper {
  position: relative;
}

.author-image-wrapper::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 30px;
  right: -30px;
  bottom: -30px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--border-radius-lg);
  opacity: 0.2;
}

.author-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
  padding: 16px;
}

.author-image img {
  width: 100%;
  border-radius: var(--border-radius);
}

.author-content h3 {
  color: var(--accent-dark);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.author-content h2 {
  margin-bottom: 24px;
}

.author-bio {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.qualifications {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.qualifications h4 {
  margin-bottom: 16px;
  color: var(--primary);
}

.qualifications ul {
  display: grid;
  gap: 12px;
}

.qualifications li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-700);
}

.qualifications li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.author-tag {
  padding: 10px 20px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.author-tag:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ========================================
   THEMES SECTION
   ======================================== */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.theme-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent);
  transition: all 0.3s ease;
}

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

.theme-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.theme-icon span {
  font-size: 2rem;
}

.theme-card h4 {
  margin-bottom: 12px;
}

.theme-card p {
  color: var(--gray-600);
  margin: 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray-600);
  margin: 0;
}

.contact-item a {
  color: var(--primary);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent-dark);
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 158, 46, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--gray-400);
  margin-top: 16px;
}

.footer-title {
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--gray-400);
  transition: color 0.3s ease;
}

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

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

.footer-bottom p {
  color: var(--gray-500);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.admin-link .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal.active {
  display: flex;
}

.admin-panel {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.admin-header {
  background: var(--primary);
  color: var(--white);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
}

.admin-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.admin-tabs {
  display: flex;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.admin-tab {
  padding: 16px 24px;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.admin-tab:hover {
  color: var(--primary);
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
  background: var(--white);
}

.admin-content {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-form-group {
  margin-bottom: 24px;
}

.admin-form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.admin-form-group input,
.admin-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
}

.admin-form-group textarea {
  min-height: 100px;
}

.admin-list {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 20px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.admin-list-item:last-child {
  margin-bottom: 0;
}

.admin-list-item h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  margin: 0;
}

.admin-list-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 4px 0 0;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .book-grid {
    grid-template-columns: 1fr;
  }
  
  .book-cover-wrapper {
    position: static;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .author-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .author-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .stat-item {
    min-width: 100px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .purchase-buttons {
    flex-direction: column;
  }
  
  .purchase-buttons .btn {
    width: 100%;
  }
}
/* Page Header Styles */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: var(--section-padding) 0;
  text-align: center;
}

.page-label {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 40px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.cta-box h2,
.cta-box h3 {
  color: white;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Contact Services */
.contact-services {
  margin-top: 30px;
}

.contact-services h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.contact-services ul {
  list-style: none;
}

.contact-services li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.contact-services li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Contact Hours */
.contact-hours {
  margin-top: 30px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.contact-hours h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.contact-hours p {
  color: var(--gray-600);
  font-size: 14px;
}

/* Active Navigation Link */
.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

/* Admin Link Styles */
.admin-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.admin-link .btn {
  box-shadow: var(--shadow-lg);
}

/* Responsive Page Header */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 20px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .cta-box {
    padding: 40px 20px;
  }
}

/* Responsive Features Grid */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
