/**
 * SpaceHey Layouts - User Styles
 * Copyright 2025 Rich Gannon <rich@richgannon.net>
 * 
 * User-facing stylesheet for index.php and layout.php
 * Enhanced version with logo support and pink header theme
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {
  /* Colors - Pink Theme */
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111111;
  --text-muted: #666666;
  --border: #e6e8ef;
  --border-hover: #cbd2dc;
  --primary: #ff69b4; /* Hot pink */
  --primary-hover: #ff1493; /* Deep pink */
  --primary-light: #ffe4f2;
  --header-bg: #ffebf5; /* Light pink background for header */
  --header-border: #ffd6ea;
  --danger: #dd2244;
  --danger-hover: #bb1d39;
  --success: #22bb44;
  --warning: #ff9933;
  --accent: #ff85c0; /* Soft pink accent */
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(255, 105, 180, 0.1);
  --shadow-md: 0 2px 8px rgba(255, 105, 180, 0.12);
  --shadow-lg: 0 4px 16px rgba(255, 105, 180, 0.15);
  --shadow-pink: 0 4px 20px rgba(255, 105, 180, 0.2);
  
  /* Spacing */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
               Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { 
  font-size: 32px; 
  letter-spacing: -0.02em;
}

h2 { 
  font-size: 24px; 
  letter-spacing: -0.01em;
}

h3 { 
  font-size: 20px; 
}

h4 { 
  font-size: 16px; 
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

p {
  margin: 0 0 16px;
}

strong {
  font-weight: 600;
}

code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro',
               Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--container-width);
  margin: 24px auto;
  padding: 0 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive grids */
@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   NAVIGATION - Enhanced with Logo & Pink Theme
   ============================================================ */

.admin-nav {
  background: linear-gradient(135deg, var(--header-bg) 0%, #fff5fb 100%);
  border-bottom: 2px solid var(--header-border);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.admin-nav .wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo support */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* If using logo as background image */
.logo-bg {
  width: 44px;
  height: 44px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.logo-bg:hover {
  transform: scale(1.05);
}

.brand {
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.brand:hover {
  color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Brand with emoji/icon */
.brand-icon {
  font-size: 28px;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #555;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary);
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  background: rgba(255, 105, 180, 0.08);
  border-color: var(--primary-light);
  color: var(--primary);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  background: var(--primary-light);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.right-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================================
   BUTTONS - Enhanced with Pink Theme
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: #333;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

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

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff85c0 100%);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  border-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
  transform: translateY(-2px);
}

.btn.danger {
  background: #fff;
  color: var(--danger);
  border-color: var(--danger);
}

.btn.danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger-hover);
}

.btn.disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-group {
  display: inline-flex;
  gap: 8px;
}

/* ============================================================
   FORMS
   ============================================================ */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form .full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .form {
    grid-template-columns: 1fr;
  }
}

.label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: var(--card);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s ease;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--border-hover);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.textarea {
  min-height: 280px;
  resize: vertical;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro',
               Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.input[type="file"] {
  padding: 9px 12px;
}

.input::placeholder,
.textarea::placeholder {
  color: #999;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid;
}

.alert.ok {
  background: #eaffef;
  color: #165a2e;
  border-color: #9be2b0;
}

.alert.err {
  background: #ffe9ea;
  color: #8f1d2e;
  border-color: #ffc6cd;
}

/* ============================================================
   CHIPS & BADGES
   ============================================================ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.meta {
  color: var(--text-muted);
  font-size: 13px;
}

.grp {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   TABLE
   ============================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  background: #fafbff;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background: #fafbfc;
}

/* ============================================================
   IMAGES & THUMBNAILS
   ============================================================ */

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

.thumb-sm {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: block;
}

.thumb-md {
  width: 160px;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}

.thumb-lg {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}

/* ============================================================
   GALLERY (INDEX PAGE) - Enhanced Design
   ============================================================ */

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

.gallery-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pink);
  border-color: var(--primary);
}

.gallery-card:hover::before {
  opacity: 1;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-body {
  padding: 14px;
}

.gallery-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.gallery-title strong {
  flex: 1;
  font-size: 15px;
  color: var(--text);
}

.gallery-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.gallery-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.gallery-stat:hover {
  color: var(--primary);
}

.gallery-categories {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
  font-style: italic;
}

.gallery-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f9fafb;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.color-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.05);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   LAYOUT PAGE SPECIFIC STYLES
   ============================================================ */

.layout-preview {
  max-width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
}

.layout-preview:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-pink);
  transform: scale(1.02);
}

.code-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.code-box {
  width: 100%;
  min-height: 400px;
  resize: vertical;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fafbfc;
  color: var(--text);
  line-height: 1.6;
  transition: border-color 0.2s ease;
}

.code-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.copy-feedback {
  display: inline-block;
  margin-left: 10px;
  color: var(--success);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-feedback.show {
  opacity: 1;
}

/* Lightbox for image preview */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  cursor: pointer;
  padding: 20px;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 60px rgba(255, 105, 180, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 36px;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 105, 180, 0.8);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.lightbox-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: 12px;
}

/* ============================================================
   PERFORMANCE FOOTER
   ============================================================ */

.perf-footer {
  margin-top: 40px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f9fafb 0%, var(--primary-light) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.perf-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.perf-label {
  font-weight: 600;
}

.perf-value {
  color: var(--primary);
  font-weight: 500;
}

/* ============================================================
   HERO SECTION (Optional for homepage)
   ============================================================ */
   
   /* Dropdown menu styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.15);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s ease;
  font-size: 14px;
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.dropdown-menu a:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.dropdown-menu a:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-menu a::before {
  content: '→';
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropdown-menu a:hover::before {
  opacity: 1;
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    display: none;
    margin-top: 4px;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    padding-left: 8px;
    transform: none;
  }
  
  .nav-dropdown.mobile-open .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .dropdown-menu a:hover {
    transform: none;
  }
  
  .dropdown-menu a::before {
    content: '•';
    margin-right: 8px;
    opacity: 1;
  }
}

.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 32px;
  border: 2px solid var(--header-border);
  box-shadow: var(--shadow-pink);
}

.hero h1 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

:root {
  --top-banner-border-width: 3px;           /* Thickness: 1-8px */
  --top-banner-border-color: #ff69b4;       /* Any color */
  --top-banner-hover-border-color: #ff1493; /* Hover color */
  --top-banner-hover-scale: 1.02;           /* Zoom: 1.00-1.05 */
  --top-banner-max-width: 728px;            /* Width */
  --top-banner-transition-speed: 0.3s;      /* Speed */
  
    /* BOTTOM BANNER */
  --bottom-banner-border-width: 3px;
  --bottom-banner-border-color: #9D4EDD;
  --bottom-banner-hover-border-color: #6600cc;
}



/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --container-width: 100%;
    --nav-height: auto;
  }

  .container {
    padding: 0 16px;
    margin: 16px auto;
  }
  
  .card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .admin-nav .wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 12px;
  }
  
  .logo-container {
    justify-content: center;
  }
  
  .nav-links {
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .right-links {
    order: 2;
    justify-content: center;
  }
  
  .table {
    font-size: 13px;
  }
  
  .table th,
  .table td {
    padding: 10px;
  }
  
  h1 {
    font-size: 26px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  
  .hero {
    padding: 32px 20px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }
  
  .brand {
    font-size: 18px;
  }
  
  .perf-footer {
    font-size: 11px;
    gap: 12px;
    flex-direction: column;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  border-radius: var(--radius-sm);
}

/* Improve contrast for accessibility */
@media (prefers-contrast: high) {
  :root {
    --border: #999;
    --text-muted: #444;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  .admin-nav,
  .btn,
  .grp,
  .perf-footer,
  .hero {
    display: none !important;
  }
  
  .card {
    border: 1px solid #ddd;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  body {
    background: white;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.card {
  animation: fadeIn 0.3s ease-out;
}

.gallery-card {
  animation: fadeIn 0.4s ease-out;
}

/* Stagger animation for gallery items */
.gallery-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-card:nth-child(5) { animation-delay: 0.25s; }
.gallery-card:nth-child(6) { animation-delay: 0.3s; }
.gallery-card:nth-child(7) { animation-delay: 0.35s; }
.gallery-card:nth-child(8) { animation-delay: 0.4s; }

/* Logo pulse animation on page load */
.logo,
.logo-bg {
  animation: pulse 2s ease-in-out;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

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

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }