/* ============================================================
   Állatnevelde – custom styles (gyerekbarát, színes)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* ---- Alap ---- */
body {
  font-family: 'Nunito', sans-serif;
  background-color: #f0faf8;
}

[data-bs-theme="dark"] body {
  background-color: #1a1f2e;
}

/* ---- Logo ---- */
.nav-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.home-logo {
  max-width: 100%;
  height: auto;
}

/* ---- Navbar ---- */
#main-nav {
  background: linear-gradient(135deg, #1976d2 0%, #26a69a 100%);
  box-shadow: 0 3px 12px rgba(25, 118, 210, 0.3);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

#main-nav .navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: 0.5px;
}

#main-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.3rem 0.75rem;
  transition: background 0.15s;
}

#main-nav .nav-link:hover {
  background: rgba(255,255,255,0.2);
  color: #fff !important;
}

/* Navbar balance badge */
#nav-balance {
  font-size: 0.95rem !important;
  font-weight: 700;
  background: linear-gradient(135deg, #1976d2, #26a69a) !important;
  color: #fff !important;
  border-radius: 1rem;
  padding: 0.3em 0.8em;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Navbar nickname link */
#nav-nickname {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
}

#nav-nickname:hover {
  color: #fff !important;
}

/* Theme toggle & logout */
#theme-toggle,
#logout-btn {
  border-color: rgba(255,255,255,0.6) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 1rem;
}

#theme-toggle:hover,
#logout-btn:hover {
  background: rgba(255,255,255,0.2) !important;
}

/* ---- Kártyák ---- */
.card {
  border: none;
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ---- Állat kártyák ---- */
.animal-card {
  cursor: pointer;
  border-radius: 1.2rem;
  transition: transform 0.18s, box-shadow 0.18s;
  border-top: 4px solid #1976d2;
}

.animal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(25,118,210,0.2);
}

img.animal-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.animal-card img.animal-thumb {
  height: 180px;
  border-radius: 1.1rem 1.1rem 0 0;
}

.animal-emoji-fallback {
  font-size: 5rem;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #bbdefb, #b2dfdb);
  border-radius: 1.1rem 1.1rem 0 0;
}

[data-bs-theme="dark"] .animal-emoji-fallback {
  background: linear-gradient(135deg, #0d2b5c, #0d3d2e);
}

/* ---- Elhunyt állat ---- */
.status-dead {
  opacity: 0.55;
  filter: grayscale(0.8);
  border-top-color: #aaa;
}

.dead-overlay {
  background: rgba(0,0,0,0.45);
  border-radius: 1.1rem 1.1rem 0 0;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.animal-img-wrapper {
  position: relative;
}

/* ---- Stat sávok ---- */
.stat-bar .progress {
  height: 11px;
  border-radius: 6px;
  background: var(--bs-secondary-bg);
}

.stat-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 90px;
}

.stat-bar-value {
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 34px;
  text-align: right;
}

/* ---- Gombok ---- */
.btn {
  border-radius: 0.8rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #1976d2, #26a69a);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1565c0, #00897b);
  border: none;
}

.btn-success {
  background: linear-gradient(135deg, #43d97f, #1db97a);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #2ec96e, #18a86e);
  border: none;
}

/* ---- Tárgy képek (bolt + raktár) ---- */
.item-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---- Bolt kártyák ---- */
.shop-item-card {
  border-radius: 1.2rem;
  transition: transform 0.15s, box-shadow 0.15s;
  border-top: 4px solid #26a69a;
}

.shop-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(38,166,154,0.2);
}

/* ---- Visszaszámláló ---- */
.countdown-display {
  font-size: 2.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 3px;
  color: #1976d2;
}

[data-bs-theme="dark"] .countdown-display {
  color: #64b5f6;
}

/* ---- Aktivitás panel ---- */
.activity-panel {
  background: linear-gradient(135deg, #e3f2fd, #e0f2f1);
  border-radius: 1rem;
  padding: 1.2rem;
}

[data-bs-theme="dark"] .activity-panel {
  background: linear-gradient(135deg, #0d2b5c, #0d3d30);
}

.activity-btn {
  border-radius: 1rem !important;
  font-weight: 700;
  border-width: 2px;
}

/* ---- Raktár élettartam sáv ---- */
.lifespan-bar .progress {
  height: 9px;
  border-radius: 6px;
}

/* ---- Toast (akadálymentes értesítések) ---- */
#toast-container {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 90%;
  max-width: 540px;
}

#toast-container .alert {
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  padding: 1rem 1.1rem;
}

/* ---- Oldalcímek ---- */
h3, h4, h5 {
  font-weight: 800;
}

/* ---- Profil dl ---- */
dt {
  font-weight: 700;
}

/* ---- Kiemelt (saját) sorok sötét módban – table-warning világos háttéren sötét szöveg ---- */
[data-bs-theme="dark"] .table tr.table-warning {
  --bs-table-color: #212529;
}

/* ---- Tranzakciótörténet táblázat fejléc ---- */
[data-bs-theme="dark"] .table thead.table-light > tr > th {
  background-color: #2a2f42;
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

/* ---- Nyitóoldal ---- */
.home-hero {
  background: linear-gradient(135deg, #e3f2fd 0%, #e0f2f1 100%);
  border-radius: 1.5rem;
}

[data-bs-theme="dark"] .home-hero {
  background: linear-gradient(135deg, #0d2b5c 0%, #0d3d30 100%);
}

.home-hero-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.home-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1976d2;
}

[data-bs-theme="dark"] .home-title {
  color: #64b5f6;
}

.home-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  max-width: 520px;
  margin: 0 auto;
}

.home-feature-card {
  border-radius: 1.2rem;
  transition: transform 0.15s, box-shadow 0.15s;
  border-top: 4px solid #1976d2;
}

.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(25,118,210,0.15);
}

.home-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* ---- Footer ---- */
#main-footer {
  margin-top: 3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.875rem;
}

.footer-copy {
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  background: #1877f2;
  color: #fff;
  transition: opacity 0.15s;
}

.footer-social-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.footer-social-btn--discord {
  background: #5865f2;
}
