/* ==========================================================================
   Köroğlu Pide & Kebap - Yasal Metinler, Çerez Yönetimi ve Bildirim Stilleri
   Design: Woodfire Charcoal & Warm Baked Gold Luxury Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Cookie Consent Banner (Websiteye İlk Girişte Çerez Bildirimi)
   -------------------------------------------------------------------------- */
#kc-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 960px;
  margin: 0 auto;
  background: rgba(18, 17, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(217, 56, 30, 0.15);
  padding: 24px 28px;
  z-index: 9998;
  color: #f5f2ed;
  font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
  opacity: 0;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
}

#kc-cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.kc-cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 992px) {
  .kc-cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
}

.kc-cookie-banner-text-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.kc-cookie-icon-wrapper {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, rgba(217, 56, 30, 0.25), rgba(212, 163, 89, 0.25));
  border: 1px solid rgba(212, 163, 89, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a359;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(212, 163, 89, 0.15);
}

.kc-cookie-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kc-cookie-banner-title .badge-kvkk {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(217, 56, 30, 0.25);
  color: #ff8c72;
  border: 1px solid rgba(217, 56, 30, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.kc-cookie-banner-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(245, 242, 237, 0.85);
  margin-bottom: 0;
}

.kc-cookie-banner-desc a {
  color: #d4a359;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.kc-cookie-banner-desc a:hover {
  color: #ffffff;
}

.kc-cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, #d9381e, #ff6b35);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(217, 56, 30, 0.35);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: linear-gradient(135deg, #b82b14, #e65a28);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 56, 30, 0.5);
  color: #ffffff;
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-cookie-settings {
  background: transparent;
  color: #d4a359 !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 163, 89, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-cookie-settings:hover {
  background: rgba(212, 163, 89, 0.12);
  color: #ffffff !important;
  border-color: #d4a359;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. Floating Cookie Preferences Button (Kalıcı Sol Alt Buton)
   -------------------------------------------------------------------------- */
.kc-cookie-floating-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  background: rgba(24, 22, 20, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 163, 89, 0.4);
  color: #d4a359;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 9990;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kc-cookie-floating-btn:hover {
  transform: scale(1.12) rotate(15deg);
  background: #d9381e;
  border-color: #d9381e;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(217, 56, 30, 0.5);
}

.kc-cookie-floating-tooltip {
  position: absolute;
  left: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 17, 16, 0.95);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(212, 163, 89, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.kc-cookie-floating-btn:hover .kc-cookie-floating-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* --------------------------------------------------------------------------
   3. Custom Modal Themes (Dark Luxury Theme for Legal & Preferences)
   -------------------------------------------------------------------------- */
.modal-custom-dark .modal-content {
  background: #181615;
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  color: #f5f2ed;
  overflow: hidden;
}

.modal-custom-dark .modal-header {
  background: #131211;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 28px;
}

.modal-custom-dark .modal-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-custom-dark .modal-title i {
  color: #d4a359;
}

.modal-custom-dark .btn-close-custom {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.modal-custom-dark .btn-close-custom:hover {
  background: #d9381e;
  border-color: #d9381e;
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-custom-dark .modal-body {
  padding: 28px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(245, 242, 237, 0.88);
}

.modal-custom-dark .modal-footer {
  background: #131211;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 28px;
}

/* Custom Scrollbar inside Modals */
.modal-custom-dark .modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-custom-dark .modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.modal-custom-dark .modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 89, 0.35);
  border-radius: 4px;
}

.modal-custom-dark .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 89, 0.6);
}

/* --------------------------------------------------------------------------
   4. Cookie Preferences Center Styling (Çerez Tercihleri Modalı)
   -------------------------------------------------------------------------- */
.cookie-category-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  transition: all 0.25s ease;
}

.cookie-category-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 163, 89, 0.3);
}

.cookie-category-card.active-required {
  border-left: 4px solid #25d366;
}

.cookie-category-card.customizable {
  border-left: 4px solid #d4a359;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cookie-category-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.cookie-badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cookie-badge-required {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

/* Custom Styled Switch Toggle */
.form-check-cookie-switch {
  padding-left: 3em;
  margin-bottom: 0;
}

.form-check-cookie-switch .form-check-input {
  width: 2.8em;
  height: 1.5em;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.form-check-cookie-switch .form-check-input:checked {
  background-color: #d9381e;
  border-color: #d9381e;
  box-shadow: 0 0 10px rgba(217, 56, 30, 0.5);
}

.form-check-cookie-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(217, 56, 30, 0.25);
}

.cookie-category-desc {
  font-size: 0.88rem;
  color: rgba(245, 242, 237, 0.75);
  margin-bottom: 12px;
  line-height: 1.5;
}

.cookie-category-examples {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: rgba(212, 163, 89, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   5. Legal Documents Tabbed Navigation & Typography (Yasal Metinler)
   -------------------------------------------------------------------------- */
.legal-nav-tabs {
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.legal-nav-tabs .nav-link {
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  white-space: nowrap;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-nav-tabs .nav-link i {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s ease;
}

.legal-nav-tabs .nav-link:hover {
  color: #ffffff;
}

.legal-nav-tabs .nav-link:hover i {
  color: #d4a359;
}

.legal-nav-tabs .nav-link.active {
  color: #d4a359;
  background: transparent;
  border-bottom-color: #d4a359;
  font-weight: 700;
}

.legal-nav-tabs .nav-link.active i {
  color: #d4a359;
}

/* Legal Content Typography */
.legal-text-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.legal-meta-box {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.1), rgba(217, 56, 30, 0.1));
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.legal-meta-item strong {
  color: #d4a359;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.legal-section-title i {
  color: #d4a359;
  font-size: 1rem;
}

.legal-sub-title {
  font-size: 1rem;
  font-weight: 600;
  color: #d4a359;
  margin-top: 14px;
  margin-bottom: 8px;
}

.legal-list {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-list li {
  margin-bottom: 8px;
  color: rgba(245, 242, 237, 0.85);
}

.legal-list li strong {
  color: #ffffff;
}

.legal-table-responsive {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 18px 0;
}

.legal-table {
  width: 100%;
  margin-bottom: 0;
  color: #f5f2ed;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.86rem;
}

.legal-table th {
  background: #11100f;
  color: #d4a359;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.25);
}

.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-contact-callout {
  background: rgba(217, 56, 30, 0.08);
  border: 1px solid rgba(217, 56, 30, 0.3);
  border-radius: 14px;
  padding: 20px;
  margin-top: 30px;
}

.legal-contact-callout h6 {
  color: #ff8c72;
  font-weight: 700;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   6. Footer Legal Links (Footer'daki Yasal Bağlantılar)
   -------------------------------------------------------------------------- */
.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-legal-links a i {
  color: #d4a359;
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.footer-legal-links a:hover {
  color: #d4a359;
}

.footer-legal-links a:hover i {
  transform: scale(1.2);
}

/* Form altı KVKK uyarı metni */
.form-kvkk-notice {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
  text-align: center;
}

.form-kvkk-notice a {
  color: #d4a359;
  text-decoration: underline;
}

.form-kvkk-notice a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Mobile Responsiveness (Mobil Cihaz Uyumluluğu)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  #kc-cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .kc-cookie-icon-wrapper {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.25rem;
    border-radius: 10px;
  }

  .kc-cookie-banner-title {
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .kc-cookie-banner-desc {
    font-size: 0.84rem;
  }

  .kc-cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .btn-cookie-accept,
  .btn-cookie-reject,
  .btn-cookie-settings {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .kc-cookie-floating-btn {
    bottom: 90px; /* Above mobile viewport boundary & avoiding conflict */
    left: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .kc-cookie-floating-tooltip {
    display: none; /* Hide hover tooltip on touch devices */
  }

  .modal-custom-dark .modal-header {
    padding: 16px 20px;
  }

  .modal-custom-dark .modal-body {
    padding: 20px 16px;
  }

  .modal-custom-dark .modal-footer {
    padding: 14px 16px;
  }

  .legal-nav-tabs .nav-link {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .legal-meta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .legal-section-title {
    font-size: 1.05rem;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}
