/* Taste of Africa Admin Portal Styles */
/* Matches the brand design language from the public menu */

/* ====================== THEME VARIABLES ====================== */
:root {
  --gold: #d3a437;
  --deep-gold: #b6892a;
  --brick: #a33a21;
  --earth: #7a3b1b;
  --ink: #28160f;
  --cream: #f1e7d6;
  
  --radius-3xl: 30px;
  --radius-2xl: 26px;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 20px rgba(211,164,55,0.3);
  
  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

/* ====================== BASE STYLES ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-rounded, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: 
    radial-gradient(1200px 600px at 20% -10%, rgba(233,198,133,.20), transparent 60%),
    radial-gradient(1200px 600px at 120% 110%, rgba(163,58,33,.15), transparent 60%),
    linear-gradient(180deg, #5e2b14 0%, #4b220f 40%, #3a1a0c 100%);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====================== LOGIN SCREEN ====================== */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.login-pattern-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(211,164,55,.08), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(163,58,33,.08), transparent 60%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.login-container {
  background: linear-gradient(135deg, rgba(40,22,15,.96), rgba(40,22,15,.98));
  border-radius: var(--radius-3xl);
  padding: 3rem;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(211,164,55,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
  border: 2px solid transparent;
  background-clip: padding-box;
  max-width: 450px;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(211,164,55,.6), rgba(163,58,33,.4), rgba(211,164,55,.6));
  border-radius: var(--radius-3xl);
  z-index: -1;
  opacity: 0.5;
  animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
}

.login-logo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.4),
    0 0 20px rgba(211,164,55,0.3),
    inset 0 2px 4px rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
}

.login-logo img:hover {
  transform: scale(1.05);
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.5),
    0 0 30px rgba(211,164,55,0.5);
}

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

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.login-header h1 {
  font-family: ui-serif, Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    0 0 20px rgba(211,164,55,0.2);
}

.login-header .of {
  color: var(--cream);
  font-weight: 700;
}

.login-subtitle {
  color: rgba(241,231,214,.9);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.login-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto;
  box-shadow: 0 0 10px rgba(211,164,55,0.4);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 1s ease-out 0.4s both;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 1;
}

.form-group input {
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid rgba(211,164,55,.25);
  border-radius: var(--radius-md);
  background: rgba(241,231,214,.05);
  color: var(--cream);
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  backdrop-filter: blur(10px);
}

.form-group input::placeholder {
  color: rgba(241,231,214,.4);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(241,231,214,.08);
  box-shadow: 
    0 0 0 3px rgba(211,164,55,.15),
    0 4px 12px rgba(211,164,55,.2),
    inset 0 1px 2px rgba(255,255,255,.1);
  transform: translateY(-1px);
}

.login-btn {
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  color: var(--ink);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 6px 20px rgba(211,164,55,.3),
    inset 0 1px 0 rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(211,164,55,.4),
    0 0 20px rgba(211,164,55,.3),
    inset 0 1px 0 rgba(255,255,255,.4);
}

.login-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.login-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(211,164,55,.2);
  animation: fadeIn 1.2s ease-out 0.6s both;
}

.login-footer p {
  color: rgba(241,231,214,.6);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.error-message {
  background: rgba(163,58,33,.2);
  border: 1px solid var(--brick);
  color: #ff6b6b;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.9rem;
}

/* ====================== ADMIN DASHBOARD ====================== */
.admin-dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.header-pattern {
  height: 80px;
  background-image:
    linear-gradient(to bottom, rgba(43,19,9,0.85), rgba(43,19,9,0.85)),
    url("../assets/header-band.png");
  background-repeat: no-repeat, repeat-x;
  background-size: auto, cover;
  background-position: center, center;
  position: relative;
}

.header-pattern::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211,164,55,.72), transparent);
  box-shadow: 0 0 6px rgba(211,164,55,.35);
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 2rem;
}

.header-content h1 {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.header-content .of {
  color: var(--brick);
}

.header-subtitle {
  color: rgba(241,231,214,.9);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(241,231,214,.8);
}

.logout-btn {
  background: rgba(163,58,33,.2);
  border: 1px solid var(--brick);
  color: var(--cream);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.logout-btn:hover {
  background: var(--brick);
}

/* Main Layout */
.admin-main {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Sidebar */
.admin-sidebar {
  width: 200px;
  background: linear-gradient(180deg, rgba(40,22,15,.95), rgba(40,22,15,.98));
  border-right: 1px solid rgba(211,164,55,.2);
  padding: 1.5rem 0;
  flex-shrink: 0;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.nav-btn {
  background: none;
  border: none;
  color: rgba(241,231,214,.8);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-btn:hover {
  background: rgba(211,164,55,.1);
  color: var(--gold);
}

.nav-btn.active {
  background: rgba(211,164,55,.2);
  color: var(--gold);
  border-left: 3px solid var(--gold);
}

/* Content Area */
.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background: transparent;
}

.content-section {
  display: none;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(211,164,55,.2);
}

.section-header h2 {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.75rem;
  color: var(--gold);
  font-weight: 700;
}

/* ====================== BUTTONS ====================== */
.primary-btn {
  background: linear-gradient(180deg, var(--gold), var(--deep-gold));
  color: var(--ink);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

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

.secondary-btn {
  background: rgba(211,164,55,.1);
  color: var(--gold);
  border: 1px solid rgba(211,164,55,.3);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.secondary-btn:hover {
  background: rgba(211,164,55,.2);
  border-color: var(--gold);
}

.secondary-btn.disabled,
.secondary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(100,100,100,.1);
  border-color: rgba(100,100,100,.3);
  color: rgba(241,231,214,.4);
}

.secondary-btn.disabled:hover,
.secondary-btn:disabled:hover {
  background: rgba(100,100,100,.1);
  border-color: rgba(100,100,100,.3);
}

/* ====================== MENUS SECTION ====================== */
.menu-counters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.counter {
  background: rgba(211,164,55,.1);
  border: 1px solid rgba(211,164,55,.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

.counter-max {
  background: rgba(163,58,33,.2);
  border-color: var(--brick);
  color: #ff6b6b;
}

.menus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: linear-gradient(180deg, rgba(40,22,15,.9), rgba(40,22,15,.95));
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(211,164,55,.2);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.menu-card.menu-visible {
  border-left: 3px solid var(--gold);
}

.menu-card.menu-featured {
  border-left: 3px solid #ffd700;
  background: linear-gradient(180deg, rgba(211,164,55,.1), rgba(40,22,15,.95));
}

.badge-featured {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  filter: drop-shadow(0 0 4px rgba(255,215,0,0.5));
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.menu-card-title {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.menu-card-subtitle {
  color: rgba(241,231,214,.9);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.menu-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.menu-card-actions {
  display: flex;
  gap: 0.5rem;
}

.menu-card-actions button {
  background: none;
  border: 1px solid rgba(211,164,55,.3);
  color: var(--gold);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.menu-card-actions button:hover {
  background: rgba(211,164,55,.1);
  border-color: var(--gold);
}

.toggle-btn {
  position: relative;
}

.toggle-btn.active {
  background: rgba(211,164,55,.2);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(211,164,55,.3);
}

.menu-card-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.special-badge {
  display: inline-block;
  background: var(--brick);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ====================== QR CODES SECTION ====================== */
.qr-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.qr-card {
  background: linear-gradient(180deg, rgba(40,22,15,.9), rgba(40,22,15,.95));
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(211,164,55,.2);
  text-align: center;
}

.qr-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.qr-display {
  margin-bottom: 1rem;
}

.qr-display img {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: white;
  padding: 10px;
}

.qr-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.qr-btn {
  background: rgba(211,164,55,.1);
  border: 1px solid rgba(211,164,55,.3);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.qr-btn:hover {
  background: rgba(211,164,55,.2);
  border-color: var(--gold);
}

.qr-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.qr-url label {
  font-size: 0.85rem;
  color: rgba(241,231,214,.8);
  white-space: nowrap;
}

.qr-url input {
  flex: 1;
  background: rgba(40,22,15,.8);
  border: 1px solid rgba(211,164,55,.3);
  color: var(--cream);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.copy-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--deep-gold);
}

/* ====================== MODALS ====================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-content {
  background: linear-gradient(180deg, rgba(40,22,15,.98), rgba(40,22,15,.99));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(211,164,55,.3);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(211,164,55,.2);
}

.modal-header h3 {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(211,164,55,.1);
}

.modal-form {
  padding: 1.5rem;
}

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

.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(211,164,55,.3);
  border-radius: var(--radius-md);
  background: rgba(40,22,15,.8);
  color: var(--cream);
  font-size: 1rem;
  transition: var(--transition);
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(211,164,55,.2);
}

.form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(211,164,55,.3);
  border-radius: var(--radius-md);
  background: rgba(40,22,15,.8);
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
}

.image-upload {
  margin-top: 0.5rem;
}

.image-preview {
  margin-top: 1rem;
  text-align: center;
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.special-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(211,164,55,.2);
}

.special-section h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--cream);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(211,164,55,.2);
}

/* ====================== TOAST NOTIFICATIONS ====================== */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: linear-gradient(180deg, rgba(40,22,15,.98), rgba(40,22,15,.99));
  border: 1px solid rgba(211,164,55,.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--cream);
  max-width: 300px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(211,164,55,.1), rgba(211,164,55,.15));
}

.toast.error {
  border-color: var(--brick);
  background: linear-gradient(180deg, rgba(163,58,33,.1), rgba(163,58,33,.15));
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ====================== RESPONSIVE DESIGN ====================== */
@media (max-width: 768px) {
  .admin-main {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    padding: 1rem;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.25rem;
  }
  
  .nav-btn {
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
  }
  
  .admin-content {
    padding: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .qr-codes {
    grid-template-columns: 1fr;
  }
  
  .menus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 2rem;
    margin: 1rem;
  }
  
  .modal {
    padding: 1rem;
  }
  
  .modal-content {
    margin: 0;
  }
  
  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
  
  .toast {
    max-width: none;
  }
}

/* ====================== MEDIA LIBRARY STYLES ====================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.media-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(241,231,214,.6);
  grid-column: 1 / -1;
}

.media-empty h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.media-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(211,164,55,.15), rgba(40,22,15,.9));
  border: 1px solid rgba(211,164,55,.3);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  font-family: ui-serif, Georgia, serif;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  color: rgba(241,231,214,.8);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.media-item {
  background: linear-gradient(180deg, rgba(40,22,15,.9), rgba(40,22,15,.95));
  border: 1px solid rgba(211,164,55,.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.media-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(211,164,55,.2);
  border-color: var(--gold);
}

.media-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1e0f09;
}

.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-item:hover .media-image img {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
  opacity: 1;
}

.media-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.media-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(211,164,55,.4);
}

.media-info {
  padding: 1rem;
}

.media-title {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.media-meta {
  font-size: 0.85rem;
  color: rgba(241,231,214,.7);
  margin-bottom: 0.5rem;
}

.media-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

.media-badge.visible {
  background: rgba(211,164,55,.2);
  color: var(--gold);
  border: 1px solid rgba(211,164,55,.4);
}

.media-badge.featured {
  background: rgba(255,215,0,.15);
  color: #ffd700;
  border: 1px solid rgba(255,215,0,.4);
}

/* ====================== HELP SECTION STYLES ====================== */
.help-search {
  margin-bottom: 2rem;
}

.help-search input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border: 2px solid rgba(211,164,55,.3);
  border-radius: var(--radius-xl);
  background: rgba(40,22,15,.8);
  color: var(--cream);
  transition: all 0.3s ease;
}

.help-search input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(40,22,15,.9);
  box-shadow: 0 0 0 4px rgba(211,164,55,.15), 0 4px 16px rgba(211,164,55,.2);
}

.help-guide {
  max-width: 1000px;
}

.help-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(211,164,55,.1), rgba(163,58,33,.1));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(211,164,55,.3);
}

.help-hero h3 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: ui-serif, Georgia, serif;
}

.help-hero p {
  color: rgba(241,231,214,.8);
  font-size: 1.1rem;
}

.help-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.help-card {
  background: linear-gradient(180deg, rgba(40,22,15,.9), rgba(40,22,15,.95));
  border: 1px solid rgba(211,164,55,.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(211,164,55,.2);
  border-color: var(--gold);
}

.help-card.featured-card {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(211,164,55,.05), rgba(40,22,15,.95));
}

.help-card.full-width {
  grid-column: 1 / -1;
}

.help-card.info-card {
  background: linear-gradient(135deg, rgba(163,58,33,.08), rgba(40,22,15,.95));
  border-left: 4px solid var(--brick);
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.help-card h4 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.help-badge {
  display: inline-block;
  background: var(--brick);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.help-card ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.help-card ul li {
  margin-bottom: 0.5rem;
  color: rgba(241,231,214,.9);
}

.help-visual {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0,0,0,.2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}

.visual-indicator {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.visual-indicator.visible {
  background: rgba(211,164,55,.2);
  border-left: 3px solid var(--gold);
  color: var(--gold);
}

.visual-indicator.featured {
  background: rgba(255,215,0,.15);
  border-left: 3px solid #ffd700;
  color: #ffd700;
}

.visual-indicator.warning {
  background: rgba(163,58,33,.2);
  border-left: 3px solid var(--brick);
  color: #ff6b6b;
}

.help-tip {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(211,164,55,.08);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: rgba(241,231,214,.8);
  font-size: 0.9rem;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.task-item {
  background: rgba(211,164,55,.08);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(211,164,55,.2);
  transition: all 0.2s ease;
}

.task-item:hover {
  background: rgba(211,164,55,.12);
  border-color: var(--gold);
}

.task-item strong {
  display: block;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.task-item p {
  color: rgba(241,231,214,.8);
  font-size: 0.85rem;
  line-height: 1.5;
}

.counter-list {
  list-style: none;
  padding-left: 0 !important;
}

.counter-list li {
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(211,164,55,.08);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
}

.info-list {
  list-style: none;
  padding-left: 0 !important;
}

.info-list li {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--brick);
  padding-left: 1rem;
}

/* ====================== UTILITY CLASSES ====================== */
.hidden {
  display: none !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

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

.text-brick {
  color: var(--brick);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
