﻿/* ===============================================
   Stiluri locale pentru paginile din /Proiecte
   =============================================== */

/* ================= TITLU SECȚIUNE ================= */
.decorative-title {
  font-size: 15px;
  font-weight: 600;
  color: #0077cc;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  margin-top: 50px;
}
.decorative-title::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 50px;
  background-color: #0077cc;
  border-radius: 2px;
}

/* ================= BARA DE MENIU PROIECTE ================= */
.page-proiecte .project-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: sticky;
  top: 130px; /* poziționat mai jos când derulezi */
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 0;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
  transition: box-shadow 0.3s ease, background 0.3s ease, top 0.3s ease;
}

/* efect la scroll */
.page-proiecte .project-nav.is-stuck {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* link-uri bara meniu */
.page-proiecte .project-nav a {
  background: #f5f5f5;
  color: #333;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.page-proiecte .project-nav a:hover {
  background: #e1e1e1;
}
.page-proiecte .project-nav a.active {
  background: #007b5e;
  color: #fff;
}

/* Spațiu corect sub bara de meniu Proiecte */
.page-proiecte main {
  padding-top: 15px !important; /* distanță între meniu și titlu */
}

/* ================= SLIDER IMAGINI ================= */
.mini-slider {
  max-width: 650px;
  margin: 20px auto 35px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.mini-slider .slides img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  left: 0; top: 0;
}
.mini-slider .slides img.active {
  opacity: 1;
  position: relative;
}

/* ================= BUTOANE PDF ================= */
.pdf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 25px 0 15px;
}
.pdf-links a {
  background: #007b5e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pdf-links a:hover {
  background: #005d46;
  transform: translateY(-2px);
}

/* ================= MINIATURI SUB SLIDER ================= */
.thumb-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 25px auto 40px;
}
.thumb-gallery img.thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thumb-gallery img.thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ================= LIGHTBOX ================= */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}
.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}
.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }


/* ================= BUTON DOWNLOAD ================= */
.download-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.download-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* ===============================
		Sterge Buton Back to Top
   =============================== */
#backToTop.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

/* ===============================
/* Elimină underline-ul din linkurile cardurilor din Proiecte */
   =============================== */


.page-proiecte .member-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-proiecte .member-card p {
  text-align: center;
  margin: 0;
}

.page-proiecte .member-card:hover p {
  color: #000 !important; /* un mic contrast la hover */
}
.page-proiecte a.member-card,
.page-proiecte a.member-card:link,
.page-proiecte a.member-card:visited,
.page-proiecte a.member-card:hover,
.page-proiecte a.member-card:active {
  text-decoration: none !important;
  color: #222 !important;
}

.page-proiecte a.member-card p {
  text-decoration: none !important;
  color: #222 !important;
}

.page-proiecte a.member-card:hover p {
  color: #000 !important;
}

/* Spațiu suplimentar sub cardurile proiectelor */
.page-proiecte .member-cards {
  margin-bottom: 50px; /* poți crește la 60-70px dacă vrei mai mult */
}

/* Corecție poziție ancoră pentru secțiunile de proiecte */
.page-proiecte [id] {
  scroll-margin-top: 300px; /* spațiu rezervat sub bara fixă */
}
/* Tranziție lină între paginile din Proiecte */
.page-proiecte {
  opacity: 1;
  transition: opacity 0.22s ease;
}

.page-proiecte.fade-out {
  opacity: 0;
}

/* ===============================
/* Separator de ani */
   =============================== */
/* Forțare completă pentru <hr class="year-separator"> */
.page-proiecte hr.year-separator {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  display: block !important;
  width: 100% !important;
  height: 0 !important;
  border: none !important;
  border-top: 1px solid #e0e0e0 !important;
  opacity: 0.6 !important;
  margin: 40px 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}


/* Evidențiere secțiune la scroll */
/* Scoate highlight-ul de pe tot blocul */
.highlighted {
  background: none;
  box-shadow: none;
}

/* Pune accent doar pe titlu (border + ușor glow verde) */
.highlighted > h3 {
  color: #2a7a3f;
  border-left: 6px solid rgba(120, 220, 150, 0.8);
  padding-left: 12px;
  background: rgba(120, 220, 150, 0.1);
  border-radius: 4px;
  transition: all 1s ease;
}

.highlighted > h3 {
  animation: highlightFade 2.5s ease forwards;
}

@keyframes highlightFade {
  0% { background: rgba(120, 220, 150, 0.3); }
  100% { background: transparent; }
}