/* ============================================================
   FishLog — Main Stylesheet
   Fishing social network + Pokédex UI
   ============================================================ */

:root {
  --blue-dark:   #0a1628;
  --blue-mid:    #0f2044;
  --blue:        #1a3a6e;
  --blue-light:  #2563eb;
  --cyan:        #06b6d4;
  --cyan-light:  #67e8f9;
  --green:       #10b981;
  --red:         #ef4444;
  --orange:      #f97316;
  --yellow:      #fbbf24;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #374151;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.12);
  --shadow:      0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.18);
  --transition:  .2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
textarea, input, select, button { font: inherit; }
svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Layout ---- */
.main-content { flex: 1; padding-top: 64px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
}
.nav-brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 700; color: var(--white);
  text-decoration: none;
}
.brand-icon { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--gray-300); font-size: .875rem; font-weight: 500;
  text-decoration: none; transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }
.nav-link.active { color: var(--cyan); }
.nav-link.nav-cta { background: var(--blue-light); color: var(--white); margin: 0 .25rem; }
.nav-link.nav-cta:hover { background: #1d4ed8; }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.nav-logout { color: var(--gray-400); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-light); color: var(--white); }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-full { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 50%, #0c2b50 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1.5rem;
  position: relative; overflow: hidden;
  gap: 4rem; flex-wrap: wrap;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(6,182,212,.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(37,99,235,.2) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-badge {
  display: inline-block; padding: .35rem .9rem;
  background: rgba(6,182,212,.15); border: 1px solid rgba(6,182,212,.3);
  color: var(--cyan); border-radius: 100px; font-size: .8rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
  color: var(--white); line-height: 1.15; margin-bottom: 1.25rem;
}
.hero-title .highlight { color: var(--cyan); }
.hero-subtitle { color: var(--gray-300); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,.3); color: var(--white); }
.hero-actions .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--white); }
.hero-stat-label { font-size: .8rem; color: var(--gray-400); }

/* Hero Visual — mini Pokédex demo */
.hero-visual { position: relative; z-index: 1; }
.fish-card-demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 1.25rem;
  backdrop-filter: blur(8px);
}
.fish-entry {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: var(--transition);
}
.fish-entry.locked { opacity: .4; filter: grayscale(1); }
.fish-entry-num { font-size: .7rem; color: var(--gray-400); font-family: monospace; }
.fish-entry-img { font-size: 2rem; }
.fish-entry.locked .fish-entry-img { font-size: 1.5rem; color: var(--gray-500); }
.fish-entry-name { font-size: .8rem; font-weight: 600; color: var(--white); }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 5rem 1.5rem; background: var(--white); }
.section-title {
  text-align: center; font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--gray-800); margin-bottom: 3rem;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
.feature-card {
  padding: 2rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--gray-200); background: var(--gray-50);
  text-align: center; transition: var(--transition);
}
.feature-card:hover { border-color: var(--blue-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.auth-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: .35rem; }
.auth-sub { text-align: center; color: var(--gray-500); margin-bottom: 1.75rem; font-size: .875rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-switch { text-align: center; font-size: .875rem; color: var(--gray-500); margin-top: 1.25rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  padding: .65rem .9rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); background: var(--white);
  font-size: .9rem; transition: var(--transition); width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-group label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 500; }
.checkbox-group input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue-light); flex-shrink: 0; }

/* Photo Upload */
.photo-upload {
  border: 2px dashed var(--gray-200); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: var(--transition); position: relative;
}
.photo-upload:hover { border-color: var(--blue-light); background: rgba(37,99,235,.03); }
.photo-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--gray-400); }
.photo-placeholder span:first-child { font-size: 2rem; }
#photo-preview { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius-sm); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 1rem; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }

/* ============================================================
   FEED
   ============================================================ */
.feed-layout {
  max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem;
  display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start;
}
@media (max-width: 768px) {
  .feed-layout { grid-template-columns: 1fr; }
  .feed-sidebar { order: -1; }
}
.feed-main { display: flex; flex-direction: column; gap: 1.25rem; }

/* Catch Card */
.catch-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.catch-card:hover { box-shadow: var(--shadow); }
.catch-header { padding: 1rem 1.25rem; display: flex; align-items: center; }
.catch-author { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.catch-author:hover { text-decoration: none; }
.catch-author strong { font-size: .9rem; font-weight: 700; color: var(--gray-800); display: block; }
.catch-date { font-size: .75rem; color: var(--gray-400); }
.catch-photo img { width: 100%; max-height: 480px; object-fit: cover; }
.catch-body { padding: 1rem 1.25rem; }
.catch-species-badge {
  display: inline-block; padding: .3rem .8rem;
  background: rgba(37,99,235,.1); color: var(--blue-light);
  border-radius: 100px; font-size: .8rem; font-weight: 700; margin-bottom: .75rem;
}
.catch-meta-grid { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: .5rem; }
.catch-meta-item { display: flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--gray-600); }
.meta-icon { font-size: .9rem; }
.catch-notes { font-size: .875rem; color: var(--gray-600); line-height: 1.6; margin-top: .5rem; }
.catch-tag { display: inline-block; font-size: .75rem; padding: .2rem .6rem; border-radius: 100px; margin-top: .5rem; }
.tag-released { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.tag-kept     { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.catch-actions {
  padding: .75rem 1.25rem; border-top: 1px solid var(--gray-100);
  display: flex; gap: 1rem;
}
.action-btn {
  display: flex; align-items: center; gap: .4rem;
  background: none; border: none; cursor: pointer;
  color: var(--gray-500); font-size: .875rem; font-weight: 500; padding: .3rem .5rem;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.action-btn:hover { color: var(--gray-800); background: var(--gray-100); }
.action-btn.liked svg { fill: var(--red); stroke: var(--red); }
.action-btn.liked { color: var(--red); }

/* Comments */
.comments-section { border-top: 1px solid var(--gray-100); }
.comments-list { padding: .75rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.comment-item { display: flex; gap: .6rem; }
.comment-content { background: var(--gray-100); padding: .5rem .75rem; border-radius: var(--radius-sm); font-size: .85rem; flex: 1; }
.comment-content strong { font-size: .8rem; color: var(--blue-light); display: block; margin-bottom: .15rem; }
.comment-form {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-top: 1px solid var(--gray-100);
}
.comment-form input { flex: 1; }
.comment-form button {
  padding: .5rem .9rem; background: var(--blue-light); color: var(--white);
  border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: .8rem; font-weight: 600;
}
.comment-form button:hover { background: #1d4ed8; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
  padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.sidebar-title {
  font-size: .8rem; font-weight: 700; color: var(--gray-500);
  margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
.profile-mini { display: flex; align-items: center; gap: .75rem; }
.suggestion-item { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-size: .875rem; }
.suggestion-item a { flex: 1; font-weight: 600; color: var(--gray-800); text-decoration: none; }
.suggestion-item a:hover { color: var(--blue-light); }
.pokedex-progress { margin-bottom: .75rem; }
.progress-bar { height: 8px; background: var(--gray-200); border-radius: 100px; overflow: hidden; margin-bottom: .35rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue-light), var(--cyan)); border-radius: 100px; transition: width .5s ease; }
.pokedex-progress span { font-size: .8rem; color: var(--gray-500); }

/* ============================================================
   POKÉDEX PAGE
   ============================================================ */
.pokedex-page { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.pokedex-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.pokedex-title-group { display: flex; flex-direction: column; gap: .75rem; }
.pokedex-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700;
  color: var(--white); display: flex; align-items: center; gap: .75rem;
}
/* Pokéball icon */
.poke-ball-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 50%, var(--white) 50%);
  border: 3px solid var(--gray-800); position: relative; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.poke-ball-icon::before {
  content: ''; position: absolute;
  top: calc(50% - 2px); left: 0; right: 0; height: 3px;
  background: var(--gray-800);
}
.poke-ball-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gray-800);
  margin-top: 1px;
}
.pokedex-progress-bar { display: flex; align-items: center; gap: 1rem; }
.pokedex-progress-bar .progress-track { flex: 1; height: 10px; background: rgba(255,255,255,.15); border-radius: 100px; overflow: hidden; }
.pokedex-progress-bar .progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.progress-label { color: var(--cyan-light); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.pokedex-controls { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.search-bar { display: flex; gap: .5rem; flex: 1; min-width: 200px; }
.search-bar input {
  flex: 1; padding: .6rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: var(--white);
}
.search-bar input::placeholder { color: rgba(255,255,255,.4); }
.search-bar input:focus { outline: none; border-color: var(--cyan); }
.search-bar button { padding: .6rem .9rem; background: var(--cyan); color: var(--blue-dark); border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; }
.filter-tabs { display: flex; gap: .35rem; }
.filter-tab {
  padding: .45rem .9rem; border-radius: 100px; font-size: .8rem; font-weight: 600;
  text-decoration: none; color: rgba(255,255,255,.6); transition: var(--transition); border: 1px solid transparent;
}
.filter-tab:hover { color: var(--white); text-decoration: none; }
.filter-tab.active { background: rgba(255,255,255,.15); color: var(--white); border-color: rgba(255,255,255,.2); }

/* Pokédex Grid */
.pokedex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: .75rem;
}
.pokedex-entry {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 1rem .75rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  text-decoration: none; color: inherit; transition: var(--transition);
  position: relative; overflow: hidden; cursor: pointer;
}
.pokedex-entry:hover { border-color: var(--blue-light); transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.pokedex-entry.locked { background: var(--gray-100); }
.pokedex-entry.locked .entry-name { color: var(--gray-400); }
.pokedex-entry.protected { border-color: var(--orange); }
.pokedex-entry.protected::before { content: '⚠️'; position: absolute; top: 5px; right: 7px; font-size: .65rem; }
.entry-num { font-size: .68rem; color: var(--gray-400); font-family: monospace; align-self: flex-start; }
.entry-img { width: 85px; height: 65px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.entry-img img { width: 100%; height: 100%; object-fit: contain; }
.img-locked { filter: grayscale(1) brightness(.65); opacity: .5; }
.fish-emoji { font-size: 2.5rem; }
.lock-icon {
  font-size: 1.75rem; color: var(--gray-300); font-weight: 900;
  width: 48px; height: 48px; background: var(--gray-200); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.entry-info { text-align: center; width: 100%; }
.entry-name { font-size: .82rem; font-weight: 700; color: var(--gray-800); }
.entry-scientific {
  font-size: .67rem; color: var(--gray-400); font-style: italic; margin-top: .1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.entry-stats { display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; margin-top: .3rem; }
.entry-stats span { font-size: .67rem; background: rgba(37,99,235,.08); color: var(--blue-light); padding: .1rem .4rem; border-radius: 100px; }
.entry-protected { font-size: .65rem; color: var(--orange); font-weight: 700; margin-top: .2rem; }
.entry-check {
  position: absolute; top: 7px; right: 9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: var(--white); font-size: .7rem;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ============================================================
   SPECIES DETAIL
   ============================================================ */
.species-page { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--gray-500); font-size: .875rem; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--blue-light); }
.species-detail {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 0; background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); overflow: hidden; box-shadow: var(--shadow);
}
@media (max-width: 700px) { .species-detail { grid-template-columns: 1fr; } }
.species-card-left {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #0e2d5a 100%);
  padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.species-num { color: rgba(255,255,255,.35); font-family: monospace; font-size: .875rem; align-self: flex-start; }
.species-photo { width: 180px; height: 150px; display: flex; align-items: center; justify-content: center; }
.species-photo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 20px rgba(6,182,212,.4)); }
.species-locked-img {
  font-size: 4rem; color: rgba(255,255,255,.15);
  width: 120px; height: 120px; background: rgba(255,255,255,.04); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.species-badges { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.badge { padding: .25rem .7rem; border-radius: 100px; font-size: .75rem; font-weight: 700; }
.badge-fresh { background: rgba(6,182,212,.2); color: var(--cyan-light); }
.badge-salt  { background: rgba(37,99,235,.2); color: #93c5fd; }
.badge-protected { background: rgba(249,115,22,.2); color: #fdba74; }
.species-user-stats {
  width: 100%; display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem;
}
.user-stat-item { display: flex; justify-content: space-between; align-items: center; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.5); }
.stat-val { font-size: .85rem; font-weight: 700; color: var(--white); }
.species-info-right { padding: 2rem; }
.species-name { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--gray-800); margin-bottom: .25rem; }
.species-scientific { font-style: italic; color: var(--gray-400); margin-bottom: .25rem; font-size: .95rem; }
.species-family { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.species-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.sp-stat { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: .75rem; }
.sp-stat-label { font-size: .75rem; color: var(--gray-400); display: block; margin-bottom: .2rem; }
.sp-stat-val { font-weight: 700; font-size: .95rem; color: var(--gray-800); }
.species-description h3 { font-size: .875rem; font-weight: 700; margin-bottom: .5rem; color: var(--gray-700); }
.species-description p { font-size: .875rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.5rem; }
.species-catches { margin-top: 2rem; }
.species-catches h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; margin-bottom: 1rem; }
.catches-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.catch-mini-card { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--gray-200); }
.catch-mini-card img { width: 100%; height: 110px; object-fit: cover; }
.catch-mini-placeholder { height: 110px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); font-size: 2rem; }
.catch-mini-info { padding: .5rem; display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; color: var(--gray-600); }
.catch-mini-info a { font-weight: 700; color: var(--gray-800); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-page { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 2rem; }
.profile-header {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.profile-cover { height: 130px; background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); }
.profile-info { display: flex; align-items: flex-end; gap: 1rem; padding: 0 1.5rem 1.25rem; margin-top: -45px; flex-wrap: wrap; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; border: 4px solid var(--white); object-fit: cover; box-shadow: var(--shadow); }
.profile-details { flex: 1; min-width: 160px; }
.profile-username { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; }
.profile-location { font-size: .875rem; color: var(--gray-500); margin-top: .1rem; }
.profile-bio { font-size: .875rem; color: var(--gray-600); margin-top: .35rem; line-height: 1.6; }
.profile-meta { font-size: .75rem; color: var(--gray-400); margin-top: .35rem; }
.profile-actions { margin-left: auto; align-self: center; }
.profile-stats-bar { display: flex; border-top: 1px solid var(--gray-100); }
.profile-stat { flex: 1; text-align: center; padding: .9rem .5rem; border-right: 1px solid var(--gray-100); }
.profile-stat:last-child { border-right: none; }
.ps-val { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; }
.ps-label { font-size: .75rem; color: var(--gray-400); }
.profile-body { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 768px) { .profile-body { grid-template-columns: 1fr; } }
.top-species-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; margin-bottom: .6rem; }
.ts-name { flex: 1; font-weight: 600; }
.ts-count { color: var(--blue-light); font-weight: 700; font-size: .8rem; }
.ts-weight { color: var(--gray-400); font-size: .78rem; }
.tab-bar { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 1rem; }
.tab { padding: .65rem 1.25rem; font-size: .875rem; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -2px; text-decoration: none; transition: var(--transition); }
.tab.active { color: var(--blue-light); border-bottom-color: var(--blue-light); }
.tab:hover { color: var(--gray-800); text-decoration: none; }
.catches-grid-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (max-width: 500px) { .catches-grid-gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder { width: 100%; height: 100%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; opacity: 0; transition: opacity .2s; color: var(--white);
  font-size: .8rem; font-weight: 600; padding: .5rem; text-align: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.catch-footer { padding: .6rem 1.25rem; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.catch-likes { font-size: .875rem; color: var(--gray-500); }

/* ============================================================
   LOG FORM
   ============================================================ */
.log-page { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }
.log-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-sections { display: flex; flex-direction: column; gap: 1.25rem; }
.form-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; }
.section-label { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .4rem; }
.form-section .form-group { margin-bottom: .9rem; }
.form-submit { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 1.25rem; }

/* ============================================================
   AVATARS & UTILS
   ============================================================ */
.avatar-xs { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-md { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.text-muted { color: var(--gray-400); font-size: .875rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-dark); color: rgba(255,255,255,.4);
  padding: 1.25rem 1.5rem; text-align: center; font-size: .8rem;
}
.footer-inner { display: flex; align-items: center; justify-content: center; gap: .5rem; }

/* ============================================================
   SETTINGS PAGE
   ============================================================ */
.settings-page { max-width: 700px; margin: 0 auto; padding: 2rem 1.5rem; }
.settings-form { display: flex; flex-direction: column; gap: 1.5rem; }
.settings-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.avatar-upload-area { display: flex; align-items: center; gap: 1.5rem; }
.avatar-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gray-200); }
.avatar-upload-btn { display: flex; flex-direction: column; gap: .4rem; }

/* ============================================================
   WEATHER CARD
   ============================================================ */
.gps-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.gps-status { font-size: .8rem; color: var(--gray-500); }

.weather-card {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0f2044, #0e3a6a);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  border: 1px solid rgba(6,182,212,.25);
}
.weather-auto {
  display: flex; align-items: center; gap: 1rem;
}
.weather-big-icon { font-size: 2.5rem; flex-shrink: 0; }
.weather-auto-data { flex: 1; }
.weather-city { font-size: .8rem; color: var(--cyan-light); font-weight: 600; margin-bottom: .15rem; }
.weather-main { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.weather-sub  { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .2rem; letter-spacing: .02em; }
.weather-card .btn-outline { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.7); padding: .35rem .65rem; }
.weather-card .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { flex-direction: column; padding: 2rem 1rem; }
  .hero-visual { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .species-stats-grid { grid-template-columns: 1fr; }
  .pokedex-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
