/* Fantasy Spellbook Theme */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=UnifrakturMaguntia&family=Cinzel+Decorative:wght@400;700&display=swap');

body[data-theme="fantasy"] {
  background: 
    radial-gradient(circle at 50% 50%, #1a0a2e 0%, #0a0514 100%),
    linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  --bg-primary: #2d1b3d;
  --bg-secondary: #1a0f2e;
  --bg-tertiary: #0f0819;
  --text-primary: #da70d6;
  --text-secondary: #9370db;
  --text-tertiary: #d8bfd8;
  --accent-primary: #8a2be2;
  --accent-secondary: #da70d6;
  --border-color: #8a2be2;
  --font-title: 'UnifrakturMaguntia', cursive;
  --font-subtitle: 'Cinzel Decorative', serif;
  --font-body: 'MedievalSharp', cursive;
  --font-date: 'Cinzel Decorative', serif;
  --decoration-icon: '✨';
  --shadow-primary: 0 0 60px rgba(138, 43, 226, 0.4), inset 0 0 80px rgba(75, 0, 130, 0.2);
  --glow-primary: 0 0 20px rgba(218, 112, 214, 0.8), 0 0 40px rgba(138, 43, 226, 0.6);
}

body[data-theme="fantasy"] .journal-container {
  background: 
    linear-gradient(135deg, #2d1b3d 0%, #1a0f2e 50%, #0f0819 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(138, 43, 226, 0.05) 2px, rgba(138, 43, 226, 0.05) 4px);
  box-shadow: 
    0 0 60px rgba(138, 43, 226, 0.4),
    inset 0 0 80px rgba(75, 0, 130, 0.2),
    0 0 0 6px #4b0082,
    0 0 0 10px #2d1b3d;
  border: 5px solid #8a2be2;
}

body[data-theme="fantasy"] .journal-title {
  text-shadow: 
    0 0 20px rgba(218, 112, 214, 0.8),
    0 0 40px rgba(138, 43, 226, 0.6),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 4rem;
}

body[data-theme="fantasy"] .journal-subtitle {
  font-style: italic;
  text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
  font-size: 1.3rem;
}

body[data-theme="fantasy"] .section-title {
  text-shadow: 0 0 10px rgba(218, 112, 214, 0.5);
  font-size: 2rem;
  position: relative;
}

body[data-theme="fantasy"] .section-title::before {
  content: '✦';
  margin-right: 0.5rem;
  color: #9370db;
}

body[data-theme="fantasy"] .entry {
  background: rgba(75, 0, 130, 0.15);
  padding: 1.5rem;
  border-left: 3px solid #8a2be2;
  border-radius: 4px;
  box-shadow: 
    inset 0 0 30px rgba(75, 0, 130, 0.2),
    0 0 10px rgba(138, 43, 226, 0.1);
}

body[data-theme="fantasy"] .entry-date {
  font-style: italic;
  text-shadow: 0 0 5px rgba(186, 85, 211, 0.5);
  font-size: 1rem;
}

body[data-theme="fantasy"] .tool-card {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.3) 0%, rgba(45, 27, 61, 0.5) 100%);
  box-shadow: 
    inset 0 0 20px rgba(75, 0, 130, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

body[data-theme="fantasy"] .tool-card:hover {
  box-shadow: 
    inset 0 0 30px rgba(138, 43, 226, 0.4),
    0 4px 16px rgba(138, 43, 226, 0.4),
    0 0 30px rgba(218, 112, 214, 0.3);
  border-color: #da70d6;
}

body[data-theme="fantasy"] .tool-card::before {
  background: #2d1b3d;
  border: 2px solid #8a2be2;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  padding: 5px 10px;
}

body[data-theme="fantasy"] .tool-name {
  text-shadow: 0 0 8px rgba(218, 112, 214, 0.5);
  font-size: 1.2rem;
}

body[data-theme="fantasy"] .decorative-line {
  height: 2px;
  background: linear-gradient(to right, 
    transparent 0%, 
    #8a2be2 20%, 
    #da70d6 50%, 
    #8a2be2 80%, 
    transparent 100%);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  position: relative;
}

body[data-theme="fantasy"] .decorative-line::before,
body[data-theme="fantasy"] .decorative-line::after {
  content: '✦';
  position: absolute;
  top: -10px;
  color: #9370db;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(147, 112, 219, 0.8);
}

body[data-theme="fantasy"] .decorative-line::before {
  left: 20%;
}

body[data-theme="fantasy"] .decorative-line::after {
  right: 20%;
}

/* Magical glow effects */
body[data-theme="fantasy"] .journal-container::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  top: 10%;
  right: 15%;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

body[data-theme="fantasy"] .journal-container::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  bottom: 15%;
  left: 10%;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}