/* ============================================
   COOKIE CONSENT BANNER STYLES
============================================ */

#cookie-banner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#cookie-banner-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-container {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#cookie-banner-overlay.is-visible .cookie-banner-container {
  transform: translateY(0) scale(1);
}

.cookie-banner-header {
  padding: 24px 32px 16px;
}

.cookie-banner-title {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cookie-banner-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(250, 250, 250, 0.7);
}

/* Detail View */
.cookie-banner-details {
  padding: 0 32px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  border-top: 1px solid transparent;
}

.cookie-banner-details.is-open {
  max-height: 400px;
  padding: 16px 32px 24px;
  border-top-color: rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-title {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.cookie-category-desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(250, 250, 250, 0.5);
}

/* Switch Toggle */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--blue, #004C80);
  border-color: var(--blue, #004C80);
}

input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

input:disabled + .cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

input:disabled + .cookie-slider:before {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Action Buttons */
.cookie-banner-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .cookie-banner-actions {
    grid-template-columns: 1fr;
  }
}

.cookie-btn {
  font-family: var(--font-mono, 'Inter', monospace);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-align: center;
}

.cookie-btn:hover, .cookie-btn:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
}

.cookie-btn:active {
  transform: translateY(1px);
}

/* ============================================
   EMBED PLACEHOLDERS (MICRO CONSENT)
============================================ */

.embed-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  border-radius: inherit;
}

.embed-placeholder img.embed-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.5s;
}

.embed-placeholder:hover img.embed-thumb {
  opacity: 0.4;
  transform: scale(1.05);
}

.embed-placeholder-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 400px;
}

.embed-placeholder-title {
  font-family: var(--font-display, sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.embed-placeholder-text {
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  color: rgba(250, 250, 250, 0.7);
  margin-bottom: 16px;
  line-height: 1.4;
}

.embed-placeholder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red, #B41A04);
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.embed-placeholder:hover .embed-placeholder-btn {
  transform: translateY(-2px);
  background: #c91e06;
}
