/* ============================================
   ASOCIAȚIA ECVESTRĂ NUCI 125
   Stil principal - Mobile-first, responsive
   ============================================ */

/* --- VARIABILE --- */
:root {
  /* Fundaluri – luminoase, calde */
  --color-bg: #fff9f0;        /* crem-portocaliu deschis, cald */
  --color-white: #ffffff;

  /* Text – negru cărbune pentru contrast puternic */
  --color-text: #1a1a1a;       /* negru-cărbune */
  --color-text-light: #5a4a3a; /* maro cald, lizibil */

  /* Accent principal – roib INTENS (culoarea Gidran în galop) */
  --color-accent: #d45113;     /* roib-portocaliu intens, viu */
  --color-accent-light: #f07a3a; /* roib-portocaliu deschis */
  --color-accent-dark: #a63a0a;  /* roib închis */

  /* Accent secundar – mov violet VIBRANT (culoarea oficială a asociației) */
  --color-purple: #8b5cf6;     /* mov-violet vibrant */
  --color-purple-light: #b794f4; /* mov lavandă */
  --color-purple-dark: #6a0dad;  /* mov închis */

  /* Verde iarbă de primăvară – fresh, viu */
  --color-green: #4caf50;      /* verde fresh */
  --color-green-light: #81c784; /* verde deschis */

  /* Borduri și separatoare */
  --color-border: #e8d5c0;     /* maro-crem cald */
  --color-border-light: #f5ede4; /* crem deschis */

  /* Footer */
  --color-footer-bg: #2c1810;   /* maro închis, cald */
  --color-footer-text: #d4c4b0; /* crem deschis */

  /* Fonturi */
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;

  /* Dimensiuni */
  --max-width: 1100px;
  --spacing: 1.5rem;
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- NAVIGATION --- */
.site-header {
  background: #faf5ef;
  border-bottom: 2px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.logo-title:hover {
  color: var(--color-accent-light);
}

.logo-subtitle {
  display: block;
  font-size: 0.65rem;
  color: var(--color-text-light);
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: 0.3s;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-accent);
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-menu.active {
  display: block;
}

.nav-menu ul {
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.nav-menu li a {
  display: block;
  padding: 0.6rem 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
}

.nav-menu li:last-child a {
  border-bottom: none;
}

.nav-menu li a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #eb5b18 0%, #f1b699 40%, #5012e0 100%);
  color: var(--color-white);
  padding: 3rem 1rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/hero-placeholder.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-purple);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.hero .btn {
  background: var(--color-white);
  color: var(--color-purple-dark);
}

.hero .btn:hover {
  background: var(--color-purple);
  color: var(--color-white);
}

/* --- SECTIONS GÉNÉRIQUES --- */
.section {
  padding: 3rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* --- CARDS (cai, articole) --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e8e0d8;
}

.card-image-placeholder {
  width: 100%;
  height: 220px;
  background: #e8e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-style: italic;
  font-size: 0.9rem;
}

.card-body {
  padding: 1.2rem;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.card-body .meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.card-links {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.card-links a {
  font-size: 0.85rem;
  color: var(--color-accent);
}

/* --- GALERIE CAI (prima pagină) --- */
.horse-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.horse-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background: var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.horse-gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(212, 81, 19, 0.25);
}

.horse-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.horse-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-border);
  color: var(--color-text-light);
  font-style: italic;
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  .horse-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .horse-gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --- PAGINA INTERNĂ (rase, sport, etc.) --- */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  color: var(--color-accent);
}

.page-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
  line-height: 1.8;
}

.page-content li {
  margin-bottom: 0.3rem;
}

.page-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: #f5f0ea;
  font-style: italic;
  color: var(--color-text-light);
}

.page-content .info-box {
  background: #f5f0ea;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.page-content .info-box h3 {
  margin-top: 0;
  color: var(--color-accent);
}

/* --- FORMULAR CONTACT --- */
.contact-form {
  max-width: 600px;
  margin: 2rem 0;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  padding: 0.8rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--color-accent-light);
}

/* --- SOCIAL LINKS --- */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* --- RESURSE / LINK-URI --- */
.resource-list {
  list-style: none;
  margin: 1rem 0;
}

.resource-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  font-weight: bold;
}

.resource-list .desc {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

/* --- BLOG LIST (vechi, păstrat pentru compatibilitate) --- */
.blog-list {
  list-style: none;
}

.blog-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.blog-list li:last-child {
  border-bottom: none;
}

.blog-list .blog-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-list h3 {
  margin: 0.3rem 0;
}

.blog-list h3 a {
  color: var(--color-text);
}

.blog-list h3 a:hover {
  color: var(--color-accent);
}

/* --- BLOG LIST AVANSAT (cu imagini) --- */
.blog-list-advanced {
  display: grid;
  gap: 2rem;
}

.blog-preview {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.blog-preview:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blog-preview-image {
  display: block;
  overflow: hidden;
}

.blog-preview-image img {
  transition: transform 0.3s;
}

.blog-preview:hover .blog-preview-image img {
  transform: scale(1.03);
}

.blog-preview-text {
  padding: 1.2rem;
}

.blog-preview-text .blog-date {
  font-size: 0.8rem;
  color: var(--color-green);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-preview-text h3 {
  margin: 0.3rem 0;
}

.blog-preview-text h3 a {
  color: var(--color-text);
}

.blog-preview-text h3 a:hover {
  color: var(--color-accent);
}

.blog-preview-text p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

@media (min-width: 600px) {
  .blog-list-advanced {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .blog-list-advanced {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- BLOG ARTICLE BODY (cu imagini) --- */
.blog-article-body figure {
  margin: 1.5rem 0;
  text-align: center;
}

.blog-article-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.blog-article-body figure figcaption {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
}

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

.site-footer a:hover {
  color: var(--color-white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* --- TABEL (regulamente) --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table th, table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

table th {
  background: #f0ebe4;
  font-weight: bold;
}

table tr:nth-child(even) {
  background: #faf8f5;
}

/* --- MEDIA QUERIES --- */
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: block !important;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    background: none;
  }

  .nav-menu ul {
    display: flex;
    justify-content: center;
    gap: 0.15rem;
    padding: 0;
  }

  .nav-menu li a {
    padding: 0.5rem 0.8rem;
    border: none;
    font-size: 0.9rem;
    border-radius: 4px;
    text-align: center;
  }

  .nav-menu li a:hover {
    background: var(--color-accent);
    color: var(--color-white);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding: 4rem 2rem;
  }

  .page-content {
    padding: 3rem 2rem 5rem;
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   BREED PAGE SPECIFIC STYLES
   ============================================ */

.breed-image-wrapper {
  margin: 2rem 0;
  text-align: center;
}

.breed-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.image-caption {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.page-content section {
  margin-bottom: 3rem;
}

.page-content section h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.page-content section h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--color-text);
}

.page-content section p {
  margin-bottom: 1rem;
}

.page-content section ul {
  margin: 1rem 0 1rem 1.5rem;
}

.page-content section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* --- GALERIE POZE RASE --- */
.breed-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .breed-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.breed-gallery .breed-image-wrapper {
  margin-bottom: 0;
}

/* --- PLACEHOLDER BANNER --- */
.placeholder-banner {
  background: var(--color-border);
  border: 2px dashed var(--color-accent-light);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  color: var(--color-text-light);
  font-style: italic;
}

.placeholder-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --- INFO BOX --- */
.info-box {
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.info-box ul {
  margin: 1rem 0 0 1.5rem;
}

.info-box ul li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* ============================================
   ACCENTE MOV ȘI VERDE – detalii vesele
   Suprascriu intenționat unele stiluri de mai sus
   pentru a integra mov și verdele în schemă.
   ============================================ */

/* --- Colțuri verzi la imagini (iarbă de primăvară) --- */
.card-image,
.breed-image,
.hero img,
.page-content img:not(.no-style) {
  border-radius: 8px;
  box-shadow: 
    0 2px 12px rgba(106, 171, 94, 0.15),
    0 0 0 1px rgba(106, 171, 94, 0.08);
}

/* --- Umbre verzi la titluri --- */
.page-content h1,
.page-content h2,
.section-title {
  text-shadow: 0 1px 0 rgba(106, 171, 94, 0.12);
}


.btn,
.contact-form button,
.hero .btn {
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(196, 90, 44, 0.2);
}

.btn:hover,
.contact-form button:hover,
.hero .btn:hover {
  background: var(--color-purple);
  box-shadow: 0 2px 12px rgba(123, 94, 167, 0.3);
}

/* --- Link-uri mov la hover (suprascrie a:hover de mai sus) --- */
a:hover {
  color: var(--color-purple);
}

/* --- Card hover cu umbră mov-verde (suprascrie .card:hover de mai sus) --- */
.card:hover {
  box-shadow: 
    0 4px 20px rgba(123, 94, 167, 0.1),
    0 0 0 1px rgba(106, 171, 94, 0.15);
}

/* --- Social links hover mov (suprascrie .social-links a:hover de mai sus) --- */
.social-links a:hover {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
}

/* --- Accente mov în footer (suprascrie .site-footer a de mai sus) --- */
.site-footer a {
  color: var(--color-purple-light);
}

.site-footer a:hover {
  color: var(--color-white);
}

/* --- Placeholder banner cu bordură mov (suprascrie .placeholder-banner de mai sus) --- */
.placeholder-banner {
  border-color: var(--color-purple-light);
  background: rgba(123, 94, 167, 0.04);
}

/* --- Info box cu bordură mov (suprascrie .page-content .info-box de mai sus) --- */
.page-content .info-box {
  border-left-color: var(--color-purple);
}

/* --- h3 mov în paginile interne (suprascrie .page-content h3 de mai sus) --- */
.page-content h3 {
  color: var(--color-purple-dark);
}

/* --- Tabel cu header mov (suprascrie table th de mai sus) --- */
table th {
  background: rgba(123, 94, 167, 0.08);
  color: var(--color-purple-dark);
}

/* --- Blog date cu accent verde (suprascrie .blog-list .blog-date de mai sus) --- */
.blog-list .blog-date {
  color: var(--color-green);
  font-weight: bold;
}

/* --- Card links hover mov (suprascrie .card-links a de mai sus) --- */
.card-links a:hover {
  color: var(--color-purple);
}

/* --- Resource list link hover mov (suprascrie .resource-list a de mai sus) --- */
.resource-list a:hover {
  color: var(--color-purple);
}
