/* ========================================================================== /
/ === COOKIE BANNER ======================================================== /
/ ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  background: var(--cookie-banner-bg);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  max-height: 90vh;
  overflow-y: auto;
  color: var(--cookie-banner-text);
}

.cookie-banner.cookie-show {
  transform: translateY(0);
}

.cookie-banner.cookie-bottom {
  bottom: 0;
  border-top: 2px solid var(--accent);
}

.cookie-banner.cookie-top {
  top: 70px; /* header altında */
  transform: translateY(-100%);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.cookie-top.cookie-show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.cookie-icon {
  font-size: 36px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0 0 8px 0;
  line-height: 1.6;
  color: var(--cookie-banner-text);
  font-size: 14px;
}

.cookie-link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.cookie-link:hover {
  color: var(--link-hover-color);
  gap: 8px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-accept {
  background: linear-gradient(135deg, var(--cookie-button-accept-bg), var(--accent2));
  color: var(--cookie-button-accept-text);
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.cookie-accept:active {
  transform: translateY(0);
}

.cookie-reject {
  background: var(--cookie-button-reject-bg);
  color: var(--cookie-button-reject-text);
  border: 2px solid var(--line);
}

.cookie-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* Responsive - Tablet */
@media (max-width: 900px) {
  .cookie-content {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 18px 20px;
  }

  .cookie-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    justify-content: center;
  }

  .cookie-icon {
    font-size: 32px;
  }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
  .cookie-banner {
    max-height: none;
  }

  .cookie-content {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 12px 16px;
    text-align: left;
  }

  .cookie-icon {
    font-size: 20px;
    align-self: start;
    margin-top: 2px;
  }

  .cookie-text {
    grid-column: 2;
  }

  .cookie-text p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 4px 0;
  }

  .cookie-link {
    font-size: 11px;
  }

  .cookie-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 8px;
    margin-top: 4px;
  }

  .cookie-btn {
    width: auto;
    flex: 1;
    padding: 8px 14px;
    font-size: 12px;
    gap: 4px;
  }

  .cookie-btn i {
    font-size: 11px;
  }
}

/* Dark/Light Mode Variations */
body.light-mode .cookie-reject {
  background: rgba(0, 0, 0, 0.03);
}

body.dark-mode .cookie-reject {
  background: rgba(255, 255, 255, 0.05);
}
