/* ============================================
   THEMES - Temáticas estacionales
   Diseño: paletas sofisticadas, sin !important
   ============================================ */

/* ── Genérico para todos los temas ── */
body[data-theme] .window {
  backdrop-filter: blur(3px);
}

body[data-theme] .section-label {
  letter-spacing: 2.4px;
}

body[data-theme] .interests-list li {
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme] .skill-bar-container {
  background: rgba(0, 0, 0, 0.32);
}

body[data-theme] .window-content .cv-text,
body[data-theme] .window-content .skill-name,
body[data-theme] .window-content .interests-list li {
  color: var(--text-main);
}

/* Tooltip siempre blanco sobre fondo negro, independiente del tema */
body[data-theme] .window-content .skill-tooltip {
  color: #ffffff;
}

body[data-theme] .window-content h1 {
  color: var(--text-main);
}

body[data-theme] .window-content .section-label {
  color: color-mix(in srgb, var(--text-main) 60%, transparent);
}

body[data-theme] .window-header {
  background: color-mix(in srgb, var(--bg-cv) 92%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body[data-theme] .micro-line {
  color: color-mix(in srgb, var(--text-main) 80%, transparent);
}

/* Skill tree trigger — dark theme override */
body[data-theme] .skill-tree-trigger {
  color: var(--text-main);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
}

body[data-theme] .skill-tree-trigger:hover {
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
}

/* ============================================
   VALENTINE - Borgoña & Rosa Empolvado
   Elegante, cálido, íntimo
   ============================================ */
body[data-theme="valentine"] {
  --bg-cv: #16070e;
  --text-main: #f5dce6;
  --accent-red: #e8446c;
  --accent-r: 232;
  --accent-g: 68;
  --accent-b: 108;
}

body[data-theme="valentine"]::before {
  background:
    radial-gradient(600px 450px at 50% 55%, rgba(232, 68, 108, 0.14), transparent 55%),
    radial-gradient(400px 400px at 25% 80%, rgba(180, 60, 100, 0.08), transparent 50%),
    radial-gradient(350px 350px at 80% 25%, rgba(255, 180, 200, 0.06), transparent 50%);
}

body[data-theme="valentine"] .window {
  background: linear-gradient(155deg, rgba(28, 10, 18, 0.97), rgba(38, 14, 24, 0.98));
  border: 1px solid rgba(232, 68, 108, 0.25);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 200, 220, 0.05);
}

body[data-theme="valentine"] .bonbon-icon {
  background: linear-gradient(135deg, #e8446c, #c73860);
  box-shadow: 0 6px 24px rgba(232, 68, 108, 0.4);
}

body[data-theme="valentine"] .bonbon-icon.breathing {
  animation: valentinePulse 3s ease-in-out infinite;
}

@keyframes valentinePulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(232, 68, 108, 0.35); transform: scale(1); }
  50% { box-shadow: 0 8px 32px rgba(232, 68, 108, 0.55); transform: scale(1.03); }
}

body[data-theme="valentine"] .interests-list li:hover {
  background: rgba(232, 68, 108, 0.1);
  border-color: rgba(232, 68, 108, 0.3);
}

body[data-theme="valentine"] .valentine-interest-item {
  background: rgba(232, 68, 108, 0.12);
  border-color: rgba(232, 68, 108, 0.35);
  color: var(--text-main);
}

body[data-theme="valentine"] .valentine-interest-item::before {
  content: "♡";
  color: #e8446c;
}

/* ============================================
   CARNAVAL - Violeta Profundo & Oro
   Festivo pero sofisticado
   ============================================ */
body[data-theme="carnaval"] {
  --bg-cv: #0e0b1e;
  --text-main: #f0ecff;
  --accent-red: #a855f7;
  --accent-r: 168;
  --accent-g: 85;
  --accent-b: 247;
}

body[data-theme="carnaval"]::before {
  background:
    radial-gradient(500px 450px at 30% 40%, rgba(168, 85, 247, 0.12), transparent 50%),
    radial-gradient(450px 400px at 70% 60%, rgba(255, 193, 7, 0.08), transparent 50%),
    radial-gradient(350px 350px at 50% 85%, rgba(236, 72, 153, 0.06), transparent 50%);
}

body[data-theme="carnaval"] .window {
  background: linear-gradient(155deg, rgba(14, 11, 30, 0.97), rgba(22, 16, 42, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(200, 160, 255, 0.05);
}

body[data-theme="carnaval"] .window-content h1 {
  background: linear-gradient(135deg, #c084fc, #f59e0b, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="carnaval"] .bonbon-icon {
  background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
  background-size: 200% 200%;
  animation: carnavalShift 4s ease infinite;
}

@keyframes carnavalShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

body[data-theme="carnaval"] .interests-list li:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

/* ============================================
   NAVIDAD - Verde Bosque & Rojo Cereza
   ============================================ */
body[data-theme="navidad"] {
  --bg-cv: #0b1610;
  --text-main: #e4f5e8;
  --accent-red: #dc2626;
  --accent-r: 220;
  --accent-g: 38;
  --accent-b: 38;
}

body[data-theme="navidad"]::before {
  background:
    radial-gradient(600px 450px at 50% 35%, rgba(220, 38, 38, 0.1), transparent 50%),
    radial-gradient(450px 400px at 25% 70%, rgba(34, 120, 60, 0.08), transparent 50%),
    radial-gradient(350px 350px at 80% 70%, rgba(255, 215, 0, 0.05), transparent 50%);
}

body[data-theme="navidad"] .window {
  background: linear-gradient(155deg, rgba(11, 22, 16, 0.97), rgba(18, 32, 22, 0.98));
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(34, 120, 60, 0.08);
}

body[data-theme="navidad"] .bonbon-icon {
  background: linear-gradient(135deg, #dc2626, #16a34a);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.35);
}

body[data-theme="navidad"] .interests-list li:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-panel-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.admin-panel {
  background: linear-gradient(155deg, #141424, #1a1a32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.admin-panel h2 {
  color: #fff;
  margin: 0 0 24px 0;
  font-size: 22px;
  font-family: var(--mono);
}

.admin-themes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(3px);
}

.admin-theme-btn.active {
  border-color: var(--accent-red);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
}

.admin-theme-btn .theme-emoji {
  font-size: 26px;
}

/* Admin Login Form */
.admin-login-form h2,
.admin-themes-section h2 {
  color: #fff;
  margin: 0 0 24px 0;
  font-size: 22px;
  font-family: var(--mono);
}

.admin-login-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: -16px 0 20px 0;
}

.admin-login-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-login-form input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.admin-login-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.admin-login-form input:focus {
  outline: none;
  border-color: var(--accent-red);
}

.admin-login-error {
  color: #f87171;
  font-size: 14px;
  margin: 0;
}

.admin-login-btn {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--mono);
  transition: all 0.2s;
}

.admin-login-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.admin-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.admin-panel-close:hover {
  background: rgba(255, 255, 255, 0.15);
}
