/* Base theme structure with CSS custom properties */
/* Theme variables will be overridden by theme-specific files */

:root {
  /* Default colors (Vintage theme as default) */
  --bg-primary: #f4e8d0;
  --bg-secondary: #e8dcc0;
  --bg-tertiary: #d4c4a8;
  --text-primary: #3d2817;
  --text-secondary: #5d4e37;
  --text-tertiary: #8b6f47;
  --accent-primary: #8b6f47;
  --accent-secondary: #6b5d4f;
  --border-color: #8b6f47;
  
  /* Typography */
  --font-title: 'Cinzel', serif;
  --font-subtitle: 'Crimson Text', serif;
  --font-body: 'Crimson Text', serif;
  --font-date: 'Crimson Text', serif;
  
  /* Effects */
  --shadow-primary: 0 0 20px rgba(0, 0, 0, 0.5);
  --shadow-secondary: inset 0 0 100px rgba(139, 111, 71, 0.1);
  --glow-primary: none;
  --glow-secondary: none;
  
  /* Decorations */
  --decoration-icon: '⚔';
  --decoration-divider: '';
}

/* Base journal structure */
body {
  margin: 0;
  padding: 2rem;
  min-height: 100vh;
  font-family: var(--font-body);
  transition: background 0.5s ease, color 0.5s ease;
}

.journal-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-primary);
  box-shadow: var(--shadow-primary), var(--shadow-secondary);
  border: 3px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem 4rem;
  position: relative;
  transition: all 0.5s ease;
}

.journal-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.journal-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  transition: all 0.5s ease;
}

.journal-subtitle {
  font-family: var(--font-subtitle);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  transition: all 0.5s ease;
}

.content-section {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.5rem;
  transition: all 0.5s ease;
}

.entry {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.5s ease;
}

.entry-date {
  font-family: var(--font-date);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.5s ease;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tool-card::before {
  content: var(--decoration-icon);
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--bg-primary);
  padding: 0 5px;
  font-size: 1.2rem;
}

.tool-name {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  transition: all 0.5s ease;
}

.tool-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: all 0.5s ease;
}

.decorative-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
  margin: 2rem 0;
  transition: all 0.5s ease;
}


/* Theme selector - Hidden by default */
.theme-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  display: none; /* Hidden by default */
}

.theme-selector.visible {
  display: block;
}

.theme-selector label {
  display: block;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.theme-selector select {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  min-width: 200px;
  transition: all 0.3s ease;
}

.theme-selector select:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
}

.theme-selector select:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.3);
}