/* ============================================================
   Forest Theme — earth tones, nature green, organic shapes
   Layout: sidebar-right (2-col)
   ============================================================ */

/* ---- Token overrides ---- */
:root {
  --color-primary:       #166534;
  --color-primary-hover: #14532d;
  --color-secondary:     #a16207;
  --color-accent:        #4ade80;
  --color-page-bg:       #fefce8;
  --color-surface-bg:    #f0fdf4;
  --color-text:          #14532d;
  --color-text-muted:    #365314;
  --color-border:        #bbf7d0;
  --color-header-bg:     #14532d;
  --color-footer-bg:     #14532d;
  --color-footer-text:   #dcfce7;
  --menu-width:          280px;
  --radius:              12px;
  --radius-sm:           6px;
}

/* ---- Body / Page ---- */
body {
  background-color: var(--color-page-bg);
  color: var(--color-text);
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo img {
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  box-shadow: 0 0 0 4px rgba(74,222,128,0.2);
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  margin-top: -2px;
}

/* ---- Header ---- */
.header {
  background: var(--color-header-bg);
  color: white;
  box-shadow: 0 2px 12px rgba(20,83,52,0.3);
}

/* ---- Navigation ---- */
.nav a,
.menu a {
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.menu a:hover,
.nav a.active,
.menu a.active {
  color: white;
  background: rgba(74,222,128,0.2);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #14532d 0%, #166534 40%, #15803d 70%, #16a34a 100%);
  color: white;
  padding: var(--space-16) 0 var(--space-20);
}

/* Wave bottom on hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--color-page-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Organic leaf decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74,222,128,0.15) 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #bbf7d0;
  border-radius: 100px;
  padding: var(--space-1) var(--space-4);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  backdrop-filter: blur(4px);
}

.hero-badge::before {
  content: '🌿';
  font-size: 1em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: white;
}

.hero h1 span {
  color: #86efac;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-7);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.hero-btn-primary {
  background: #4ade80;
  color: #14532d;
  box-shadow: 0 4px 16px rgba(74,222,128,0.4);
}

.hero-btn-primary:hover {
  background: #86efac;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,222,128,0.5);
}

.hero-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.hero-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* ---- Home Layout ---- */
.home-layout {
  padding: var(--space-8) 0;
}

/* ---- Content Cards / Panels ---- */
.home-panel__bg {
  background: white;
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(20,83,52,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-panel__bg:hover {
  box-shadow: 0 6px 20px rgba(20,83,52,0.1);
  transform: translateY(-2px);
}

.home-panel__header {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-border);
}

/* ---- Section Headers ---- */
.home-section__header {
  position: relative;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
}

.home-section__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 99px;
}

.home-section__header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.home-section__header p {
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  font-size: 0.9rem;
}

/* ---- Wave Divider ---- */
.home-wave {
  width: 100%;
  height: 50px;
  background: var(--color-surface-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  margin: 0;
}

/* ---- Section Backgrounds ---- */
.home-section__bg {
  background: var(--color-surface-bg);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

/* ---- Sidebar ---- */
.sidebar .home-panel__bg {
  border-left-color: var(--color-secondary);
}

.sidebar .home-panel__header {
  color: var(--color-secondary);
}

/* ---- View / Article Header ---- */
.view-header {
  border-left: 5px solid var(--color-primary);
  padding-left: var(--space-4);
  margin-bottom: var(--space-5);
}

.view-header h1,
.view-header h2 {
  color: var(--color-primary);
  font-weight: 800;
}

/* ---- Badges / Category ---- */
.badge,
.badge.category {
  background: #dcfce7;
  color: #166534;
  border-radius: 100px;
  padding: 2px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge.secondary {
  background: #fef3c7;
  color: #92400e;
}

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(20,83,52,0.1);
  transform: translateY(-3px);
}

.card .card-body {
  padding: var(--space-4);
}

.card .card-title {
  font-weight: 700;
  color: var(--color-primary);
}

.card .card-meta {
  color: var(--color-text-muted);
  font-size: 0.83rem;
}

/* ---- Buttons ---- */
.btn,
button[type="submit"] {
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary,
button[type="submit"] {
  background: var(--color-primary);
  color: white;
  border: none;
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(20,83,52,0.3);
}

/* ---- Pagination ---- */
.pagination a,
.pagination span {
  border-radius: var(--radius-sm);
}

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

/* ---- Forms ---- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border-radius: var(--radius-sm);
  border-color: var(--color-border);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22,101,52,0.15);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-10) + 24px);
}

.footer a {
  color: rgba(187,247,208,0.8);
  transition: color 0.2s;
}

.footer a:hover {
  color: #4ade80;
}

.footer-title {
  color: #86efac;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  color: rgba(187,247,208,0.6);
  font-size: 0.82rem;
  text-align: center;
  padding: var(--space-3);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb {
  background: #86efac;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: #4ade80; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-10) 0 var(--space-14);
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
