/**
 * Admin Panel Shared Styles
 * The Journeyman - Admin Dashboard
 * 
 * This file contains all shared styles for admin pages.
 * Individual pages should link to this file instead of inline styles.
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
/* NOTE: Admin color variables are now defined in admin-themes.css
   which supports multiple color schemes. The variables below are
   only used as fallbacks when admin-themes.css is not loaded. */
:root:not([data-admin-theme]) {
  /* Fallback values when no theme is set */
  --admin-bg: var(--surface-dark, #0a0a0a);
  --admin-panel: var(--surface-panel, #0e1014);
  --admin-card: var(--surface-card, #141414);
  --admin-input: var(--surface-input, #0d0f13);
  
  --admin-line: var(--border-subtle, rgba(255, 255, 255, 0.1));
  --admin-line-strong: var(--border-medium, rgba(255, 255, 255, 0.15));
  
  --admin-accent: var(--color-primary-hover, #ff6b2b);
  --admin-accent-glow: rgba(255, 107, 43, 0.3);
  --admin-success: var(--color-success, #22c55e);
  --admin-warning: var(--color-warning, #f59e0b);
  --admin-danger: var(--color-danger, #ef4444);
  --admin-info: var(--color-info, #3b82f6);
  
  --admin-text: var(--text-primary, #ffffff);
  --admin-text-secondary: var(--text-secondary, #e8e8e8);
  --admin-text-muted: var(--text-muted, #a0a0a0);
  
  --admin-glow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.4);
  --admin-glow-accent: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 32px rgba(255,107,43,0.2);
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text-secondary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ========================================
   LAYOUT
   ======================================== */
.admin-wrap {
  position: relative;
  z-index: 1; /* Above particle canvas (z-index: 0) */
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ========================================
   HEADER
   ======================================== */
.admin-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--admin-text-muted);
}

.admin-breadcrumb a {
  color: var(--admin-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-breadcrumb a:hover {
  color: var(--admin-accent);
}

.admin-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--admin-text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 12px 0 6px;
}

.admin-subtitle {
  color: var(--admin-text-muted);
  font-size: 14px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--admin-line-strong);
  border-radius: 8px;
  color: var(--admin-text-secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}

.btn-primary {
  background: rgba(255,107,43,0.15);
  border-color: rgba(255,107,43,0.4);
  color: var(--admin-accent);
}

.btn-primary:hover {
  background: rgba(255,107,43,0.25);
  border-color: rgba(255,107,43,0.6);
}

.btn-danger {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.6);
}

.btn-success {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.4);
  color: #86efac;
}

.btn-success:hover {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.6);
}

.btn-logout {
  background: transparent;
}

.btn-logout:hover {
  background: rgba(239,68,68,0.1);
  border-color: var(--admin-danger);
  color: var(--admin-danger);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
}

/* ========================================
   GATE (Auth Check)
   ======================================== */
.admin-gate {
  text-align: center;
  padding: 48px 24px;
  color: var(--admin-text-muted);
  font-size: 15px;
}

.admin-gate.loading::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--admin-line-strong);
  border-top-color: var(--admin-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   PANELS & CARDS
   ======================================== */
.admin-panel {
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--admin-glow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-line);
}

.panel-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  letter-spacing: 0.5px;
}

.panel-subtitle {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.panel-actions {
  display: flex;
  gap: 8px;
}

/* ========================================
   HUB GRID (Dashboard Cards)
   ======================================== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.hub-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--admin-line);
  background: var(--admin-card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--admin-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--admin-accent);
  box-shadow: var(--admin-glow-accent);
}

.hub-card-main {
  flex: 1;
  max-width: 85%;
}

.hub-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hub-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,43,0.1);
  border: 1px solid rgba(255,107,43,0.3);
  color: var(--admin-accent);
  font-size: 16px;
}

.hub-card-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--admin-text);
}

.hub-card-text {
  margin: 0;
  font-size: 13px;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

/* ========================================
   HUB ICON COLOR VARIANTS
   Extracted from inline styles for maintainability
   ======================================== */
.hub-icon--purple,
.hub-card-icon--purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

.hub-icon--blue,
.hub-card-icon--blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.hub-icon--green,
.hub-card-icon--green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.hub-icon--orange,
.hub-card-icon--orange {
  background: rgba(255, 107, 43, 0.1);
  border-color: rgba(255, 107, 43, 0.3);
  color: var(--admin-accent);
}

.hub-icon--cyan,
.hub-card-icon--cyan {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0ea5e9;
}

.hub-icon--yellow,
.hub-card-icon--yellow {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.hub-icon--pink,
.hub-card-icon--pink {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.3);
  color: #ec4899;
}

.hub-icon--slate,
.hub-card-icon--slate {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.hub-icon--red,
.hub-card-icon--red {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Stat icon color variants */
.stat-icon--purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.stat-icon--blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-icon--green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.stat-icon--yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.stat-icon--red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.stat-icon--cyan { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }

/* Spacing utilities for admin pages */
.mb-24 { margin-bottom: 24px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-0 { margin-bottom: 0; }
.mr-8 { margin-right: 8px; }

/* Icon color utilities for inline icon styling */
.icon-warning { color: var(--admin-warning); }
.icon-muted { color: var(--admin-text-muted); }
.icon-success { color: var(--admin-success); }
.icon-danger { color: var(--admin-danger); }
.icon-info { color: var(--admin-info); }
.icon-accent { color: var(--admin-accent); }

/* Form actions row */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Duration inputs for podcast */
.duration-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.duration-input {
  width: 70px;
  text-align: center;
}

.duration-label {
  color: var(--admin-text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.page-info {
  padding: 8px 16px;
  color: var(--admin-text-muted);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--admin-panel);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
}

/* ========================================
   ADDITIONAL UTILITY CLASSES
   ======================================== */

/* Analytics page */
.analytics-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.analytics-select {
  min-width: 150px;
}

.analytics-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .analytics-charts-row {
    grid-template-columns: 1fr;
  }
}

/* SEO page */
.seo-path-row {
  display: flex;
  gap: 12px;
}

.seo-preview-heading {
  font-size: 14px;
  margin-bottom: 12px;
}

.seo-google-icon {
  color: #4285f4;
}

/* ========================================
   CONTENT CARDS (Blog, Podcast, Rewards)
   Unified card style for media items
   ======================================== */
.content-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  margin-bottom: 12px;
  align-items: center;
  transition: border-color 0.2s;
}

.content-card:hover {
  border-color: var(--admin-line-strong);
}

.content-card.no-media {
  grid-template-columns: 1fr auto;
}

/* Thumbnail/Media area */
.content-card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--admin-panel);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-muted);
  font-size: 24px;
}

.content-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card-thumb.wide {
  width: 120px;
  height: 68px;
  border-radius: 8px;
}

/* Video play overlay for video cards */
.content-card-thumb {
  position: relative;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.video-play-overlay i {
  color: #fff;
  font-size: 14px;
  margin-left: 2px;
}

.content-card:hover .video-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Featured badge for video cards */
.featured-badge-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #000;
}

.featured-badge-small i {
  font-size: 9px;
}

/* Info section */
.content-card-info {
  flex: 1;
  min-width: 0;
}

.content-card-label {
  font-size: 12px;
  color: var(--admin-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.content-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-card-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.content-card-desc {
  font-size: 13px;
  color: var(--admin-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions column */
.content-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.content-card-actions .btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Status pills */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.pill-on,
.pill-active,
.pill-published {
  background: rgba(34,197,94,0.15);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.3);
}

.pill-off,
.pill-inactive,
.pill-draft {
  background: rgba(148,163,184,0.15);
  color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.3);
}

.pill-archived {
  background: rgba(245,158,11,0.15);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.3);
}

.pill-pending {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.3);
}

/* Responsive adjustments for content cards */
@media (max-width: 640px) {
  .content-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .content-card-thumb {
    width: 100%;
    height: 120px;
  }
  
  .content-card-thumb.wide {
    width: 100%;
    height: 100px;
  }
  
  .content-card-actions {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

/* Rewards page */
.reward-form-section {
  border-top: 1px solid var(--admin-line);
  padding-top: 20px;
}

.reward-form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 16px;
}

.reward-form-icon {
  color: var(--admin-accent);
  margin-right: 8px;
}

/* Settings page */
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Panel icon utilities */
.panel-icon {
  margin-right: 8px;
}

.panel-icon--accent { color: var(--admin-accent); }
.panel-icon--blue { color: #3b82f6; }
.panel-icon--green { color: #22c55e; }
.panel-icon--yellow { color: #f59e0b; }
.panel-icon--purple { color: #a855f7; }

/* Flex utilities */
.flex-1 { flex: 1; }

/* Additional spacing */
.mt-16 { margin-top: 16px; }

/* ========================================
   BADGES
   ======================================== */
.badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.badge-danger {
  background: var(--admin-danger);
  color: #fee2e2;
}

.badge-success {
  background: var(--admin-success);
  color: #dcfce7;
}

.badge-warning {
  background: var(--admin-warning);
  color: #fef3c7;
}

.badge-info {
  background: var(--admin-info);
  color: #dbeafe;
}

/* ========================================
   STATS CARDS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  text-align: center;
}

.stat-card.clickable {
  cursor: pointer;
  transition: all 0.2s;
}

.stat-card.clickable:hover {
  border-color: var(--admin-accent);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255,107,43,0.1);
  color: var(--admin-accent);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--admin-text);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.stat-change {
  font-size: 12px;
  margin-top: 4px;
}

.stat-change.up {
  color: var(--admin-success);
}

.stat-change.down {
  color: var(--admin-danger);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--admin-line-strong);
  background: var(--admin-input);
  color: var(--admin-text-secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(255,107,43,0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--admin-text-muted);
  opacity: 0.7;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  cursor: pointer;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

input[type="file"] {
  padding: 8px;
}

/* ========================================
   LISTS
   ======================================== */
.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  padding: 16px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.list-item:hover {
  border-color: var(--admin-line-strong);
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.list-item-title {
  font-weight: 600;
  color: var(--admin-text);
  font-size: 15px;
}

.list-item-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.list-item-content {
  color: var(--admin-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.list-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ========================================
   TABLES
   ======================================== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-line);
}

.admin-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--admin-card);
}

.admin-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ========================================
   CHARTS PLACEHOLDER
   ======================================== */
.chart-container {
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-placeholder {
  color: var(--admin-text-muted);
  text-align: center;
}

/* Simple bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding: 16px 0;
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--admin-accent), rgba(255,107,43,0.4));
  border-radius: 4px 4px 0 0;
  min-width: 30px;
  position: relative;
  transition: all 0.3s;
}

.bar:hover {
  background: linear-gradient(to top, var(--admin-accent), rgba(255,107,43,0.7));
}

.bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--admin-text-muted);
  white-space: nowrap;
}

.bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--admin-text);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--admin-text-muted);
}

.empty-state-icon {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text-secondary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
}

/* ========================================
   QUILL EDITOR OVERRIDES
   ======================================== */
.ql-toolbar.ql-snow {
  background: var(--admin-panel);
  border-color: var(--admin-line-strong);
  border-radius: 8px 8px 0 0;
}

.ql-container.ql-snow {
  background: var(--admin-input);
  border-color: var(--admin-line-strong);
  border-radius: 0 0 8px 8px;
  min-height: 200px;
  color: var(--admin-text-secondary);
}

.ql-editor {
  min-height: 200px;
}

.ql-stroke {
  stroke: var(--admin-text-secondary) !important;
}

.ql-fill {
  fill: var(--admin-text-secondary) !important;
}

.ql-picker {
  color: var(--admin-text-secondary) !important;
}

.ql-picker-options {
  background: var(--admin-panel) !important;
  border-color: var(--admin-line-strong) !important;
}

/* ========================================
   SEO PREVIEW
   ======================================== */
.seo-preview {
  margin-top: 16px;
  padding: 16px;
  background: var(--admin-card);
  border: 1px dashed var(--admin-line-strong);
  border-radius: 12px;
}

.seo-preview-title {
  color: #4e8df5;
  font-size: 18px;
  margin-bottom: 4px;
}

.seo-preview-url {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.seo-preview-desc {
  color: var(--admin-text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

/* ========================================
   TOOLTIPS & HELPERS
   ======================================== */
.help-text {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: var(--admin-text);
  color: var(--admin-bg);
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   ACTIVITY FEED
   Displays recent admin actions on dashboard
   ======================================== */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--admin-line);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-line);
  color: var(--admin-text-muted);
}

/* Activity icon color variants */
.activity-icon--orange {
  background: rgba(255, 107, 43, 0.1);
  border-color: rgba(255, 107, 43, 0.3);
  color: #ff6b2b;
}

.activity-icon--blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.activity-icon--red {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.activity-icon--green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.activity-icon--purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

.activity-icon--pink {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.3);
  color: #ec4899;
}

.activity-icon--cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #06b6d4;
}

.activity-icon--yellow {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.activity-icon--slate {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: 13px;
  color: var(--admin-text-secondary);
  line-height: 1.4;
}

.activity-text strong {
  color: var(--admin-text);
  font-weight: 600;
}

.activity-target {
  color: var(--admin-accent);
  font-weight: 500;
}

.activity-time {
  font-size: 11px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.activity-loading {
  text-align: center;
  padding: 24px;
  color: var(--admin-text-muted);
  font-size: 13px;
}

.activity-loading i {
  margin-right: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .admin-wrap {
    padding: 16px;
  }

  .admin-header-top {
    flex-direction: column;
  }

  .admin-title {
    font-size: 22px;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  /* Two-column layout stacks on mobile */
  .admin-two-col {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.review-card {
  border-left: 3px solid var(--admin-warning);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-line);
}

.review-rating {
  display: flex;
  gap: 2px;
  font-size: 16px;
}

.review-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.review-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 8px;
}

.review-content {
  font-size: 14px;
  color: var(--admin-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
}

.review-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-company,
.review-email {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
}

.review-company i,
.review-email i {
  margin-right: 6px;
  width: 14px;
}

.review-permissions {
  margin: 12px 0;
}

.review-permissions .allowed {
  color: var(--admin-success);
}

.review-permissions .not-allowed {
  color: var(--admin-text-muted);
}

.review-permissions i {
  margin-right: 6px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--admin-line);
}

.review-actions .btn-success {
  background: var(--admin-success);
  color: #fff;
}

.review-actions .btn-warning {
  background: var(--admin-warning);
  color: #000;
}

.review-actions .btn-primary {
  background: var(--admin-info);
  color: #fff;
}

.review-actions .btn-danger {
  background: var(--admin-danger);
  color: #fff;
}

/* Yellow stat icon */
.stat-icon--yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* ========================================
   REVIEW SHARE MODAL
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal:not([hidden]) {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--admin-panel);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--admin-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-line);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--admin-text);
}

.modal-body {
  padding: 20px;
}

/* Review Share Card (for screenshot/export) */
.review-share-preview {
  margin-bottom: 20px;
}

.review-share-card {
  background: linear-gradient(135deg, #1a2f35 0%, #0d1b1e 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(127, 209, 199, 0.2);
}

.review-share-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.review-share-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.review-share-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.review-share-brand .brand-the {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  color: #ff8c42;
  letter-spacing: 2px;
}

.review-share-brand .brand-journeyman {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: #f5e6d3;
  letter-spacing: 1px;
}

.review-share-stars {
  font-size: 24px;
  margin-bottom: 16px;
}

.review-share-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: #f5e6d3;
  margin-bottom: 12px;
  line-height: 1.3;
}

.review-share-content {
  font-size: 14px;
  color: #d0d0d0;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-share-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.review-share-author .author-name {
  font-size: 14px;
  font-weight: 600;
  color: #ff8c42;
}

.review-share-author .author-role,
.review-share-author .author-company {
  font-size: 12px;
  color: #a0a0a0;
}

.review-share-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 209, 199, 0.15);
  font-size: 12px;
  color: #7fd1c7;
}

.review-share-actions {
  display: flex;
  gap: 12px;
}

.review-share-actions .btn {
  flex: 1;
}
