/* ===== Kennel High Hopes - Naturtema ===== */

:root {
  --primary: #3A5F0B;
  --primary-light: #5A8A1B;
  --primary-dark: #2A4508;
  --secondary: #6B4226;
  --secondary-light: #8B6246;
  --accent: #C8952E;
  --accent-light: #D4AB5A;
  --bg: #F7F3EC;
  --bg-dark: #EDE7DB;
  --text: #2C1810;
  --text-light: #5A4A3A;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(44, 24, 16, 0.1);
  --shadow-lg: 0 4px 20px rgba(44, 24, 16, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --sidebar-width: 240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--secondary);
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Landing Page ===== */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(58, 95, 11, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 149, 46, 0.06) 0%, transparent 50%),
    linear-gradient(170deg, #FAF7F0 0%, var(--bg) 30%, var(--bg-dark) 70%, #e4dace 100%);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.landing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.landing-logo {
  margin-bottom: 2.5rem;
}

.logo-subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--secondary);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: none;
  margin-bottom: 0.75rem;
}

.logo-emblem {
  width: 320px;
  margin: 0 auto;
}

.logo-emblem img {
  width: 100%;
  height: auto;
  display: block;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.logo-title h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--secondary);
  letter-spacing: 5px;
  margin: 0;
  white-space: nowrap;
}

.logo-line {
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.landing-cards {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.landing-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44, 24, 16, 0.1);
  padding: 2.5rem 2rem 2rem;
  width: 340px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  border: 2px solid rgba(200, 149, 46, 0.15);
  position: relative;
  overflow: hidden;
}

.landing-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.4s ease;
}

.landing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(44, 24, 16, 0.18);
  border-color: var(--accent);
  color: var(--text);
}

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

.card-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-dark);
  box-shadow: 0 2px 12px rgba(44, 24, 16, 0.12);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.landing-card:nth-child(1) .card-photo img {
  object-position: 30% 15%;
}

.landing-card:nth-child(2) .card-photo img {
  object-position: 35% 10%;
}

.landing-card:hover .card-photo {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(200, 149, 46, 0.25);
  transform: scale(1.03);
}

.landing-card:hover .card-photo img {
  transform: scale(1.08);
}

.landing-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.landing-card .card-breeds {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.landing-card .card-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 24px;
  transition: all 0.3s ease;
  font-family: sans-serif;
  letter-spacing: 0.3px;
}

.landing-card:hover .card-cta {
  background: var(--primary);
  color: var(--white);
}

.landing-footer {
  margin-top: 3.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== Site Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--secondary);
}

.header-brand h1 {
  font-size: 1.3rem;
  margin: 0;
}

.header-logo {
  height: 56px;
  width: auto;
}

.header-brand .section-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav a {
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  background: var(--primary);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== Layout with sidebar ===== */
.page-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  gap: 2rem;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-nav {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.sidebar-nav a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  border-left: 3px solid transparent;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  background: var(--bg);
  border-left-color: var(--accent);
  color: var(--primary);
}

.sidebar-nav a.active {
  background: var(--bg);
  border-left-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-nav .nav-section-title {
  padding: 0.75rem 1.25rem 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* ===== Content Cards ===== */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.content-card h1:first-child,
.content-card h2:first-child {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-dark);
  margin-bottom: 1rem;
}

.content-card p { margin-bottom: 1rem; }
.content-card p:last-child { margin-bottom: 0; }

/* ===== News/Posts ===== */
.post-list { display: grid; gap: 1.5rem; }

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

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

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-body { padding: 1.5rem; }

.post-card-body h3 { color: var(--secondary); margin-bottom: 0.5rem; }

.post-card-body .post-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.post-card-body .post-excerpt { color: var(--text-light); }

/* ===== Animal Cards ===== */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.animal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.animal-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-dark);
}

.animal-card-placeholder {
  width: 100%;
  height: 220px;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.animal-card-placeholder svg {
  width: 80px;
  height: 80px;
  fill: var(--secondary);
  opacity: 0.3;
}

.animal-card-body { padding: 1.25rem; }

.animal-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.animal-card-body .breed {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.animal-card-body .details {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.animal-card-body .description {
  font-size: 0.9rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active { background: #e8f5e9; color: #2e7d32; }
.status-retired { background: #fff3e0; color: #e65100; }
.status-sold { background: #e3f2fd; color: #1565c0; }
.status-puppy, .status-foal { background: #fce4ec; color: #c62828; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition);
  position: relative;
}

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

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 1rem 0.75rem 0.5rem;
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ===== Guestbook ===== */
.guestbook-entry {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
}

.guestbook-entry .entry-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.guestbook-entry .entry-name { font-weight: 600; color: var(--secondary); }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--bg-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

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

select.form-control { cursor: pointer; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}

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

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

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-light); color: var(--white); }

.btn-danger { background: #c62828; color: var(--white); }
.btn-danger:hover { background: #e53935; color: var(--white); }

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

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }

.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ===== Flash Messages ===== */
.flash {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.flash-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.flash-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ===== Admin ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: var(--secondary);
  color: var(--white);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 50;
}

.admin-sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-brand h2 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0;
}

.admin-sidebar-brand small {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}

.admin-nav { padding: 1rem 0; }

.admin-nav .nav-section {
  padding: 0.5rem 1.25rem 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.admin-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.admin-nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-left: 3px solid var(--accent);
}

.admin-main {
  flex: 1;
  margin-left: 250px;
  padding: 2rem;
  background: var(--bg);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-header h1 {
  font-size: 1.5rem;
  color: var(--text);
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th {
  background: var(--bg-dark);
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  font-family: sans-serif;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--bg-dark);
  font-size: 0.9rem;
}

.admin-table tr:hover td { background: var(--bg); }

.admin-table .thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.quick-action-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}

.quick-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.quick-action-card .action-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Image Upload Zone */
.upload-zone {
  border: 2px dashed var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: #f0f7e8;
}

.upload-zone p { color: var(--text-light); margin-bottom: 0.5rem; }

.image-preview {
  max-width: 300px;
  margin-top: 1rem;
  border-radius: var(--radius);
}

/* Gallery Admin Grid */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-admin-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-admin-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.gallery-admin-item .actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
}

.gallery-admin-item .actions button {
  background: rgba(0,0,0,0.6);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Login Page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  padding: 2rem;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h1 {
  margin-bottom: 0.25rem;
}

.login-card .login-subtitle {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Page Content (from WYSIWYG) */
.page-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.page-content h2 { margin-top: 1.5rem; }
.page-content ul, .page-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.page-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .logo-emblem { width: 250px; }

  .landing-card {
    width: 100%;
    max-width: 340px;
    padding: 2rem 1.5rem;
  }

  .card-icon { width: 120px; height: 100px; }

  .menu-toggle { display: block; }

  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--bg-dark);
  }

  .header-nav.open { display: flex; }
  .header-nav a { padding: 0.75rem 1rem; }

  .page-layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    order: -1;
  }

  .sidebar-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: var(--radius);
  }

  .sidebar-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 1rem;
    flex-shrink: 0;
  }

  .sidebar-nav a.active {
    border-left: none;
    border-bottom-color: var(--primary);
  }

  .sidebar-nav .nav-section-title { display: none; }

  .animal-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }

  /* Admin responsive */
  .admin-sidebar {
    position: fixed;
    left: -250px;
    transition: left var(--transition);
  }

  .admin-sidebar.open { left: 0; }

  .admin-main { margin-left: 0; }

  .admin-menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 60;
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.2rem;
  }

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

@media (min-width: 769px) {
  .admin-menu-toggle { display: none; }
}

/* ===== WYSIWYG Editor Container ===== */
.editor-container {
  border: 2px solid var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.editor-container .ql-toolbar {
  background: var(--bg);
  border: none;
  border-bottom: 2px solid var(--bg-dark);
}

.editor-container .ql-container {
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 200px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}

.pagination a, .pagination span {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.pagination a {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.pagination a:hover { background: var(--primary); color: var(--white); }
.pagination .current {
  background: var(--primary);
  color: var(--white);
}

/* ===== Litter Cards ===== */
.litter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.litter-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-dark);
}

.litter-card-header h2 {
  margin: 0;
}

.litter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.litter-meta span {
  background: var(--bg);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
}

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

/* Litter Status Badges */
.litter-status-planned { background: #e3f2fd; color: #1565c0; }
.litter-status-born { background: #e8f5e9; color: #2e7d32; }
.litter-status-available { background: #fff8e1; color: #f57f17; }
.litter-status-sold { background: #f5f5f5; color: #757575; }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
}

.empty-state p { font-size: 1.1rem; margin-bottom: 1rem; }
