/*
Theme Name: Pawprints Blog – Birdgarden Forest
Template: pawprints-blog
Author: Il Faro d'Argento APS
Author URI: https://www.webradiofaro.it
Description: Tema foresta scura per Birdgarden – anteprime foto/video + animazioni natura (foglie, alberi, uccellini)
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: birdgarden-forest
Tags: forest, nature, birds, blog, photography
*/

@import url("../pawprints-blog/style.css");

/* ═══════════════════════════════════════════
   1. PALETTE FORESTA SCURA
   ═══════════════════════════════════════════ */
:root {
  --forest-900: #0d1b0e;
  --forest-800: #1a2e1a;
  --forest-700: #2d4a2e;
  --forest-600: #3d6b3e;
  --forest-500: #4a8c4b;
  --forest-400: #6aad6b;
  --forest-300: #8fc98f;
  --forest-200: #b5ddb5;
  --forest-100: #d4edd4;
  --forest-50:  #eef8ee;

  --bark-700: #3e2723;
  --bark-500: #5d4037;
  --bark-300: #8d6e63;

  --moss: #4a6741;
  --moss-light: #6b8f5e;
  --amber: #d4a03c;
  --cream: #faf5eb;
  --text-light: #e8f0e8;
  --text-dark: #1a1a1a;

  --shadow-forest: 0 4px 20px rgba(13, 27, 14, 0.25);
  --radius-organic: 14px 6px 14px 6px;
}

/* ═══════════════════════════════════════════
   2. BASE & TIPOGRAFIA
   ═══════════════════════════════════════════ */
body {
  background-color: var(--forest-50) !important;
  color: var(--text-dark);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--forest-600);
  transition: color 0.3s ease;
}
a:hover { color: var(--forest-400); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest-800);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════
   3. HEADER – FORESTA SCURA
   ═══════════════════════════════════════════ */
.site-header,
.pawprints-blog-header,
#masthead,
#header {
  background: linear-gradient(160deg,
    var(--forest-900) 0%,
    var(--forest-800) 40%,
    var(--forest-700) 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  min-height: 70px;
  z-index: 100;
}

/* Texture rami/foglie sottile */
.site-header::before,
.pawprints-blog-header::before,
#masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/forest-texture.svg') repeat;
  background-size: 200px 200px;
  opacity: 0.06;
  pointer-events: none;
}

/* Ramo decorativo sotto header */
.site-header::after,
.pawprints-blog-header::after,
#masthead::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 24px;
  background: url('img/branch-decoration.svg') repeat-x bottom center;
  background-size: 400px 24px;
  opacity: 0.7;
  pointer-events: none;
}

.site-title,
.site-branding .site-title {
  color: var(--text-light) !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.site-description,
.tagline,
.site-branding .site-description {
  color: var(--forest-200) !important;
  font-style: italic;
  font-size: 0.9rem;
}

/* Logo (se presente) */
.header-logo img,
.custom-logo {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* ═══════════════════════════════════════════
   4. NAVIGAZIONE
   ═══════════════════════════════════════════ */
.main-navigation a,
.nav-menu a,
.menu-toggle,
#primary-menu a {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}
.main-navigation a:hover,
.nav-menu a:hover,
#primary-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--forest-200) !important;
}

/* ═══════════════════════════════════════════
   5. HERO SECTION
   ═══════════════════════════════════════════ */
.birdgarden-hero {
  position: relative;
  min-height: 320px;
  max-height: 480px;
  background:
    linear-gradient(180deg,
      rgba(13, 27, 14, 0.75) 0%,
      rgba(26, 46, 26, 0.55) 50%,
      rgba(45, 74, 46, 0.35) 100%),
    url('img/hero-forest.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.birdgarden-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3rem;
  max-width: 720px;
}

.birdgarden-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.birdgarden-hero p {
  font-size: 1.15rem;
  color: var(--forest-100);
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  line-height: 1.6;
}

/* Silhouette alberi in hero */
.hero-trees {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: url('img/tree-silhouette.svg') bottom center / 120% 100% no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

/* Uccellino posato in hero */
.hero-bird {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 50px;
  height: 50px;
  background: url('img/bird-perched.svg') no-repeat center;
  animation: birdBob 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes birdBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}

/* ═══════════════════════════════════════════
   6. CONTENT AREA & POST CARDS
   ═══════════════════════════════════════════ */
.site-content,
.content-area,
#primary,
#content,
.blog-grid,
.post-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Card anteprima – bordo organico */
.post-thumbnail,
.featured-image,
.entry-thumbnail,
.blog-item .featured-img,
article .featured-image {
  border-radius: var(--radius-organic) !important;
  overflow: hidden;
  box-shadow: var(--shadow-forest);
  border: 1px solid rgba(74, 109, 65, 0.12);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
  position: relative;
  display: block;
}

/* Bordo luminoso su hover */
.post-thumbnail::after,
.featured-image::after,
.entry-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-organic);
  border: 2px solid rgba(106, 173, 107, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.post-thumbnail:hover,
.featured-image:hover,
.entry-thumbnail:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 12px 35px rgba(13, 27, 14, 0.35);
}

.post-thumbnail:hover::after,
.featured-image:hover::after,
.entry-thumbnail:hover::after {
  opacity: 1;
}

/* Immagine dentro la card */
.post-thumbnail img,
.featured-image img,
.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
.post-thumbnail:hover img,
.featured-image:hover img {
  transform: scale(1.04);
}

/* Titolo post */
.entry-title,
.post-title,
.blog-item h2,
.blog-item h3,
article h2, article h3 {
  color: var(--forest-800) !important;
  font-weight: 600;
  margin-top: 0.8rem;
}
.entry-title a,
.post-title a {
  color: var(--forest-800);
  text-decoration: none;
  transition: color 0.3s;
}
.entry-title a:hover,
.post-title a:hover {
  color: var(--forest-500);
}

/* Meta (data, categoria) */
.entry-meta,
.post-date,
.blog-item .meta,
.post-meta {
  color: var(--moss);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Badge rilevamento uccello */
.bird-detection-badge,
.bird-species-tag {
  display: inline-block;
  background: var(--forest-700);
  color: var(--forest-100);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0.3rem 0.2rem;
}

/* Escerpt / testo anteprima */
.entry-summary,
.excerpt,
.blog-item .excerpt {
  color: #4a4a4a;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   7. SIDEBAR
   ═══════════════════════════════════════════ */
.widget-area,
#secondary,
.sidebar {
  background: var(--forest-50);
  border-left: 3px solid var(--forest-200);
  padding-left: 1.5rem;
}

.widget-title,
.widget .widget-title,
.widget h4 {
  color: var(--forest-700);
  font-size: 1rem;
  border-bottom: 2px solid var(--forest-200);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   8. FOOTER – BOSCO
   ═══════════════════════════════════════════ */
.site-footer,
#colophon,
.pawprints-blog-footer,
#footer {
  background: linear-gradient(180deg,
    var(--forest-800) 0%,
    var(--forest-900) 100%) !important;
  color: var(--forest-200);
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 2rem;
}

/* Linea di alberi in cima al footer */
.site-footer::before,
#colophon::before,
.pawprints-blog-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url('img/tree-silhouette.svg') top center / cover no-repeat;
  opacity: 0.15;
  transform: scaleY(-1);
  pointer-events: none;
}

.site-footer a {
  color: var(--forest-300);
}
.site-footer a:hover {
  color: var(--amber);
}

.site-footer h4,
.site-footer .widget-title,
#colophon h4 {
  color: var(--cream);
  font-size: 1rem;
  border-bottom: 1px solid rgba(106,173,107,0.2);
  padding-bottom: 0.5rem;
}

.copyright,
.site-info {
  color: var(--forest-400);
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════════
   9. BOTTONI & CTA
   ═══════════════════════════════════════════ */
.wp-block-button .wp-block-button__link,
.button, .btn, .read-more,
.more-link, .entry-summary a.more {
  background: var(--forest-600) !important;
  color: var(--cream) !important;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  font-family: 'Lora', serif;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  display: inline-block;
  text-decoration: none;
}
.wp-block-button .wp-block-button__link:hover,
.button:hover, .btn:hover, .read-more:hover,
.more-link:hover {
  background: var(--forest-500) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 74, 46, 0.3);
}

/* ═══════════════════════════════════════════
   10. PAGINATION
   ═══════════════════════════════════════════ */
.pagination,
.post-navigation,
.nav-links,
.wp-block-post-navigation {
  color: var(--forest-700);
}
.pagination .page-numbers,
.pagination a,
.nav-links .page-numbers {
  background: var(--forest-100);
  color: var(--forest-800);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: background 0.3s;
}
.pagination .current,
.pagination a:hover,
.nav-links .page-numbers.current {
  background: var(--forest-600);
  color: var(--cream);
}

/* ═══════════════════════════════════════════
   11. FORM & INPUT
   ═══════════════════════════════════════════ */
input[type="text"], input[type="email"], input[type="search"],
textarea, select {
  border: 2px solid var(--forest-200);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-family: 'Lora', serif;
  background: #fff;
  transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(74, 140, 75, 0.15);
}

/* ═══════════════════════════════════════════
   12. VIDEO EMBED
   ═══════════════════════════════════════════ */
.embed-video,
.video-container,
.birdgarden-video {
  border-radius: var(--radius-organic);
  overflow: hidden;
  box-shadow: var(--shadow-forest);
}

/* ═══════════════════════════════════════════
   13. RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .birdgarden-hero {
    min-height: 240px;
    max-height: 350px;
  }
  .birdgarden-hero .hero-content {
    padding: 1.5rem;
  }
  .birdgarden-hero h1 {
    font-size: 1.6rem;
  }
  .birdgarden-hero p {
    font-size: 0.95rem;
  }
  .hero-bird {
    width: 35px;
    height: 35px;
    top: 12%;
    right: 8%;
  }
  .site-content, .content-area, #primary {
    padding: 1rem 0.8rem;
  }
  .widget-area, #secondary, .sidebar {
    border-left: none;
    border-top: 3px solid var(--forest-200);
    padding-left: 0;
    padding-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .birdgarden-hero {
    min-height: 200px;
  }
  .hero-trees {
    height: 80px;
  }
}

/* ═══════════════════════════════════════════
   14. ACCESSIBILITÀ
   ═══════════════════════════════════════════ */
@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;
  }
  .bg-leaf, .bg-bird-fly {
    display: none !important;
  }
}

/* Focus visible per accessibilità */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
