:root {
  --turcoaz: #3498db;
  /* Noua culoare - albastru deschis */
  --verde-whatsapp: #25D366;
  /* Culoare specifică pentru WhatsApp */
  --albastru-inchis: #2c3e50;
  --gri-deschis: #ecf0f1;
  --text-inchis: #2d3436;
  --fundal-magic: linear-gradient(to right, var(--verde-whatsapp), #128C7E);
}

/* Clasă pentru evidențierea textului (ex: numele orașului) */
.city-highlight {
  color: #ffeb3b;
}

/* === JimJob Header cu Hamburger Menu === */
.jimjob-header {
  width: 100%;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  gap: 15px;
  /* Spațiu între logo, căutare și meniu */
  transition: padding 0.3s ease;
  /* Adăugăm o tranziție pentru padding */
  z-index: 1000;
  border-bottom: 2px solid rgba(52, 152, 219, 0.2);
}

.jimjob-logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #0d6efd, #6f42c1, #d63384);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-right: 0;
}

.user-name-label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.menu-btn {
  position: relative;
  width: 35px;
  height: 25px;
  transition: 0.3s ease-in-out;
}

.menu-btn span {
  position: absolute;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.menu-btn span:nth-child(1) {
  top: 0;
}

.menu-btn span:nth-child(2) {
  top: 10px;
}

.menu-btn span:nth-child(3) {
  top: 20px;
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
  background: #FF6B6B;
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
  background: #FF6B6B;
}

/* Overlay */
.jimjob-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 998;
}

.jimjob-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Slide-up Menu */
.jimjob-menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  max-height: 80vh;
  background: linear-gradient(180deg, rgba(0, 20, 40, 0.95), rgba(10, 50, 80, 0.98));
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 999;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.4);
  padding-top: 25px;
  overflow-y: auto;
  border-top: 2px solid rgba(52, 152, 219, 0.4);
}

/* Stil pentru mesajul de bun venit din meniu (transformat în buton) */
.menu-user-welcome {
  width: 90%;
  max-width: 300px;
  padding: 12px 20px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(0, 174, 255, 0.15);
  border: 1px solid rgba(0, 174, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 174, 255, 0.1);
  cursor: default;
  /* Nu este un buton real, deci cursor normal */
}

.menu-user-welcome strong {
  font-weight: 600;
  background: linear-gradient(45deg, #00e1ff, #c471ed);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jimjob-menu.active {
  bottom: 0;
}

.menu-item {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 12px 0;
  padding: 12px 30px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  width: 90%;
  max-width: 300px;
  text-align: center;
  justify-content: center;
}

.menu-item i {
  font-size: 1.3rem;
  transition: all 0.3s ease;
  color: var(--turcoaz);
}

.menu-item:hover {
  background: rgba(52, 152, 219, 0.15);
  color: var(--verde-whatsapp);
  transform: translateX(5px);
  border-left: 4px solid var(--verde-whatsapp);
}

.menu-item:hover i {
  color: var(--verde-whatsapp);
  transform: scale(1.2);
}

.menu-divider {
  width: 80%;
  border: none;
  border-top: 1px solid rgba(52, 152, 219, 0.2);
  margin: 15px 0;
}

.badge {
  font-size: 0.7rem;
  padding: 0.3em 0.6em;
  border-radius: 10px;
}

/* Main content padding */
main {
  padding-top: 90px;
  /* Mărim puțin spațiul pentru header */
  transition: padding-top 0.3s ease;
}

/* Responsive */
@media (max-width: 600px) {
  .jimjob-header {
    padding: 10px 15px;
    flex-wrap: nowrap;
    /* Forțăm elementele să rămână pe același rând */
    justify-content: space-between;
  }

  .header-search-wrapper {
    order: 2;
    /* Ordinea: logo(1), search(2), menu(3) */
    flex-grow: 1;
    /* Permite barei de căutare să ocupe spațiul liber */
    max-width: calc(100vw - 125px);
    /* Restrâns pentru a face loc meniului */
    height: 44px;
    /* Mai compactă pe verticală */
  }

  .city-select {
    padding: 0 8px;
    font-size: 0.85rem;
  }

  .search-input {
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .jimjob-logo {
    display: none;
    /* Ascundem logo-ul pe mobil pentru a face loc barei de căutare */
  }

  .menu-btn {
    width: 30px;
    height: 22px;
  }

  .menu-container {
    order: 3;
    /* Asigură că meniul este ultimul element */
    flex-shrink: 0;
    /* Previne micșorarea containerului de meniu */
    margin-left: 15px;
    /* Adaugă un mic spațiu */
    padding-right: 5px;
  }

  .menu-item {
    font-size: 1rem;
    padding: 10px 20px;
    width: 85%;
  }

  .menu-item i {
    font-size: 1.1rem;
  }

  main {
    padding-top: 65px;
    /* Spațiu pentru header-ul pe un singur rând */
  }

  /* --- YOUTUBE STYLE CATEGORIES START --- */
  #categoryList {
    display: flex !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding: 5px 15px 12px 15px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    margin: 0 -15px;
    /* Snap to edges */
  }

  #categoryList::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
  }

  .category-card-selector {
    flex: 0 0 auto;
    width: auto !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  .category-card-selector .card {
    padding: 8px 16px !important;
    border-radius: 25px !important;
    /* Rounded chips */
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    height: 40px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease;
  }

  .category-card-selector .card:active {
    background: #f1f5f9 !important;
    transform: scale(0.95);
  }

  .category-card-selector .fs-1 {
    font-size: 1.1rem !important;
    margin: 0 !important;
  }

  .category-card-selector p {
    font-size: 0.85rem !important;
    margin: 0 !important;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
  }

  /* Highlight pentru categoria selectată (opțional, dacă ai JS care pune clasa .active) */
  .category-card-selector.active .card {
    background: var(--turcoaz) !important;
    border-color: var(--turcoaz) !important;
  }

  .category-card-selector.active p,
  .category-card-selector.active .fs-1 {
    color: #fff !important;
  }

  /* --- YOUTUBE STYLE CATEGORIES END --- */
}

body {
  background: var(--fundal-magic);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-inchis);
}

.navbar-brand {
  color: var(--turcoaz);
  font-size: 1.5rem;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--text-inchis);
}

.navbar .nav-link:hover {
  color: var(--turcoaz);
}

.btn-primary {
  background-color: var(--turcoaz);
  border: none;
}

.btn-primary:hover {
  background-color: #2980b9;
  /* O nuanță mai închisă pentru hover */
}

/* Stil adăugat pentru butonul WhatsApp */
.btn-success {
  background-color: var(--verde-whatsapp);
  border-color: var(--verde-whatsapp);
}

.btn-success:hover {
  background-color: #128C7E;
  border-color: #128C7E;
}

.btn-outline-primary {
  color: var(--turcoaz);
  border-color: var(--turcoaz);
}

.btn-outline-primary:hover {
  background-color: var(--turcoaz);
  color: white;
}

.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 24px rgba(52, 152, 219, 0.12);
  /* Adăugat efect de umbră la hover pentru consistență */
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card .fs-1 {
  font-size: 2.5rem;
}

h2 {
  font-weight: 700;
  color: var(--albastru-inchis);
}

.card-title {
  font-weight: 600;
}

.card-footer {
  background-color: #fff;
  border-top: none;
}

.badge.bg-secondary {
  background-color: var(--turcoaz) !important;
}

.text-turcoaz {
  color: var(--turcoaz) !important;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

.navbar.fixed-bottom {
  background-color: transparent !important;
  /* Fundal eliminat */
  box-shadow: none;
  /* Umbră eliminată */
  padding-top: 5px;
  border-top: none;
  /* Bordură eliminată */
  padding-bottom: 5px;
  margin-bottom: 5px;
  /* Spațiu adăugat jos */
  border-radius: 20px;
  /* Colțuri rotunjite */
  left: 5px;
  right: 5px;
  bottom: 5px;
}

.icon-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--turcoaz);
  /* Schimbat în turcoaz */
  padding: 5px 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.icon-nav a i {
  font-size: 1.8rem;
  /* Mărime pictogramă */
}

.icon-nav a span {
  font-size: 0.7rem;
  /* Mărime text */
  font-weight: 600;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.icon-nav a:hover {
  color: #fff;
  /* Text alb la hover */
  background-color: rgba(52, 152, 219, 0.2);
  /* Fundal turcoaz transparent */
  transform: translateY(-2px);
}

.icon-nav a.active {
  color: #ffffff;
  background-color: var(--turcoaz);
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
  /* Efect de glow */
}

/* Stiluri responsive pentru bara de jos - transparentă */
@media (min-width: 768px) {
  .navbar.fixed-bottom {
    background-color: rgba(255, 255, 255, 0.15) !important;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    max-width: 450px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
  }

  .icon-nav a {
    font-size: initial;
    /* Resetare pentru a controla individual icon/span */
    padding: 18px 25px;
    /* Mărit și pentru desktop */
    margin: 0 5px;
    border-radius: 10px;
  }

  .icon-nav a:hover {
    background-color: rgba(26, 188, 156, 0.15);
    transform: translateY(-3px);
  }

  .icon-nav a i {
    font-size: 2rem;
  }

  .icon-nav a span {
    font-size: 0.8rem;
  }
}

/* Overlay pentru loading în centrul ecranului */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-overlay.show .loading-container {
  transform: scale(1);
}

/* Spinner stilat în centru */
.center-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(52, 152, 219, 0.2);
  border-radius: 50%;
  border-top-color: #3498db;
  border-right-color: #25D366;
  animation: spin-elegant 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin-elegant {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.1);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.loading-text {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

.loading-subtitle {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: 400;
}

/* Spinner pentru încărcare anunțuri - mai mic pentru buton */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* Mesaj de succes pentru anunțuri */
.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
  margin-bottom: 15px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Modal fullscreen pentru categorii - stil modern */
#categoryModal .modal-content {
  background: var(--fundal-magic);
  /* gradientul verde */
  border-radius: 0;
  min-height: 100vh;
  box-shadow: none;
  color: #fff;
}

#categoryModal .modal-header {
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
  color: #fff;
  align-items: center;
}

#categoryModal .modal-title {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

#categoryModal .btn-close {
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  opacity: 1;
  position: relative;
}

#categoryModal .btn-close::before,
#categoryModal .btn-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2rem;
  height: 0.25rem;
  background: #e74c3c;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

#categoryModal .btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#categoryModal .btn-close {
  filter: none;
  background: none !important;
  border: none;
  box-shadow: none;
}

#categoryModal .modal-body {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#categoryModal .prestator-card {
  transition: box-shadow 0.2s;
  background: #fff;
  color: #222;
  border-radius: 15px;
}

#categoryModal .prestator-card:hover {
  box-shadow: 0 4px 24px rgba(52, 152, 219, 0.12);
}

/* === CSS pentru bara de căutare cu Glow Effect === */
.header-search-wrapper {
  flex-grow: 1;
  max-width: 600px;
  /* Mărit pentru a include și dropdown-ul */
  display: flex;
  border-radius: 40px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-search-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 200, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown orașe */
.city-select {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 12px 15px;
  font-size: 0.95rem;
  /* Mărit puțin pentru lizibilitate */
  color: #000;
  /* Schimbat în negru */
  font-weight: 600;
  /* Îngroșat pentru a ieși în evidență */
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
  /* Efect de "glow" alb */
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.city-select:hover,
.city-select:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #000;
  /* Păstrăm culoarea neagră și la hover */
}

.search-input {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  /* Mărit puțin pentru vizibilitate */
  color: #000;
  /* Culoarea textului tastat, schimbată în negru */
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
  /* Efect de "glow" alb */
  width: 100%;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.search-input::placeholder {
  color: #000;
  /* Culoarea placeholder-ului, schimbată în negru */
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
  /* Efect de "glow" alb */
}

.search-input:focus {
  box-shadow: inset 0 0 15px rgba(0, 200, 255, 0.4);
  color: rgb(17, 19, 19);
}

/* Buton căutare */
.search-button {
  background: rgba(0, 174, 255, 0.2);
  /* Culoare aliniată cu tema */
  border: none;
  padding: 10px 20px;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.search-button:hover {
  background: rgba(0, 174, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 174, 255, 0.5);
}

@media (max-width: 600px) {
  .header-search-wrapper {
    order: 2;
    /* Poziționare între logo (1) și meniu (3) */
    flex-grow: 1;
    /* Permite să ocupe spațiul disponibil */
    max-width: calc(100vw - 125px);
  }

  .jimjob-header {
    flex-wrap: nowrap;
    /* Previne trecerea pe rândul următor */
  }

  main {
    padding-top: 80px;
    /* Revenim la padding-ul standard pentru header-ul pe un rând */
  }
}

/* CSS pentru banner producatori locali - STATIC VERSION */
.producatori-banner {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #2C5530 0%, #4A7C59 50%, #6BAF8D 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin: 2rem auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08);
  max-width: 1150px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content {
  text-align: left;
  z-index: 10;
  position: relative;
  color: white;
  max-width: 550px;
  padding: 3rem;
  flex: 1;
}

.banner-visual {
  flex: 0 0 300px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

.banner-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.banner-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
  opacity: 0.95;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 250px;
}

.product-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.product-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.product-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.product-name {
  font-size: 0.8rem;
  color: white;
  font-weight: 500;
  margin: 0;
}

.btn-producatori {
  background: linear-gradient(45deg, #FF6B35, #F7931E);
  border: none;
  color: white;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.btn-producatori:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  background: linear-gradient(45deg, #F7931E, #FF6B35);
  color: white;
  text-decoration: none;
}

.btn-producatori:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-producatori:hover .btn-icon {
  transform: translateX(3px);
}

.stats-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .producatori-banner {
    min-height: 220px;
    margin: 1rem;
    border-radius: 15px;
    flex-direction: column;
    text-align: center;
  }

  .banner-content {
    text-align: center;
    padding: 2rem 1.5rem 1rem 1.5rem;
    max-width: 100%;
  }

  .banner-visual {
    flex: none;
    padding: 0 2rem 2rem 2rem;
  }

  .banner-content h2 {
    font-size: 2.2rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 200px;
  }

  .stats-badge {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 1rem;
    display: inline-block;
  }
}

.banner-content {
  padding: 1.5rem;
}

.banner-content h2 {
  font-size: 2rem;
}

.banner-content p {
  font-size: 1rem;
}

.btn-producatori {
  padding: 12px 25px;
  font-size: 1rem;
}

.floating-emoji {
  font-size: 1.5rem;
}


@media (max-width: 480px) {
  .banner-content h2 {
    font-size: 1.8rem;
  }

  .btn-producatori {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-3px);
  }
}

/* CSS simplificat pentru butoanele PWA */
.pwa-install-button {
  position: relative;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #FFD700;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.pwa-install-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.7) !important;
}

.pwa-install-button:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-content {
  position: relative;
  z-index: 2;
}

/* Media queries pentru responsive */
@media (max-width: 768px) {
  .pwa-install-button {
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
  }

}




/* === Imagini afișate complet în carduri === */
.card-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 12;
  /* Raport de aspect. Poți schimba 12 cu 10 pentru mai lat */
  overflow: hidden;
  background-color: #ffffff;
  /* Culoare de fundal albă, mai curată */
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.prestator-card .card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Afișează întreaga imagine, păstrând proporțiile */
  object-position: center;
  /* Centrează imaginea */
}

/* Stil pentru modalul de vizualizare a imaginii */
#imageViewerModal .modal-content {
  background-color: rgba(0, 0, 0, 0.9);
}

#imageViewerModal .modal-body {
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#imageViewerModal #modalImageViewer {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
}

/* === Stiluri Player Video Galactic === */
.card-img-container.galactic-player-container {
  background-color: #000;
}

.player {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  object-fit: cover;
  /* Asigură umplerea containerului, păstrând proporțiile */
  position: absolute;
  top: 0;
  left: 0;
}

.player .progress {
  position: absolute;
  bottom: 40px;
  /* Ridicat deasupra controalelor */
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 2;
  transition: height 0.2s ease;
}

.player:hover .progress {
  height: 6px;
}

.player .progress-filled {
  height: 100%;
  width: 0%;
  background: #00fff2;
  box-shadow: 0 0 10px #00fff2aa;
  transition: width 0.1s linear;
}

.player .controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  opacity: 1;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.player .controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.player .controls button {
  background: none;
  border: none;
  color: #00fff2;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  text-shadow: 0 0 8px #00fff2;
}

.player .controls button.volume-btn {
  margin-left: 10px;
}

.player .controls button:hover {
  transform: scale(1.2);
  color: #0ff;
}

/* Fix pentru mobil: forțează afișarea controalelor pe ecrane tactile */
@media (hover: none) and (pointer: coarse) {
  .player .controls {
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none;
  }
}