/* ==========================================================================
   PLATE & PROSE - PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Default Theme (Classic mor-turuncu) */
  --bg-color: hsl(222, 25%, 6%);
  --surface-color: hsla(222, 25%, 10%, 0.7);
  --surface-border: hsla(222, 25%, 20%, 0.5);
  --text-primary: hsl(210, 20%, 95%);
  --text-secondary: hsl(210, 10%, 65%);
  --text-muted: hsl(210, 10%, 45%);
  --accent-purple: hsl(265, 80%, 60%);
  --accent-rose: hsl(335, 80%, 55%);
  --accent-orange: hsl(20, 90%, 55%);
  --orange-primary: var(--accent-orange);
  --grad-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-rose) 100%);
  --grad-sunset: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-orange) 100%);
  --bg-gradient: radial-gradient(circle at 10% 20%, hsla(265, 80%, 60%, 0.05) 0%, transparent 40%),
                  radial-gradient(circle at 90% 80%, hsla(335, 80%, 55%, 0.05) 0%, transparent 40%);

  /* Styling Tokens */
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --glass-blur: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* Theme Overrides (Apply to body) */
body.theme-classic {
  --bg-color: hsl(222, 25%, 6%);
  --surface-color: hsla(222, 25%, 10%, 0.7);
  --surface-border: hsla(222, 25%, 20%, 0.5);
  --text-primary: hsl(210, 20%, 95%);
  --text-secondary: hsl(210, 10%, 65%);
  --text-muted: hsl(210, 10%, 45%);
  --accent-purple: hsl(265, 80%, 60%);
  --accent-rose: hsl(335, 80%, 55%);
  --accent-orange: hsl(20, 90%, 55%);
  --orange-primary: var(--accent-orange);
  --grad-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-rose) 100%);
  --grad-sunset: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-orange) 100%);
  --bg-gradient: radial-gradient(circle at 10% 20%, hsla(265, 80%, 60%, 0.05) 0%, transparent 40%),
                  radial-gradient(circle at 90% 80%, hsla(335, 80%, 55%, 0.05) 0%, transparent 40%);
}

body.theme-sunset {
  --bg-color: hsl(20, 30%, 8%);
  --surface-color: hsla(20, 30%, 12%, 0.7);
  --surface-border: hsla(20, 30%, 22%, 0.5);
  --text-primary: hsl(35, 40%, 95%);
  --text-secondary: hsl(35, 20%, 75%);
  --text-muted: hsl(35, 15%, 55%);
  --accent-purple: hsl(15, 80%, 50%); /* Terracotta */
  --accent-rose: hsl(30, 85%, 55%);    /* Amber */
  --accent-orange: hsl(45, 90%, 55%);  /* Gold */
  --orange-primary: var(--accent-orange);
  --grad-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-rose) 100%);
  --grad-sunset: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-orange) 100%);
  --bg-gradient: radial-gradient(circle at 10% 20%, hsla(15, 80%, 50%, 0.05) 0%, transparent 40%),
                  radial-gradient(circle at 90% 80%, hsla(30, 85%, 55%, 0.05) 0%, transparent 40%);
}

body.theme-ocean {
  --bg-color: hsl(200, 40%, 6%);
  --surface-color: hsla(200, 40%, 10%, 0.7);
  --surface-border: hsla(200, 30%, 20%, 0.5);
  --text-primary: hsl(190, 50%, 95%);
  --text-secondary: hsl(190, 25%, 75%);
  --text-muted: hsl(190, 15%, 55%);
  --accent-purple: hsl(175, 80%, 40%); /* Teal */
  --accent-rose: hsl(195, 85%, 45%);   /* Wave Blue */
  --accent-orange: hsl(215, 90%, 50%); /* Deep Blue */
  --orange-primary: var(--accent-orange);
  --grad-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-rose) 100%);
  --grad-sunset: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-orange) 100%);
  --bg-gradient: radial-gradient(circle at 10% 20%, hsla(175, 80%, 40%, 0.05) 0%, transparent 40%),
                  radial-gradient(circle at 90% 80%, hsla(195, 85%, 45%, 0.05) 0%, transparent 40%);
}

body.theme-parchment {
  --bg-color: hsl(40, 23%, 90%);
  --surface-color: hsla(40, 30%, 85%, 0.85);
  --surface-border: hsla(40, 20%, 72%, 0.55);
  --text-primary: hsl(40, 35%, 15%);
  --text-secondary: hsl(40, 20%, 30%);
  --text-muted: hsl(40, 10%, 45%);
  --accent-purple: hsl(25, 60%, 35%);  /* Sepia Brown */
  --accent-rose: hsl(35, 50%, 40%);    /* Dark Ochre */
  --accent-orange: hsl(20, 70%, 45%);  /* Rust */
  --orange-primary: var(--accent-orange);
  --grad-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-rose) 100%);
  --grad-sunset: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-orange) 100%);
  --bg-gradient: none;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.3s ease, background-image 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: hsla(210, 10%, 45%, 0.2);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: hsla(210, 10%, 45%, 0.4);
}

/* Loader Styles */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid hsla(210, 20%, 95%, 0.1);
  border-top: 4px solid var(--accent-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Layout and Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 20px 40px;
  min-height: calc(100vh - 60px);
}

/* Glassmorphism Panel Utilities */
.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: hsla(222, 25%, 30%, 0.6);
  box-shadow: var(--shadow-lg);
}

/* Typography Helpers */
.title-gradient {
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-orange-gradient {
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Active links and hover effects */
button, a {
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   NAVIGATION BAR STYLES
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: hsla(222, 25%, 6%, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
}

.navbar-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: hsla(210, 20%, 95%, 0.05);
}

.nav-link.active {
  border: 1px solid hsla(210, 20%, 95%, 0.1);
}

.nav-right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: hsla(210, 20%, 95%, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  background: hsla(210, 20%, 95%, 0.1);
  border-color: hsla(210, 20%, 95%, 0.2);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  background: hsl(222, 25%, 10%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
  max-height: 250px;
  overflow-y: auto;
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  width: 100%;
  text-align: left;
  transition: var(--transition-smooth);
}

.lang-option:hover {
  background: hsla(210, 20%, 95%, 0.05);
  color: var(--text-primary);
}

.lang-option.active {
  background: var(--grad-primary);
  color: var(--text-primary);
}

.lang-flag {
  font-size: 1.1rem;
}

/* ==========================================================================
   ADSENSE PLACEHOLDER STYLES
   ========================================================================== */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  padding: 15px;
  width: 100%;
  min-height: 120px;
  border: 1px dashed hsla(210, 10%, 45%, 0.3);
  background: hsla(222, 25%, 8%, 0.5);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.ad-label {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-content-simulation {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-secondary);
}

.ad-icon {
  font-size: 1.5rem;
  opacity: 0.6;
}

.ad-text {
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
}

/* ==========================================================================
   DASHBOARD HOME STYLES
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 40px 0 60px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.section-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  margin-top: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

/* Card Component */
.card {
  display: flex;
  flex-direction: column;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.card-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: hsla(210, 20%, 95%, 0.02);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: hsla(222, 25%, 6%, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--surface-border);
  padding-top: 15px;
  margin-top: auto;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-btn {
  background: transparent;
  border: none;
  color: var(--accent-purple);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.card:hover .card-btn {
  color: var(--accent-rose);
  transform: translateX(3px);
}

/* ==========================================================================
   RECIPES & TRAVEL DETAIL STYLES
   ========================================================================== */
.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.back-btn:hover {
  color: var(--text-primary);
  transform: translateX(-3px);
}

.detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px 40px;
}

.detail-hero {
  margin-bottom: 35px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-lg);
}

.detail-image-wrapper {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
  background-color: hsla(210, 20%, 95%, 0.01);
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.detail-hero:hover .detail-hero-img {
  transform: scale(1.02);
}

.detail-hero-info {
  padding: 30px;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.95) 0%, rgba(10, 12, 16, 0.4) 100%);
  border-top: 1px solid var(--surface-border);
}

.detail-desc {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 15px;
  border-left: 3px solid var(--orange-primary);
  padding-left: 15px;
}

.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .detail-image-wrapper {
    height: 300px;
  }
  .detail-hero-info {
    padding: 20px;
  }
  .detail-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .detail-image-wrapper {
    height: 220px;
  }
  .detail-title {
    font-size: 1.5rem;
  }
  .detail-desc {
    font-size: 0.95rem;
  }
}

.detail-header {
  margin-bottom: 25px;
}

.detail-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.detail-badge {
  background: hsla(210, 20%, 95%, 0.05);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 30px;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 10px;
}

.detail-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Ingredients Checklist */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.checklist-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  background: hsla(210, 20%, 95%, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.checklist-checkbox:checked {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

.checklist-checkbox:checked::after {
  content: '✓';
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: bold;
}

.checklist-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.checklist-checkbox:checked + .checklist-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Step-by-Step Cooking Steps */
.step-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-display);
}

/* Cross-reference Sync Box */
.sync-panel {
  padding: 25px;
  position: sticky;
  top: 90px;
}

.sync-panel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-panel-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.sync-card {
  display: flex;
  gap: 12px;
  background: hsla(222, 25%, 6%, 0.4);
  border: 1px solid var(--surface-border);
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sync-card:hover {
  border-color: var(--accent-rose);
  transform: translateY(-2px);
}

.sync-card-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.sync-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sync-card-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sync-card-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECURE MANGA / E-BOOK READER STYLES
   ========================================================================== */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}

.manga-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.manga-cover-container {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  position: relative;
}

.manga-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.manga-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 10px;
  color: var(--text-primary);
  text-align: center;
}

.manga-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
}

/* Secure Reader Workspace */
.reader-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.reader-toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 15px;
}

.reader-controls {
  display: flex;
  gap: 10px;
}

.reader-btn {
  background: hsla(210, 20%, 95%, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.reader-btn:hover {
  background: var(--grad-primary);
  border-color: transparent;
}

/* Secure Canvas / Protected Area */
.protected-view-container {
  width: 100%;
  position: relative;
  background: hsl(222, 25%, 4%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.protected-page {
  width: 100%;
  max-height: 800px;
  object-fit: contain;
  display: block;
  pointer-events: none; /* Prevents dragging the image */
}

/* Transparent Overlay to stop clicking */
.security-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
}

/* Book Content Container (For Text-based E-books) */
.protected-text-content {
  padding: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: hsl(210, 10%, 80%);
  max-height: 600px;
  overflow-y: auto;
  pointer-events: auto; /* Allow scrolling and mouse interactions */
}

.protected-text-content p {
  margin-bottom: 20px;
}

/* Security Popups / Warnings */
.security-warning-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: hsla(222, 25%, 10%, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent-rose);
  border-radius: var(--radius-md);
  padding: 20px 30px;
  text-align: center;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 90%;
}

.security-warning-modal.show {
  display: flex;
}

.warning-icon {
  font-size: 2.2rem;
  color: var(--accent-rose);
}

.warning-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.warning-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ABOUT & PRIVACY POLICY STYLES
   ========================================================================== */
.info-layout {
  max-width: 800px;
  margin: 0 auto;
}

.info-content {
  padding: 40px;
}

.info-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.info-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Footer Section */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 30px 20px;
  text-align: center;
  margin-top: 50px;
  background: hsla(222, 25%, 4%, 0.8);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SEARCH OVERLAY MODAL
   ========================================================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-overlay.show {
  display: flex;
}

.search-modal-container {
  width: 90%;
  max-width: 650px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid var(--surface-border);
}

.search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-family: var(--font-body);
  outline: none;
}

.search-close-btn {
  background: hsla(210, 20%, 95%, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.search-close-btn:hover {
  background: var(--accent-rose);
  color: white;
  border-color: transparent;
}

.search-results-list {
  padding: 15px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: hsla(222, 25%, 6%, 0.3);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.search-result-item:hover {
  background: hsla(210, 20%, 95%, 0.03);
  border-color: var(--surface-border);
  transform: translateX(4px);
}

.search-result-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background: hsla(210, 20%, 95%, 0.02);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT FORM & CAPTCHA STYLES
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-textarea, .form-select {
  background: hsla(222, 25%, 6%, 0.5);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px hsla(265, 80%, 60%, 0.15);
}

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

/* Captcha Block */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: hsla(222, 25%, 6%, 0.3);
  border: 1px solid var(--surface-border);
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 25px;
}

.captcha-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.captcha-question {
  background: var(--grad-primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
}

.captcha-input {
  width: 80px;
  text-align: center;
  font-weight: bold;
}

/* Status Notifications */
.status-alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 25px;
  display: none;
  animation: slideDown 0.3s ease;
}

.status-alert.success {
  background: hsla(142, 70%, 45%, 0.1);
  border: 1px solid hsla(142, 70%, 45%, 0.3);
  color: hsl(142, 70%, 75%);
}

.status-alert.error {
  background: hsla(350, 70%, 50%, 0.1);
  border: 1px solid hsla(350, 70%, 50%, 0.3);
  color: hsl(350, 70%, 75%);
}

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

.contact-email-box {
  background: hsla(210, 20%, 95%, 0.03);
  border: 1px solid var(--surface-border);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-email-link {
  color: var(--accent-rose);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.contact-email-link:hover {
  text-decoration: underline;
  color: var(--accent-orange);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-sunset);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

.scroll-to-top:active {
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & OVERFLOW PREVENTIONS
   ========================================================================== */
html, body {
  overflow-x: hidden;
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  align-self: center;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 900px) {
  .logo-text {
    font-size: 1.1rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none; /* Hide desktop link list */
  }
  
  .navbar-container.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--surface-border);
    padding: 20px;
    gap: 15px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  .navbar-container.menu-open .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.1rem;
    display: block;
  }
  
  /* Hamburger menu animations */
  .navbar-container.menu-open #mobile-menu-toggle-btn .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .navbar-container.menu-open #mobile-menu-toggle-btn .bar:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-container.menu-open #mobile-menu-toggle-btn .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none; /* Hide logo text on very small screens to fit everything */
  }
}

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

/* ==========================================================================
   SEARCH AUTOCOMPLETE DROPDOWN STYLES
   ========================================================================== */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  padding: 8px;
}

.search-autocomplete-dropdown.show {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.autocomplete-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.autocomplete-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.autocomplete-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.autocomplete-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.3;
  text-align: left;
}

.autocomplete-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
}


