/* GlassLint Core Design System & Stylesheet */

/* Fonts Import */
@import url('local_fonts.css');

:root {
  /* Colors (Light Theme Defaults - Bright equivalent of dark theme) */
  --bg-base: #E2E8F0;
  --bg-gradient: radial-gradient(circle at 0% 0%, rgba(0, 210, 255, 0.12), transparent 50%),
                  radial-gradient(circle at 100% 100%, rgba(0, 230, 118, 0.1), transparent 50%);
  --panel-bg: rgba(255, 255, 255, 0.4);
  --panel-border: rgba(255, 255, 255, 0.6);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --accent-color: #00B4D8;
  --accent-glow: rgba(0, 180, 216, 0.3);
  --success-color: #00C853;
  --alert-color: #E65100;
  --shadow-color: rgba(15, 23, 42, 0.08);
  --glass-blend: rgba(255, 255, 255, 0.3);
  --glass-shadow: rgba(15, 23, 42, 0.15);

  /* Typography */
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', Consolas, monospace;

  /* Layout Constants */
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --transition-smooth: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables override */
[data-theme="dark"] {
  --bg-base: #0A0F14;
  --bg-gradient: radial-gradient(circle at 0% 0%, rgba(0, 210, 255, 0.1), transparent 50%),
                  radial-gradient(circle at 100% 100%, rgba(0, 230, 118, 0.08), transparent 50%);
  --panel-bg: rgba(10, 15, 20, 0.4);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #F5F5F7;
  --text-secondary: #86868B;
  --accent-glow: rgba(0, 210, 255, 0.6);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --glass-blend: rgba(0, 0, 0, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.3);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Header & Navigation Styles */
header {
  display: block;
  padding: 24px 0;
  width: 100%;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 24px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-glow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--success-color));
  box-shadow: 0 0 15px var(--accent-glow);
  position: relative;
}

.logo-glow::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: var(--bg-base);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-toggle-container {
  display: flex;
  align-items: center;
}

.theme-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 30px;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
}

.theme-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High-Density Layout Wrapper */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  flex: 1;
}

/* Central Workspace Column */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Ad Placement Layout Styling */
.ad-banner-top,
.ad-banner-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ad-skyscraper-left {
  position: fixed;
  left: 24px;
  top: calc(50% - 37.5vh);
  width: 160px;
  height: 75vh;
  z-index: 10;
}

.ad-skyscraper-right {
  position: fixed;
  right: 24px;
  top: calc(50% - 37.5vh);
  width: 160px;
  height: 75vh;
  z-index: 10;
}

/* Premium Simulated Ad Card */
.ad-mock-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 24px var(--shadow-color);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  width: 100%;
  height: 100%;
}

.ad-mock-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ad-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

[data-theme="dark"] .ad-badge {
  background: rgba(255, 255, 255, 0.08);
}

.ad-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ad-image-placeholder {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(0, 230, 118, 0.1));
  height: 120px;
  border-radius: var(--border-radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.ad-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}

.ad-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  flex-grow: 1;
}

.ad-cta {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Banner specific configurations */
.ad-banner-top .ad-mock-card,
.ad-banner-bottom .ad-mock-card {
  height: 90px;
  max-width: 728px;
}

.ad-banner-top .ad-content,
.ad-banner-bottom .ad-content {
  flex-direction: row;
  align-items: center;
  padding: 12px 24px;
  gap: 16px;
}

.ad-banner-top .ad-image-placeholder,
.ad-banner-bottom .ad-image-placeholder {
  height: 66px;
  width: 100px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.ad-banner-top .ad-cta,
.ad-banner-bottom .ad-cta {
  margin-top: 0;
  flex-shrink: 0;
}

/* Core Interface Container */
.utility-container {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 50px var(--shadow-color);
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* Control Panel Column */
.control-sidebar {
  padding: 32px;
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.slider-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Custom Styled Input Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  outline: none;
  transition: var(--transition-smooth);
}

[data-theme="dark"] input[type="range"] {
  background: rgba(255, 255, 255, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Select inputs & text color picker */
.color-picker-row {
  display: flex;
  gap: 12px;
}

.color-input-wrapper {
  position: relative;
  flex: 1;
}

input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 100%;
  height: 40px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  background: transparent;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.text-value-input {
  flex: 2;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  border-radius: var(--border-radius-md);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

[data-theme="dark"] .text-value-input {
  background: rgba(255, 255, 255, 0.05);
}

.text-value-input option {
  background: var(--bg-base);
  color: var(--text-primary);
}

.text-value-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Presets Container */
.presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preset-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--border-radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

[data-theme="dark"] .preset-btn {
  background: rgba(255, 255, 255, 0.05);
}

.preset-btn:hover {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
}

.preset-btn.active {
  background: var(--accent-color) !important;
  color: #000 !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 12px var(--accent-glow) !important;
}

.preset-btn:focus-visible {
  outline: 2px solid var(--accent-color);
}

/* Toggle Switch Control */
.toggle-switch-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.08);
  transition: .4s;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
}

[data-theme="dark"] .switch-slider {
  background-color: rgba(255, 255, 255, 0.1);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--accent-color);
}

input:focus-visible + .switch-slider {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

input:checked + .switch-slider:before {
  transform: translateX(24px);
  background-color: #000;
}

/* Interactive Canvas Panel Column */
.canvas-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.canvas-viewport-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 8px 16px var(--shadow-color);
}

/* Canvas background image element */
.simulation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Liquid Glass Interactive Layer container */
.glass-overlay-element {
  position: absolute;
  z-index: 2;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  cursor: move;
  user-select: none;
  min-width: 120px;
  min-height: 80px;
  overflow: hidden;
  box-sizing: border-box;
  will-change: transform;
}

/* Glass border reflection simulation */
.glass-overlay-element::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 4;
}

.glass-reflection-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 3;
}

.glass-noise-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
}

/* Text Element Inside simulated glass */
.preview-text {
  font-family: var(--font-sans);
  font-weight: 700;
  text-align: center;
  padding: 10px;
  z-index: 5;
  transition: font-size 0.1s ease, color 0.1s ease;
  word-break: break-word;
}

.preview-icon {
  user-select: none;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.preview-icon svg {
  display: block;
  pointer-events: none;
  transition: width 0.1s ease, height 0.1s ease, fill 0.1s ease;
}

/* Bounding box / Resize Handles */
.resize-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 6;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
  will-change: transform;
}

.resize-handle:hover {
  transform: scale(1.25);
}

.resize-handle.tl {
  top: 4px;
  left: 4px;
  cursor: nwse-resize;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D2FF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='4' x2='20' y2='20'/%3E%3Cpolyline points='12 4 4 4 4 12'/%3E%3Cpolyline points='12 20 20 20 20 12'/%3E%3C/svg%3E");
}

.resize-handle.tr {
  top: 4px;
  right: 4px;
  cursor: nesw-resize;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D2FF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='20' x2='20' y2='4'/%3E%3Cpolyline points='12 4 20 4 20 12'/%3E%3Cpolyline points='12 20 4 20 4 12'/%3E%3C/svg%3E");
}

.resize-handle.bl {
  bottom: 4px;
  left: 4px;
  cursor: nesw-resize;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D2FF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='20' x2='20' y2='4'/%3E%3Cpolyline points='12 4 20 4 20 12'/%3E%3Cpolyline points='12 20 4 20 4 12'/%3E%3C/svg%3E");
}

.resize-handle.br {
  bottom: 4px;
  right: 4px;
  cursor: nwse-resize;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D2FF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='4' x2='20' y2='20'/%3E%3Cpolyline points='12 4 4 4 4 12'/%3E%3Cpolyline points='12 20 20 20 20 12'/%3E%3C/svg%3E");
}

/* Ingest uploader wrapper style */
.upload-zone-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.file-upload-btn {
  flex: 1;
  background: var(--panel-bg);
  border: 1px dashed var(--panel-border);
  color: var(--text-primary);
  padding: 12px;
  border-radius: var(--border-radius-md);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.file-upload-btn:hover {
  border-color: var(--accent-color);
  background: rgba(0, 210, 255, 0.05);
}

.file-upload-btn:focus-visible {
  outline: 2px solid var(--accent-color);
}

.reset-img-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.reset-img-btn:hover {
  color: var(--alert-color);
  border-color: var(--alert-color);
}

.reset-img-btn:focus-visible {
  outline: 2px solid var(--alert-color);
}

/* Contrast results panel styling */
.results-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[data-theme="dark"] .results-card {
  background: rgba(255, 255, 255, 0.03);
}

.results-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contrast-ratio-big {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -1px;
}

.status-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pass {
  background: rgba(0, 230, 118, 0.15);
  color: var(--success-color);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.status-fail {
  background: rgba(255, 179, 0, 0.15);
  color: var(--alert-color);
  border: 1px solid rgba(255, 179, 0, 0.2);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compliance-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compliance-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.compliance-status {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Code Export Styling */
.code-console-wrapper {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 16px var(--shadow-color);
}

[data-theme="dark"] .code-console-wrapper {
  background: #05080c;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--panel-border);
}

.console-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.copy-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--accent-color);
}

.code-display {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-all;
}

/* Footer elements */
footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--panel-border);
  margin-top: auto;
}

.privacy-notice {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-links {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.aeo-faq-section {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: 0 10px 30px var(--shadow-color);
  margin-top: 12px;
}

.faq-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Background Toggle Selector styling */
.background-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--panel-border);
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  margin-top: 4px;
}

[data-theme="dark"] .background-mode-toggle {
  background: rgba(255, 255, 255, 0.02);
}

.mode-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.mode-label.active {
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Responsiveness adjustments */
@media (max-width: 1440px) {
  .ad-skyscraper-left,
  .ad-skyscraper-right {
    display: none; /* Auto-suppression of skyscrapers on smaller layouts */
  }
}

@media (max-width: 1080px) {
  .layout-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .utility-container {
    grid-template-columns: 1fr;
  }
  
  .control-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    max-height: none;
  }
  
  header {
    padding: 24px 16px;
  }
}

/* GDPR Cookie Banner styling */
.cookie-banner-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.cookie-banner-content {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px var(--glass-shadow), 0 0 0 1px var(--panel-border);
  padding: 24px 32px;
  max-width: 1080px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-text-side {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.cookie-text-side strong {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  display: inline-block;
  margin-bottom: 4px;
}

.cookie-btn-side {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-action-btn {
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--panel-border);
  transition: var(--transition-smooth);
}

.cookie-action-btn.accept {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.cookie-action-btn.accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.cookie-action-btn.reject {
  background: var(--panel-bg);
  color: var(--text-primary);
}

.cookie-action-btn.reject:hover {
  transform: translateY(-2px);
  border-color: var(--text-primary);
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    text-align: center;
  }
  
  .cookie-btn-side {
    width: 100%;
    justify-content: center;
  }
}
