/* ==========================================================
   Yüksel Garage - KVKK Aydınlatma Metni & Çerez İzin Paneli
   6698 Sayılı Kanun & Çerez Rehberi Uyumlu Stiller
   ========================================================== */

/* Floating Cookie Consent Banner */
.yg-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #000000;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
  padding: clamp(14px, 2vh, 20px) clamp(16px, 4vw, 40px);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.yg-cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.yg-cookie-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
}

.yg-cookie-text-box {
  flex: 1;
  min-width: 280px;
}

.yg-cookie-title {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.yg-cookie-desc {
  font-size: clamp(0.76rem, 1vw, 0.84rem);
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.yg-cookie-desc a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.yg-cookie-desc a:hover {
  color: #ff2247;
}

.yg-cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.yg-cookie-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.yg-cookie-btn-accept {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.yg-cookie-btn-accept:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.yg-cookie-btn-reject {
  background: #111111;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.yg-cookie-btn-reject:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.yg-cookie-btn-settings {
  background: transparent;
  color: #94a3b8;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 12px;
}

.yg-cookie-btn-settings:hover {
  color: #ffffff;
}

/* ==========================================================
   KVKK & ÇEREZ MODALI (Editorial Luxury Pure Matte Black)
   ========================================================== */
.yg-legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vh, 40px) clamp(16px, 4vw, 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.yg-legal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.yg-legal-modal-box {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  max-height: 86vh;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.yg-legal-modal-overlay.active .yg-legal-modal-box {
  transform: scale(1) translateY(0);
}

.yg-legal-modal-header {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vh, 22px) clamp(20px, 3vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.yg-legal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yg-legal-tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #888888;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.yg-legal-tab-btn:hover {
  color: #ffffff;
}

.yg-legal-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.yg-legal-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.yg-legal-modal-close:hover {
  background: #222222;
  transform: rotate(90deg);
}

.yg-legal-modal-body {
  background: #000000;
  padding: clamp(20px, 3vh, 32px) clamp(20px, 3vw, 36px);
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.7;
}

.yg-legal-modal-body::-webkit-scrollbar {
  width: 6px;
}
.yg-legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.yg-legal-content {
  display: none;
}
.yg-legal-content.active {
  display: block;
}

.yg-legal-content h3 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.yg-legal-content h4 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 8px;
}

.yg-legal-content p {
  margin-bottom: 14px;
}

.yg-legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.yg-legal-content li {
  margin-bottom: 6px;
}

.yg-cookie-setting-card {
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.yg-cookie-setting-info h5 {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.yg-cookie-setting-info p {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.45;
}

.yg-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.yg-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.yg-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 999px;
}

.yg-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

.yg-toggle-switch input:checked + .yg-toggle-slider {
  background-color: #25d366;
}

.yg-toggle-switch input:checked + .yg-toggle-slider:before {
  transform: translateX(20px);
}

.yg-toggle-switch input:disabled + .yg-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.yg-legal-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  background: #000000;
}

@media (max-width: 640px) {
  .yg-cookie-container {
    flex-direction: column;
    align-items: stretch;
  }
  .yg-cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  .yg-cookie-btn {
    flex: 1;
    text-align: center;
  }
  .yg-legal-tabs {
    flex-direction: column;
    width: 100%;
  }
  .yg-legal-modal-header {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Intake Form KVKK Checkbox */
.yg-form-kvkk-row {
  margin-top: 14px;
  margin-bottom: 4px;
}

.yg-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.yg-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.yg-checkbox-custom {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yg-checkbox-label input[type="checkbox"]:focus + .yg-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
  border-color: #25d366;
}

.yg-checkbox-label input[type="checkbox"]:checked + .yg-checkbox-custom {
  background: #25d366;
  border-color: #25d366;
}

.yg-checkbox-label input[type="checkbox"]:checked + .yg-checkbox-custom:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.yg-checkbox-text {
  flex: 1;
}

.yg-checkbox-text a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s;
}

.yg-checkbox-text a:hover {
  color: #ff2247;
}

.yg-read-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.yg-read-badge.confirmed {
  background: #dcfce7;
  color: #16a34a;
  border-color: #bbf7d0;
}

/* Legal Footer Links */
.yg-legal-footer-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.yg-legal-footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
