/* ============================================
   COOKIE CONSENT BANNER & MODAL
   Çerez onay banner'ı ve tercih modal'ı
   ============================================ */

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: white;
  padding: 24px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-banner__icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: white;
}

.cookie-banner__text p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner__text a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner__text a:hover {
  color: #ffd54f;
}

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

.btn-success {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 32px;
  font-weight: 600;
}

.btn-success:hover {
  background: #45a049;
}

.btn-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-text {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 12px 16px;
  font-size: 0.9rem;
  text-decoration: underline;
}

.btn-text:hover {
  color: white;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
}

.cookie-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal__content {
  position: relative;
  max-width: 700px;
  margin: 60px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal__content {
  transform: scale(1);
}

.cookie-modal__header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--neutral-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal__header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  color: var(--primary-black);
}

.cookie-modal__close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--neutral-medium);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-modal__close:hover {
  background: var(--neutral-lighter);
  color: var(--primary-black);
}

.cookie-modal__body {
  padding: 32px;
}

.cookie-modal__intro {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--neutral-dark);
  margin-bottom: 24px;
}

/* Cookie Preference Item */
.cookie-preference-item {
  background: var(--neutral-lighter);
  border: 2px solid var(--neutral-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.cookie-preference-item:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cookie-preference-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cookie-preference-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--primary-black);
}

.cookie-preference-info p {
  font-size: 0.9rem;
  color: var(--neutral-medium);
  margin: 0;
}

.cookie-preference-details {
  padding-top: 12px;
  border-top: 1px solid var(--neutral-border);
}

.cookie-preference-details p {
  font-size: 0.85rem;
  color: var(--neutral-dark);
  margin: 8px 0;
  line-height: 1.5;
}

.cookie-preference-details strong {
  color: var(--primary-black);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(28px);
}

.toggle-switch.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-switch.disabled .toggle-slider {
  cursor: not-allowed;
  background-color: #888;
}

/* Modal Footer */
.cookie-modal__footer {
  padding: 24px 32px;
  border-top: 1px solid var(--neutral-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-modal__note {
  margin-top: 24px;
  padding: 16px;
  background: #fff9e6;
  border-left: 4px solid var(--accent-gold);
  border-radius: 4px;
}

.cookie-modal__note p {
  font-size: 0.9rem;
  color: var(--neutral-dark);
  margin: 0;
}

.cookie-modal__note a {
  color: #2196f3;
  text-decoration: none;
  font-weight: 500;
}

.cookie-modal__note a:hover {
  text-decoration: underline;
}

/* Footer Cookie Settings Button */
.footer__cookie-settings {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer__cookie-settings:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md, 1rem);
}

/* Responsive */
@media (max-width: 968px) {
  .cookie-banner__content {
    flex-wrap: wrap;
  }

  .cookie-banner__icon {
    font-size: 2.5rem;
  }

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

@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px 0;
  }

  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    flex-direction: column;
    width: 100%;
  }

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

  .cookie-modal__content {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }

  .cookie-modal__header,
  .cookie-modal__body,
  .cookie-modal__footer {
    padding: 20px;
  }

  .cookie-preference-header {
    flex-direction: column;
    gap: 12px;
  }

  .toggle-switch {
    align-self: flex-start;
  }

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

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

  .footer__bottom-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer__cookie-settings {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-banner__icon {
    font-size: 2rem;
  }

  .cookie-banner__text h3 {
    font-size: 1.1rem;
  }

  .cookie-banner__text p {
    font-size: 0.85rem;
  }

  .cookie-modal__header h2 {
    font-size: 1.4rem;
  }

  .cookie-preference-info h4 {
    font-size: 1rem;
  }
}
