/* Cookie Consent styles — arslanemre.com (externalized from includes/cookie-consent.php) */

/* ── Reset / Base ── */
#cc-banner *, #cc-modal * { box-sizing: border-box; }

/* ── Bottom Banner (Glassmorphism & Floating) ── */
#cc-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  color: #1a1a1a;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
#cc-banner.cc-visible { transform: translateY(0); opacity: 1; }
#cc-banner-content { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 6px; }
#cc-banner-title { font-weight: 600; font-size: 1rem; color: #000; margin: 0; display: flex; align-items: center; gap: 8px;}
#cc-banner-text { line-height: 1.5; margin: 0; color: #555; }
#cc-banner-text a { color: #1a1a1a; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.2); transition: border-color 0.2s; }
#cc-banner-text a:hover { border-color: #1a1a1a; }

#cc-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
#cc-btn-preferences {
  background: none; border: none; cursor: pointer;
  color: #555; font-size: 0.875rem;
  font-family: inherit; font-weight: 500;
  padding: 8px 12px; transition: color 0.2s, background 0.2s;
  border-radius: 8px;
}
#cc-btn-preferences:hover { color: #1a1a1a; background: rgba(0,0,0,0.04); }

#cc-btn-deny, #cc-btn-accept {
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#cc-btn-deny {
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.5); color: #1a1a1a;
}
#cc-btn-deny:hover { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.2); transform: translateY(-1px); }
#cc-btn-accept {
  border: 1px solid #111;
  background: #111; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
#cc-btn-accept:hover { background: #000; box-shadow: 0 6px 16px rgba(0,0,0,0.15); transform: translateY(-1px); }

#cc-btn-close-banner {
  background: none; border: none; cursor: pointer;
  color: #888; display: flex; align-items: center; justify-content: center;
  padding: 8px; margin-left: 4px; border-radius: 50%;
  transition: all 0.2s;
}
#cc-btn-close-banner:hover { color: #1a1a1a; background: rgba(0,0,0,0.05); }
#cc-btn-close-banner svg { width: 18px; height: 18px; }

/* ── Modal Overlay (Glassmorphism backdrop) ── */
#cc-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
#cc-overlay.cc-open { opacity: 1; visibility: visible; }

/* ── Modal Box ── */
#cc-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%; max-width: 540px;
  max-height: 85vh; overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1a1a1a;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
#cc-overlay.cc-open #cc-modal { transform: translateY(0) scale(1); }

/* Custom Scrollbar for Modal */
#cc-modal::-webkit-scrollbar { width: 6px; }
#cc-modal::-webkit-scrollbar-track { background: transparent; }
#cc-modal::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
#cc-modal::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

#cc-modal-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(0,0,0,0.03); border: none; cursor: pointer;
  color: #555; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  transition: all 0.2s;
}
#cc-modal-close:hover { background: rgba(0,0,0,0.08); color: #000; transform: scale(1.05); }
#cc-modal-close svg { width: 16px; height: 16px; }

#cc-modal-header { margin-bottom: 24px; padding-right: 24px; }
#cc-modal-title {
  font-size: 1.35rem; font-weight: 600;
  margin: 0 0 12px; color: #111; letter-spacing: -0.01em;
}
#cc-modal-intro {
  font-size: 0.875rem; color: #666; line-height: 1.6;
  margin: 0;
}

/* ── Top Actions ── */
#cc-modal-top-actions {
  display: flex; gap: 12px; margin-bottom: 32px;
}
#cc-btn-reject-all, #cc-btn-allow-all {
  flex: 1; padding: 12px; border-radius: 12px;
  font-size: 0.875rem; font-family: inherit; font-weight: 500; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#cc-btn-reject-all {
  border: 1px solid rgba(0,0,0,0.1); background: transparent; color: #111;
}
#cc-btn-reject-all:hover { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.2); }
#cc-btn-allow-all {
  border: 1px solid #111; background: #111; color: #fff;
}
#cc-btn-allow-all:hover { background: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* ── Category Sections ── */
#cc-modal .categories-title {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: #888; margin: 0 0 12px;
}
.cc-category {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fafafa;
  transition: background 0.2s, border-color 0.2s;
}
.cc-category:hover {
  background: #fff; border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.cc-category-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; cursor: default;
}
.cc-category-header .cc-cat-title {
  font-size: 0.95rem; font-weight: 600; margin: 0; color: #111;
}
.cc-category-desc {
  font-size: 0.8125rem; color: #666; line-height: 1.5; margin: 0;
}
.cc-always-active {
  font-size: 0.75rem; font-weight: 600; color: #10B981;
  background: rgba(16, 185, 129, 0.1); padding: 4px 8px; border-radius: 20px;
}

/* ── Toggle Switch (iOS Style) ── */
.cc-toggle { position: relative; display: inline-block; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute; inset: 0;
  background: #e5e7eb; border-radius: 24px;
  transition: background 0.3s;
}
.cc-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  left: 2px; bottom: 2px; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-toggle input:checked + .cc-slider { background: #10B981; }
.cc-toggle input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-toggle input:focus-visible + .cc-slider { outline: 2px solid #111; outline-offset: 2px; }

/* ── Confirm Button ── */
#cc-btn-confirm {
  display: block; width: 100%;
  margin-top: 24px; padding: 14px;
  background: #111; color: #fff;
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 0.95rem; font-family: inherit; font-weight: 500;
  transition: all 0.2s;
}
#cc-btn-confirm:hover { background: #000; box-shadow: 0 6px 16px rgba(0,0,0,0.15); transform: translateY(-1px); }

/* ── Responsive ── */
@media (max-width: 768px) {
  #cc-banner {
    bottom: 0; left: 0; right: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: none; border-left: none; border-right: none;
    padding: 24px 20px;
    flex-direction: column; align-items: stretch; gap: 20px;
  }
  #cc-banner-actions { justify-content: stretch; width: 100%; }
  #cc-btn-deny, #cc-btn-accept { flex: 1; text-align: center; }
  #cc-btn-close-banner { position: absolute; top: 16px; right: 16px; }
  #cc-banner-content { padding-right: 24px; }
}
@media (max-width: 480px) {
  #cc-modal { padding: 24px 20px; border-radius: 16px 16px 0 0; max-height: 90vh; }
  #cc-overlay { padding: 0; align-items: flex-end; }
  #cc-overlay.cc-open #cc-modal { transform: translateY(0); }
  #cc-modal-top-actions { flex-direction: column; }
}
