/* ═══════════════════════════════════════════════════════════════
   BOMBOANA - COOKIE BANNER (GDPR Compliant)
   Stiluri pentru banner cookies cu linkuri legale
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   VARIABILE CSS (fallback)
───────────────────────────────────────────────────────────── */
:root {
  --cream: #faf6ef;
  --cream-light: #fffcf7;
  --gold: #c9a45c;
  --gold-dark: #9a7b3d;
  --gold-light: #d4b87a;
  --choco: #4a3728;
  --choco-dark: #2f231a;
  --choco-light: #6b5344;
  --white: #ffffff;
  --muted: #8a7a6a;
}

/* ─────────────────────────────────────────────────────────────
   OVERLAY
───────────────────────────────────────────────────────────── */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 35, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.cookie-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ─────────────────────────────────────────────────────────────
   CONTAINER BANNER
───────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 95%;
  max-width: 600px;
  background: linear-gradient(135deg, var(--cream-light) 0%, var(--cream) 100%);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 0;
  z-index: 9999;
  box-shadow: 
    0 25px 80px rgba(47, 35, 26, 0.4),
    0 0 0 1px rgba(201, 164, 92, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   FUNDAL DECORATIV
───────────────────────────────────────────────────────────── */
.cookie-bg-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Spirale */
.cookie-spiral {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.12;
  animation: floatCandy 8s ease-in-out infinite;
  filter: blur(0.5px);
}

.cookie-spiral:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  transform: rotate(-15deg);
}

.cookie-spiral:nth-child(2) {
  top: 60%;
  left: 8%;
  font-size: 2rem;
  animation-delay: -2s;
  transform: rotate(25deg);
}

.cookie-spiral:nth-child(3) {
  top: 25%;
  right: 6%;
  font-size: 2.8rem;
  animation-delay: -4s;
  transform: rotate(10deg);
}

.cookie-spiral:nth-child(4) {
  bottom: 15%;
  right: 10%;
  font-size: 2.2rem;
  animation-delay: -6s;
  transform: rotate(-20deg);
}

/* Jeleuri */
.cookie-jelly {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.10;
  animation: bounceJelly 6s ease-in-out infinite;
}

.cookie-jelly:nth-child(5) {
  top: 15%;
  left: 20%;
  animation-delay: -1s;
}

.cookie-jelly:nth-child(6) {
  top: 50%;
  right: 18%;
  font-size: 1.5rem;
  animation-delay: -3s;
}

.cookie-jelly:nth-child(7) {
  bottom: 20%;
  left: 15%;
  font-size: 2rem;
  animation-delay: -5s;
}

.cookie-jelly:nth-child(8) {
  top: 70%;
  right: 5%;
  font-size: 1.6rem;
  animation-delay: -2.5s;
}

/* Bomboane extra */
.cookie-candy {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.08;
  animation: twinkleCandy 4s ease-in-out infinite;
}

.cookie-candy:nth-child(9) {
  top: 5%;
  left: 35%;
  animation-delay: 0s;
}

.cookie-candy:nth-child(10) {
  bottom: 10%;
  right: 30%;
  animation-delay: -2s;
}

.cookie-candy:nth-child(11) {
  top: 40%;
  left: 3%;
  font-size: 1.2rem;
  animation-delay: -1s;
}

.cookie-candy:nth-child(12) {
  bottom: 35%;
  right: 3%;
  font-size: 1.6rem;
  animation-delay: -3s;
}

/* ─────────────────────────────────────────────────────────────
   ANIMAȚII
───────────────────────────────────────────────────────────── */
@keyframes floatCandy {
  0%, 100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--rotate, 0deg) + 8deg));
  }
}

@keyframes bounceJelly {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-6px) scale(1.03);
  }
  50% {
    transform: translateY(0) scale(0.97);
  }
  75% {
    transform: translateY(-3px) scale(1.01);
  }
}

@keyframes twinkleCandy {
  0%, 100% {
    opacity: 0.08;
    transform: scale(1);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.08);
  }
}

/* ─────────────────────────────────────────────────────────────
   CONȚINUT
───────────────────────────────────────────────────────────── */
.cookie-content {
  position: relative;
  z-index: 1;
  padding: 30px 35px;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.cookie-icon {
  font-size: 2.4rem;
  animation: bounceJelly 3s ease-in-out infinite;
}

.cookie-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--choco-dark);
  letter-spacing: 0.02em;
  margin: 0;
}

.cookie-title span {
  color: var(--gold-dark);
}

.cookie-text {
  font-size: 0.92rem;
  color: var(--choco-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cookie-text a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-text a:hover {
  color: var(--choco);
}

/* ─────────────────────────────────────────────────────────────
   NOTA LEGALĂ (Termeni și Condiții)
───────────────────────────────────────────────────────────── */
.cookie-legal-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 15px;
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--gold-light);
}

.cookie-legal-note a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-legal-note a:hover {
  color: var(--choco);
}

/* ─────────────────────────────────────────────────────────────
   BUTOANE
───────────────────────────────────────────────────────────── */
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  flex: 1;
  min-width: 130px;
  padding: 13px 24px;
  border-radius: 30px;
  font-family: 'Montserrat', 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201, 164, 92, 0.35);
}

.cookie-btn-accept::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 164, 92, 0.45);
}

.cookie-btn-accept:hover::before {
  left: 100%;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--choco-light);
  border: 1.5px solid var(--gold-light);
}

.cookie-btn-decline:hover {
  background: rgba(201, 164, 92, 0.1);
  border-color: var(--gold);
  color: var(--choco-dark);
}

/* ─────────────────────────────────────────────────────────────
   LINIE DECORATIVĂ
───────────────────────────────────────────────────────────── */
.cookie-divider {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-light) 20%,
    var(--gold) 50%,
    var(--gold-light) 80%,
    transparent 100%
  );
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   TOAST (confirmare)
───────────────────────────────────────────────────────────── */
.cookie-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--choco);
  color: var(--gold-light);
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(47, 35, 26, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.cookie-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-toast-icon {
  font-size: 1.2rem;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 15px;
    width: 94%;
    border-radius: 20px;
  }

  .cookie-content {
    padding: 22px 22px;
  }

  .cookie-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .cookie-icon {
    font-size: 2rem;
  }

  .cookie-title {
    font-size: 1.3rem;
  }

  .cookie-text {
    text-align: center;
    font-size: 0.88rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .cookie-spiral,
  .cookie-jelly,
  .cookie-candy {
    font-size: 1.4rem !important;
    opacity: 0.08 !important;
  }
  
  .cookie-legal-note {
    font-size: 0.72rem;
  }
  
  .cookie-toast {
    font-size: 0.82rem;
    padding: 12px 20px;
    bottom: 20px;
  }
}

/* ─────────────────────────────────────────────────────────────
   REDUCERE ANIMAȚII (accessibility)
───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cookie-spiral,
  .cookie-jelly,
  .cookie-candy,
  .cookie-icon {
    animation: none;
  }
  
  .cookie-banner,
  .cookie-overlay,
  .cookie-toast {
    transition-duration: 0.1s;
  }
}
