/* ========================
   Synthwave Theme
   ======================== */

/* Base Synthwave colors - Light mode */
:root[data-design="synthwave"] {
  --font-display: 'Raleway', 'Montserrat', system-ui, sans-serif;
  --font-sans: 'Raleway', 'Montserrat', system-ui, sans-serif;

  --color-bg: #0a0e27;
  --color-bg-accent: #1a1f3a;
  --color-card: #16213ecc;
  --color-border: #ff006e;
  --color-border-strong: #00f5ff;
  --color-text: #ffffff;
  --color-text-muted: #b0b0ff;
  --color-accent: #ff006e;
  --shadow: 0 0 20px rgba(255, 0, 110, 0.4), 0 0 40px rgba(0, 245, 255, 0.2);
  --focus-ring: 0 0 0 2px #0a0e27, 0 0 0 4px #00f5ff;
  
  --polaroid-bg: #1a1f3a;
  --polaroid-img-filter: brightness(0.9) contrast(1.1);
}

/* Synthwave dark mode */
:root[data-design="synthwave"][data-theme="dark"] {
  --color-bg: #050810;
  --color-bg-accent: #0d1220;
  --color-card: #0f1928cc;
  --color-border: #ff10c5;
  --color-border-strong: #00ffff;
  --color-text: #ffffff;
  --color-text-muted: #c0c0ff;
  --color-accent: #00ffff;
  --shadow: 0 0 30px rgba(255, 16, 197, 0.5), 0 0 50px rgba(0, 255, 255, 0.3);
  --polaroid-bg: #0d1220;
  --polaroid-img-filter: brightness(0.85) contrast(1.2);
}

/* Synthwave light mode */
:root[data-design="synthwave"][data-theme="light"] {
  --color-bg: #1a0f2e;
  --color-bg-accent: #2a1a3e;
  --color-card: #3a2a4ecc;
  --color-border: #ff006e;
  --color-border-strong: #00f5ff;
  --color-text: #ffffff;
  --color-text-muted: #d0a0ff;
  --color-accent: #ff006e;
  --shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

/* Synthwave Card */
:root[data-design="synthwave"] .card {
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: 0.2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  color: var(--color-text);
  font-family: var(--font-sans);
}

:root[data-design="synthwave"] .name {
  color: var(--color-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

:root[data-design="synthwave"] .tagline {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Synthwave Polaroid */
:root[data-design="synthwave"] .polaroid {
  background: var(--polaroid-bg);
  border: 2px solid var(--color-border);
  border-radius: 0;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

:root[data-design="synthwave"] .polaroid img {
  border: none;
  border-radius: 0;
  filter: var(--polaroid-img-filter);
}

/* Synthwave Buttons */
:root[data-design="synthwave"] .btn {
  --btn-border: var(--color-border-strong);
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--btn-border);
  border-radius: 0.2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

:root[data-design="synthwave"] .btn::before {
  display: none;
}

:root[data-design="synthwave"] .btn:hover {
  background: var(--color-border-strong);
  color: #000000;
  border-color: var(--color-border-strong);
  box-shadow: 0 0 20px var(--color-border-strong);
}

:root[data-design="synthwave"] .btn:focus-visible {
  outline: 2px dashed var(--color-border-strong);
  outline-offset: 2px;
}

:root[data-design="synthwave"] .btn:active {
  transform: scale(0.98);
}

/* Synthwave brand buttons */
:root[data-design="synthwave"] .btn--linkedin,
:root[data-design="synthwave"] .btn--github,
:root[data-design="synthwave"] .btn--unsplash {
  --btn-border: var(--color-border-strong);
}

:root[data-design="synthwave"] .btn--linkedin:hover,
:root[data-design="synthwave"] .btn--github:hover,
:root[data-design="synthwave"] .btn--unsplash:hover {
  background: var(--color-border-strong);
  color: #000000;
  box-shadow: 0 0 20px var(--color-border-strong);
}

/* Synthwave Theme Toggle */
:root[data-design="synthwave"] .theme-toggle__switch {
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: 0.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

:root[data-design="synthwave"] .theme-toggle__switch:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 0 20px var(--color-border-strong);
}

:root[data-design="synthwave"] .theme-toggle__icon {
  color: var(--color-text);
}

:root[data-design="synthwave"] .theme-toggle__slider {
  background: var(--color-border-strong);
  border-radius: 0;
}

/* Synthwave Dropdown */
:root[data-design="synthwave"] .theme-dropdown {
  background: var(--color-card);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: 0.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f5ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
  background-size: 1rem;
  padding-right: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

:root[data-design="synthwave"] .theme-dropdown:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 0 20px var(--color-border-strong);
}

:root[data-design="synthwave"] .theme-dropdown:focus-visible {
  outline: 2px dashed var(--color-border-strong);
  outline-offset: 2px;
  border-color: var(--color-border-strong);
}

:root[data-design="synthwave"] .theme-dropdown option {
  background: var(--color-card);
  color: var(--color-text);
  font-family: var(--font-sans);
}

/* Synthwave responsive */
@media (max-width: 560px) {
  :root[data-design="synthwave"] .theme-dropdown {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    padding-right: 1.5rem;
  }
}
