/* ==========================================================================
   Çok Güzel | Modern Luxury Policies (Terms & Privacy) Stylesheet
   ========================================================================== */

:root {
  --policy-primary: #8a1551;
  --policy-primary-dark: #5c0b34;
  --policy-gold: #d4af37;
  --policy-gold-light: #f5e6a8;
  --policy-gold-dark: #aa7c11;
  --policy-bg-dark: #12030f;
  --policy-bg-dark-alt: #1e0719;
  --policy-card-bg: #ffffff;
  --policy-text-main: #1e293b;
  --policy-text-muted: #64748b;
  --policy-border: rgba(212, 175, 55, 0.18);
  --policy-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --policy-shadow-hover: 0 20px 35px -5px rgba(138, 21, 81, 0.1), 0 8px 16px -2px rgba(212, 175, 55, 0.15);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.policy-hero {
  position: relative;
  padding: 130px 0 70px;
  background: linear-gradient(145deg, #180313 0%, #29061e 50%, #0d010b 100%);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.policy-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
}

.policy-hero-orb--1 {
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--policy-gold) 0%, transparent 70%);
}

.policy-hero-orb--2 {
  bottom: -60px;
  left: 5%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--policy-primary) 0%, transparent 70%);
}

.policy-hero-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

/* Breadcrumb */
.policy-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.policy-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.policy-breadcrumb a:hover {
  color: var(--policy-gold);
}

.policy-breadcrumb-sep {
  color: rgba(212, 175, 55, 0.6);
  font-size: 11px;
}

.policy-breadcrumb-current {
  color: var(--policy-gold);
  font-weight: 800;
}

/* Hero Title & Subtitle */
.policy-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--policy-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.policy-hero-title {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #ffffff 30%, var(--policy-gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.policy-hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Main Policy Tabs Navigation
   -------------------------------------------------------------------------- */
.policy-tabs-section {
  margin-top: -30px;
  position: relative;
  z-index: 20;
}

.policy-nav-tabs-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(212, 175, 55, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.policy-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 15px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.policy-tab-btn svg {
  width: 19px;
  height: 19px;
  transition: transform 0.3s ease;
  color: inherit;
}

.policy-tab-btn:hover:not(.active) {
  color: var(--policy-primary);
  background: rgba(138, 21, 81, 0.05);
}

.policy-tab-btn.active {
  background: linear-gradient(135deg, var(--policy-primary) 0%, #a41b63 50%, var(--policy-gold-dark) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(138, 21, 81, 0.35);
}

.policy-tab-btn.active svg {
  transform: scale(1.1);
  color: #ffd700;
}

/* --------------------------------------------------------------------------
   Content Container
   -------------------------------------------------------------------------- */
.policy-content-section {
  padding: 50px 0 90px;
  background: #fdfbf9;
  min-height: 520px;
}

.policy-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Modern Luxury Spinner
   -------------------------------------------------------------------------- */
.policy-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 20px;
  text-align: center;
}

.policy-spinner-ring {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.policy-spinner-ring::before,
.policy-spinner-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.policy-spinner-ring::before {
  border-top-color: var(--policy-primary);
  border-right-color: var(--policy-primary);
  animation: spinSlow 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.policy-spinner-ring::after {
  border-bottom-color: var(--policy-gold);
  border-left-color: var(--policy-gold);
  animation: spinSlowReverse 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.policy-spinner-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--policy-gold);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.8);
  animation: goldPulse 1.5s ease-in-out infinite;
}

.policy-loader-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 6px;
}

.policy-loader-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes spinSlowReverse {
  to { transform: rotate(-360deg); }
}

@keyframes goldPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Policy Intro Card
   -------------------------------------------------------------------------- */
.policy-intro-card {
  background: linear-gradient(145deg, #ffffff 0%, #fdf8f4 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 22px;
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: var(--policy-shadow);
  position: relative;
  overflow: hidden;
}

.policy-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--policy-gold) 0%, var(--policy-primary) 100%);
  border-radius: 0 22px 22px 0;
}

.policy-intro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.policy-intro-title {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #150311;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-intro-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #92700c;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
}

.policy-intro-meta svg {
  width: 14px;
  height: 14px;
}

.policy-intro-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: #475569;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Policy Items List & Cards
   -------------------------------------------------------------------------- */
.policy-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.policy-item-card {
  background: var(--policy-card-bg);
  border: 1.5px solid #ede8e3;
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: var(--policy-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.policy-item-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--policy-shadow-hover);
  transform: translateY(-3px);
}

.policy-item-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.policy-item-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(138, 21, 81, 0.12) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: var(--policy-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-item-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.45;
  padding-top: 4px;
}

.policy-item-body {
  font-size: 14px;
  line-height: 1.85;
  color: #475569;
  margin: 0;
  padding-right: 52px;
}

/* --------------------------------------------------------------------------
   Empty & Error State
   -------------------------------------------------------------------------- */
.policy-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px dashed #cbd5e1;
}

.policy-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--policy-gold);
}

.policy-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px;
}

.policy-empty-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 auto 20px;
  max-width: 440px;
  line-height: 1.7;
}

.btn-policy-retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--policy-primary);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-policy-retry:hover {
  background: var(--policy-primary-dark);
  box-shadow: 0 4px 12px rgba(138, 21, 81, 0.3);
}

/* --------------------------------------------------------------------------
   Footer CTA Box
   -------------------------------------------------------------------------- */
.policy-footer-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, #1f0719 0%, #150311 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 36px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.policy-footer-cta-info h4 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}

.policy-footer-cta-info p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.6;
}

.policy-footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13.5px;
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-cta-contact svg,
.btn-cta-contact span {
  color: #ffffff !important;
  fill: currentColor;
}

.btn-cta-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  background: linear-gradient(135deg, #2ae06d 0%, #15a090 100%);
}

.btn-cta-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-shop:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Mobile Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .policy-hero {
    padding: 110px 0 55px;
  }

  .policy-hero-title {
    font-size: 28px;
  }

  .policy-hero-desc {
    font-size: 13.5px;
  }

  .policy-nav-tabs-wrapper {
    margin: 0 15px;
  }

  .policy-tab-btn {
    padding: 11px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .policy-tab-btn svg {
    width: 16px;
    height: 16px;
  }

  .policy-intro-card {
    padding: 22px 20px;
    border-radius: 18px;
  }

  .policy-intro-title {
    font-size: 20px;
  }

  .policy-item-card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .policy-item-title {
    font-size: 15.5px;
  }

  .policy-item-body {
    padding-right: 0;
    margin-top: 8px;
    font-size: 13px;
  }

  .policy-footer-cta {
    padding: 24px 20px;
    text-align: center;
    justify-content: center;
  }

  .policy-footer-cta-info {
    text-align: center;
  }

  .policy-footer-cta-actions {
    width: 100%;
    justify-content: center;
  }

  .btn-cta-contact,
  .btn-cta-shop {
    width: 100%;
    justify-content: center;
  }
}
