/* ============================
   GLOBAL RESET + DESIGN GRI ÎNCHIS PREMIUM 2025
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #111111;        /* Fundal principal gri închis modern */
  color: #e8e8e8;             /* Text mai plăcut pentru ochi */
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================
   HEADER – GRI ÎNCHIS + EFECT PREMIUM
============================ */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 17, 17, 0.45);     /* Mai subtil și elegant */
    backdrop-filter: blur(16px);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

header.scrolled {
    padding: 12px 0px;
    background: rgba(17, 17, 17, 0.98) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    border-bottom: none;
}

.logo {
  height: 100%;                     /* ocupă toată înălțimea header-ului */
  width: 20%;                       /* ← exact 20% din lățimea header-ului */
  max-width: 220px;                 /* limită superioară absolută – ca să nu devină enorm pe ecrane foarte late */
  min-width: 140px;                 /* minim rezonabil pe mobil – ajustează după nevoie */
  display: flex;
  align-items: center;
  justify-content: flex-start;      /* logo lipit la stânga */
  padding: 0 10px;                  /* spațiu stânga-dreapta opțional */
}

.logo-img {
  height: 100%;                     /* umple înălțimea containerului .logo */
  width: 100%;                      /* umple și lățimea */
  max-width: 100%;                  /* nu depășește niciodată containerul */
  object-fit: contain;              /* păstrează proporțiile, nu deformează */
  object-position: left center;     /* aliniere la stânga */
  display: block;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.07);           /* mărește un pic mai mult */
  filter: brightness(1.1);          /* devine puțin mai luminos (opțional) */
}

@media (max-width: 768px) {
  .logo-img {
    height: 45px;        /* Mai mic pe mobil */
  }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 28px; height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.4s;
}

#main-nav {
    display: flex;
    gap: 32px;
}

#main-nav a {
    position: relative;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: 0.4s;
}

#main-nav a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 50%;
    background: #0af;
    box-shadow: 0 0 15px #0af;
    transition: 0.5s;
}

#main-nav a:hover::after,
#main-nav a.active::after {
    width: 100%;
    left: 0;
}

#main-nav a:hover,
#main-nav a.active {
    color: #0af;
    text-shadow: 0 0 15px #0af;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ============================
   MENIU MOBIL – GRI ÎNCHIS
============================ */
@media (max-width: 900px) {
  .hamburger {
      display: flex;
  }

  #main-nav {
      position: absolute;
      top: 70px;
      right: 0;
      width: 100%;
      background: #1a1a1a;           /* Gri închis în loc de #000 */
      display: flex;
      flex-direction: column;
      text-align: center;
      gap: 20px;
      padding: 24px 0;
      transform: translateY(-130%);
      transition: .4s ease;
      z-index: 999;
      border-bottom: 1px solid #333;
      box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  }

  #main-nav.show {
      transform: translateY(0);
  }

  nav a {
      margin: 10px 0;
      font-size: 20px;
  }
}

/* ============================
   LANGUAGE DROPDOWN – GRI ÎNCHIS + EFECT MODERN
============================ */
.lang-dropdown {
  position: relative;
  margin-left: 20px;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,170,255,0.15);
  border: 1px solid rgba(0,170,255,0.3);
  padding: 10px 16px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.lang-current:hover {
  background: rgba(0,170,255,0.25);
  box-shadow: 0 0 20px rgba(0,170,255,0.4);
}

.lang-current .arrow {
  width: 16px;
  height: 16px;
  fill: #0af;
  transition: transform 0.4s ease;
}

.lang-dropdown.open .arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: #1a1a1a;                 /* Gri închis în loc de negru */
  border: 1px solid rgba(0,170,255,0.3);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
  min-width: 180px;
  display: none;
}

.lang-dropdown.open .lang-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.lang-menu button:hover {
  background: #0af;
  color: #000;
}

.lang-flag {
  width: 20px;
  height: 15px;
  margin-right: 10px;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.lang-current .lang-flag {
  width: 18px;
  height: 13px;
}

@media (max-width: 900px) {
  .lang-dropdown { margin-left: 10px; }
  .lang-current { padding: 8px 14px; font-size: 0.9rem; }
}

/* ============================
   PAGE TITLES
============================ */
.page-header {
  padding-top: 150px;
  text-align: center;
  padding-bottom: 50px;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 300;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* ============================
   BUTTONS
============================ */
.btn {
  display: inline-block;
  padding: 10px 26px;
  background: #fff;
  color: #000;
  border-radius: 22px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ============================
   FOOTER – GRI ÎNCHIS + EFECT PREMIUM
============================ */
footer {
  background: #0b0b0b;                 /* Cel mai închis gri pentru footer */
  border-top: 1px solid #222;
  margin-top: 40px;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  opacity: 0.85;
  font-size: 0.95rem;
}

.footer-right {
  display: flex;
  gap: 22px;
}

.footer-right svg {
  width: 28px;
  height: 28px;
  fill: #ccc;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-right svg:hover {
  fill: #0af;
  opacity: 1;
  transform: scale(1.2);
}

/* =============================================
   FOOTER LIPIT DE JOS – VARIANTA FINALĂ & PERFECTĂ
============================================= */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #111111;
  color: #e8e8e8;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  background: #0b0b0b;
  border-top: 1px solid #222;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ============================
   PIESE-AUTO.PHP STILURI SPECIFICE
============================ */
.parts-section { padding: 120px 5% 80px; max-width: 1400px; margin: 0 auto; }
.parts-header { text-align: center; margin-bottom: 40px; }
.parts-header h1 { font-size: 3rem; font-weight: 300; margin-bottom: 12px; }
.parts-header p { opacity: 0.8; }

/* BARĂ DE CĂUTARE + FILTRE */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  justify-content: center;
  align-items: center;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}
.search-box input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
}
.search-box svg {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: #888;
}
.filter-select {
  padding: 14px 20px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  min-width: 200px;
}
.results-count {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Grid piese */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.part-card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}
.part-card.visible { opacity: 1; transform: translateY(0); }
.part-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,170,255,0.2); }

.part-img img { width: 100%; height: 220px; object-fit: cover; }
.part-info { padding: 24px; }
.part-info h3 { font-size: 1.4rem; margin-bottom: 12px; }
.part-info p { opacity: 0.85; margin-bottom: 16px; line-height: 1.5; font-size: 0.95rem; }
.part-meta { display: flex; justify-content: space-between; opacity: 0.8; font-size: 0.9rem; margin-bottom: 16px; }
.part-price { font-size: 1.7rem; color: #0af; font-weight: 600; margin: 16px 0; }
.btn.full-width { display: block; text-align: center; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* SOCIAL ICONS – Culori reale + neon Instagram & TikTok */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
  text-decoration: none;
}

.social-icons a:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Culori de bază */
.social-icons .facebook svg { fill: #1877F2; }
.social-icons .whatsapp   svg { fill: #25D366; }

/* Instagram neon roz-violet */
.social-icons .instagram {
  color: #ff2d95; /* roz neon de bază */
}

.social-icons .instagram svg {
  fill: currentColor;
}

/* TikTok neon roșu-cyan */
.social-icons .tiktok {
  color: #ff0050; /* roșu neon TikTok */
}

.social-icons .tiktok svg {
  fill: currentColor;
}

/* Efect neon puls la hover pentru Instagram și TikTok */
.social-icons .instagram:hover,
.social-icons .tiktok:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 16px currentColor) brightness(1.4);
  animation: neon-pulse 1.5s infinite alternate;
}

/* Animație puls neon */
@keyframes neon-pulse {
  from {
    filter: drop-shadow(0 0 8px currentColor) brightness(1);
  }
  to {
    filter: drop-shadow(0 0 24px currentColor) brightness(1.6);
  }
}
