/* Cookie Consent Styles */
.cookie-consent-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  padding: 0 15%;
}

.cookie-consent-container {
  border-radius: 10px !important;
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  animation: slideUp 0.3s ease-out;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Gradient border için pseudo-element */

.cookie-consent-content {
  position: relative;
  z-index: 2;
  padding: 8px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 0;
  flex-wrap: wrap;
}

.cookie-icon {
  flex-shrink: 0;
}

.cookie-icon .feather-info {
  font-size: 32px;
  color: #5848d6;
  background: linear-gradient(135deg, #5848d6 0%, #f7931e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cookie-text-content {
  flex: 1;
  min-width: 250px;
}

.cookie-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.cookie-description {
  font-size: 14px;
  color: #1e1616;
  line-height: 1.4;
  margin-bottom: 8px;
}

.cookie-link {
  display: inline-flex;
  align-items: center;
  color: #5848d6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: #5848d6;
  text-decoration: underline;
}

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

.cookie-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 100px;
  justify-content: center;
}

/* Soft yeşil: kabul / "Allow" butonu */
.cookie-btn-primary {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
  transition: all 0.25s ease;
}

.cookie-btn-primary:hover {
  background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: #f8f9fa;
  color: #1e1616;
  border: 1px solid #dee2e6;
}

.cookie-btn-secondary:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

.cookie-btn i[class*="feather-"] {
  font-size: 16px;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

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

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Responsive tasarım */
@media (max-width: 768px) {
  .cookie-consent-overlay {
    padding: 0 5%;
  }

  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-text-content {
    min-width: auto;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode responsive */
@media (max-width: 768px) {
  .active-dark-mode .cookie-consent-content {
    flex-direction: column;
  }
}

.active-dark-mode .cookie-consent-container::before {
  background: linear-gradient(
    135deg,
    #818cf8 0%,
    #a78bfa 25%,
    #c084fc 50%,
    #e879f9 75%,
    #f472b6 100%
  );
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.6),
    0 0 80px rgba(167, 139, 250, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  filter: brightness(1.3) saturate(1.2);
  border-radius: 0;
}

.active-dark-mode .cookie-consent-container {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.active-dark-mode .cookie-consent-content {
  background: var(--color-blackest);
}

.active-dark-mode .cookie-title {
  color: #ecf0f1;
}

.active-dark-mode .cookie-description {
  color: #bdc3c7;
}

.active-dark-mode .cookie-btn-secondary {
  /* background: rgba(255, 255, 255, 0.1); */
  /* color: #e2e8f0; */
  /* border-color: rgba(255, 255, 255, 0.2); */
  backdrop-filter: blur(10px);
}

.active-dark-mode .cookie-btn-secondary:hover {
  /* background: rgba(255, 255, 255, 0.2); */
  /* color: #ffffff; */
  /* border-color: rgba(255, 255, 255, 0.3); */
  transform: translateY(-1px);
}

.active-dark-mode .cookie-btn-primary {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
  transition: all 0.25s ease;
}

.active-dark-mode .cookie-btn-primary:hover {
  background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
  transform: translateY(-1px);
}

.active-dark-mode .cookie-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.active-dark-mode .cookie-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .cookie-consent-container {
    width: 100%;
    border-radius: 0;
    margin: 0;
  }

  .cookie-consent-container::before {
    border-radius: 0;
    margin: -2px 0;
  }

  .cookie-consent-content {
    border-radius: 0;
    padding: 20px;
  }

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

  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-icon .feather-info {
    font-size: 36px;
  }

  .cookie-title {
    font-size: 16px;
  }

  .cookie-description {
    font-size: 12px;
  }
}
