/*
Theme Name: Dualismul
Theme URI: https://example.com/dualismul
Author: Echipa Dualismul
Author URI: https://example.com
Description: Tema WordPress pentru proiectul educativ "Dualismul — De la concepțiile antice la cele moderne". Design dark cu accente aurii, fonturi serif elegante.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dualismul
Tags: education, philosophy, dark, custom-menu, featured-images
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --background: 220 20% 7%;
  --foreground: 40 20% 90%;
  --card: 220 18% 11%;
  --card-foreground: 40 20% 90%;
  --primary: 38 70% 55%;
  --primary-foreground: 220 20% 7%;
  --secondary: 220 15% 16%;
  --secondary-foreground: 40 20% 85%;
  --muted: 220 15% 14%;
  --muted-foreground: 220 10% 55%;
  --accent: 38 50% 40%;
  --accent-foreground: 40 20% 95%;
  --border: 220 15% 18%;
  --gold: 38 70% 55%;
  --gold-light: 40 60% 70%;
  --gold-dark: 35 80% 35%;
  --parchment: 40 30% 92%;
  --ink: 220 20% 7%;
  --chapter-ancient: 200 50% 45%;
  --chapter-modern: 340 45% 50%;
  --chapter-contemporary: 160 40% 40%;
  --radius: 0.75rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', serif;
  background: linear-gradient(180deg, hsl(var(--background)), hsl(220 20% 5%));
  color: hsl(var(--foreground));
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: hsl(var(--gold-light)); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Font Utilities --- */
.font-display { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Cormorant Garamond', serif; }
.font-sans { font-family: 'Inter', sans-serif; }

/* --- Text Gradient Gold --- */
.text-gradient-gold {
  background: linear-gradient(135deg, hsl(var(--gold-light)), hsl(var(--gold)), hsl(var(--gold-dark)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(220 18% 9%));
}

.line-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.5), transparent);
}

.glow-gold {
  box-shadow: 0 0 40px hsl(var(--gold) / 0.15), 0 0 80px hsl(var(--gold) / 0.05);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--gold) / 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--gold) / 0.5); }

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.5s ease;
}
.nav.scrolled {
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--gold) / 0.1);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: hsl(var(--primary));
  letter-spacing: 0.15em;
  background: none;
  border: none;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s;
  background: none;
  border: none;
  text-decoration: none;
}
.nav-link:hover { color: hsl(var(--foreground)); }
.nav-link.active,
.nav-link.current-menu-item a,
.current-menu-item .nav-link { color: hsl(var(--primary)); }
.nav-link .indicator {
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: hsl(var(--primary));
  border-radius: 9999px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link.active .indicator,
.current-menu-item .nav-link .indicator { transform: scaleX(1); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: hsl(var(--primary));
  margin: 5px 0;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--gold) / 0.1);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.nav-mobile.open { max-height: 400px; }
.nav-mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-mobile-link.active,
.nav-mobile-link.current-menu-item {
  color: hsl(var(--primary));
  background: hsl(var(--secondary));
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-mobile { display: block; }
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(var(--background) / 0.6), hsl(var(--background) / 0.8), hsl(var(--background)));
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: hsl(var(--primary) / 0.7);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(40px);
}
.hero-title-sub {
  display: block;
  color: hsl(var(--foreground) / 0.8);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
}
.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  font-family: 'Cormorant Garamond', serif;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
}
.btn-primary {
  padding: 0.75rem 2rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  border-radius: 0.5rem;
  transition: filter 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { filter: brightness(1.1); color: hsl(var(--primary-foreground)); }
.btn-outline {
  padding: 0.75rem 2rem;
  border: 1px solid hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  border-radius: 0.5rem;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover { background: hsl(var(--primary) / 0.1); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}
.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid hsl(var(--primary) / 0.3);
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: hsl(var(--primary) / 0.5);
  border-radius: 9999px;
  animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ================================================
   SECTION HEADERS
   ================================================ */
.section { padding: 6rem 1.5rem; }
.section-inner { max-width: 56rem; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--primary) / 0.6);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 0.75rem;
}
.section-desc {
  color: hsl(var(--muted-foreground));
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================
   CHAPTER CARDS (expandable)
   ================================================ */
.chapter-cards { display: flex; flex-direction: column; gap: 1rem; }

.chapter-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(220 18% 9%));
  border: 1px solid hsl(var(--gold) / 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s;
}
.chapter-card:hover { border-color: hsl(var(--gold) / 0.2); }

.chapter-card-header {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.chapter-card-icon { font-size: 1.875rem; flex-shrink: 0; margin-top: 0.15rem; }

.chapter-card-info { flex: 1; min-width: 0; }
.chapter-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--primary) / 0.6);
  display: block;
  margin-bottom: 0.5rem;
}
.chapter-card-title {
  font-size: 1.375rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.chapter-card-preview {
  color: hsl(var(--muted-foreground));
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chapter-card-chevron {
  flex-shrink: 0;
  margin-top: 0.5rem;
  color: hsl(var(--primary) / 0.5);
  transition: transform 0.3s;
  width: 20px;
  height: 20px;
}
.chapter-card.expanded .chapter-card-chevron { transform: rotate(180deg); }

.chapter-card-body {
  display: none;
  padding: 0 2rem 2rem;
}

.chapter-card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.5), transparent);
  margin-bottom: 1.5rem;
}

.chapter-card-body p {
  color: hsl(var(--foreground) / 0.8);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; }
}
.highlight-item {
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--gold) / 0.05);
  border-radius: 0.5rem;
  padding: 1rem;
}
.highlight-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: hsl(var(--primary) / 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.highlight-value {
  color: hsl(var(--foreground) / 0.9);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ================================================
   SECTION DIVIDER
   ================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0;
}
.section-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.5), transparent);
}

/* ================================================
   PHILOSOPHER TIMELINE
   ================================================ */
.timeline { position: relative; padding: 2rem 0; }
.timeline-line {
  position: absolute;
  left: 1.5rem;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, hsl(var(--primary) / 0.3), transparent);
}
@media (min-width: 768px) {
  .timeline-line { left: 50%; }
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 1.5rem;
  width: 12px;
  height: 12px;
  background: hsl(var(--primary));
  border-radius: 50%;
  transform: translateX(-50%);
  margin-top: 1.5rem;
  z-index: 10;
  box-shadow: 0 0 0 4px hsl(var(--background));
}
@media (min-width: 768px) {
  .timeline-dot { left: 50%; }
}

.timeline-content {
  margin-left: 3.5rem;
  width: calc(100% - 3.5rem);
}
@media (min-width: 768px) {
  .timeline-content {
    margin-left: 0;
    width: 50%;
  }
  .timeline-item:nth-child(odd) .timeline-content { padding-right: 3rem; text-align: right; }
  .timeline-item:nth-child(even) .timeline-content { margin-left: 50%; padding-left: 3rem; }
}

.timeline-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(220 18% 9%));
  border: 1px solid hsl(var(--gold) / 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.3s;
}
.timeline-card:hover { border-color: hsl(var(--gold) / 0.2); }
.timeline-era {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--primary) / 0.5);
}
.timeline-name {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
}
.timeline-idea {
  color: hsl(var(--muted-foreground));
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ================================================
   MODERN SECTION — Comparison Grid
   ================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr 1fr; }
}

.comparison-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(220 18% 9%));
  border: 1px solid hsl(var(--gold) / 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.comparison-flag { font-size: 2.5rem; margin-bottom: 0.75rem; }
.comparison-name { font-size: 1.25rem; color: hsl(var(--foreground)); }
.comparison-dates {
  color: hsl(var(--muted-foreground));
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.comparison-items { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.comparison-item {
  background: hsl(var(--secondary) / 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.comparison-item-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--primary) / 0.6);
}
.comparison-item-value {
  color: hsl(var(--foreground) / 0.8);
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ================================================
   INTERACTIVE ACTIVITY
   ================================================ */
.activity-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(220 18% 9%));
  border: 1px solid hsl(var(--gold) / 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}
@media (min-width: 768px) { .activity-card { padding: 2.5rem; } }

.activity-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.activity-progress-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.activity-reset-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}
.activity-reset-btn:hover { color: hsl(var(--foreground)); }

.progress-track {
  width: 100%;
  height: 4px;
  background: hsl(var(--secondary));
  border-radius: 9999px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: hsl(var(--primary));
  border-radius: 9999px;
  transition: width 0.5s ease;
  width: 0%;
}

.activity-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .activity-columns { grid-template-columns: 1fr 1fr; }
}

.activity-columns-header {
  display: none;
}
@media (min-width: 768px) {
  .activity-columns-header {
    display: grid;
    grid-template-columns: 1fr 3rem 1fr;
    gap: 0;
    margin-bottom: 1rem;
  }
  .activity-columns-header .activity-column-title { margin-bottom: 0; }
}

.activity-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .activity-row {
    grid-template-columns: 1fr 3rem 1fr;
    gap: 0;
    align-items: center;
  }
}

.activity-row .match-btn {
  margin-bottom: 0;
}

.match-connector {
  display: none;
}
@media (min-width: 768px) {
  .match-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 0.25rem;
  }
  .connector-line {
    width: 100%;
    height: 2px;
    border-radius: 1px;
    transition: background 0.4s ease;
  }
  .match-connector.connected .connector-line {
    animation: lineAppear 0.4s ease-out;
  }
}

.concept-placeholder {
  border: 1px dashed hsl(var(--gold) / 0.1) !important;
  background: transparent !important;
  min-height: 3.25rem;
}

.activity-column-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.match-btn {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--gold) / 0.05);
  background: hsl(var(--secondary) / 0.5);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: hsl(var(--foreground) / 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}
.match-btn:hover:not(.matched):not(.disabled) { border-color: hsl(var(--gold) / 0.2); transform: scale(1.02); }
.match-btn:active:not(.matched):not(.disabled) { transform: scale(0.98); }
.match-btn .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.match-btn .philosopher-name { font-family: 'Playfair Display', serif; font-size: 1.0625rem; }
.match-btn.concept-btn span { font-family: 'Playfair Display', serif; font-size: 1.0625rem; }
.match-btn.selected {
  background: hsl(var(--primary) / 0.15);
  border-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}
.match-btn.matched {
  background: hsl(160 40% 40% / 0.1);
  border-color: hsl(160 40% 40% / 0.3);
  color: hsl(160 50% 55%);
  cursor: default;
}
.match-btn.concept-btn { cursor: default; color: hsl(var(--muted-foreground)); }
.match-btn.concept-btn.clickable {
  cursor: pointer;
  color: hsl(var(--foreground) / 0.8);
  border-color: hsl(var(--gold) / 0.1);
}
.match-btn.concept-btn.clickable:hover { border-color: hsl(var(--primary) / 0.3); }
.match-btn.wrong {
  background: hsl(0 60% 50% / 0.1);
  border-color: hsl(0 60% 50% / 0.3);
  color: hsl(0 60% 60%);
  animation: shake 0.5s ease-out;
}

.match-check { margin-left: auto; color: hsl(160 50% 55%); }

@keyframes lineAppear {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.activity-hint {
  text-align: center;
  margin-top: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  color: hsl(var(--primary) / 0.7);
}
.activity-hint strong { color: hsl(var(--primary)); }

.activity-complete {
  text-align: center;
  padding: 2.5rem 0;
}
.activity-complete-icon {
  font-size: 3rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
  animation: wiggle 0.5s ease 3;
}
.activity-complete h3 {
  font-size: 1.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.activity-complete .desc {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.activity-complete .subdesc {
  color: hsl(var(--primary) / 0.6);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

/* ================================================
   QUIZ SECTION
   ================================================ */
.quiz-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.quiz-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.quiz-tab:hover { opacity: 0.8; }
.quiz-tab.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.quiz-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(220 18% 9%));
  border: 1px solid hsl(var(--gold) / 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .quiz-card { padding: 2.5rem; } }

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.quiz-progress span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
}
.quiz-progress .counter { color: hsl(var(--muted-foreground)); }
.quiz-progress .score { color: hsl(var(--primary)); }

.quiz-question {
  font-size: 1.375rem;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-option {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--gold) / 0.05);
  background: hsl(var(--secondary) / 0.5);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: hsl(var(--foreground) / 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}
.quiz-option:hover:not(.answered) { border-color: hsl(var(--gold) / 0.2); }
.quiz-option .letter {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.quiz-option.correct {
  background: hsl(160 40% 40% / 0.1);
  border-color: hsl(160 40% 40% / 0.3);
  color: hsl(160 50% 55%);
}
.quiz-option.wrong {
  background: hsl(0 60% 50% / 0.1);
  border-color: hsl(0 60% 50% / 0.3);
  color: hsl(0 60% 60%);
  animation: shake 0.5s ease-out;
}
.quiz-option.dimmed {
  background: hsl(var(--secondary) / 0.3);
  border-color: hsl(var(--gold) / 0.05);
  color: hsl(var(--muted-foreground));
}
.quiz-option.answered { cursor: default; }

.quiz-explanation {
  margin-top: 1.5rem;
  padding: 1rem;
  background: hsl(var(--secondary) / 0.3);
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--gold) / 0.1);
  overflow: hidden;
}
.quiz-explanation p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.7);
}
.quiz-explanation strong { color: hsl(var(--primary)); }

.quiz-next-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: filter 0.3s;
}
.quiz-next-btn:hover { filter: brightness(1.1); }

.quiz-result {
  text-align: center;
  padding: 2.5rem 0;
}
.quiz-result-icon {
  font-size: 3rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}
.quiz-result h3 {
  font-size: 1.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.quiz-result .score-big {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.quiz-result .message {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 hsl(160 40% 40% / 0); }
  50% { box-shadow: 0 0 20px 5px hsl(160 40% 40% / 0.3); }
}
.quiz-correct-anim { animation: pulse-green 0.5s ease-out; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ================================================
   BIBLIOGRAPHY
   ================================================ */
.bib-tabs {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-bottom: 2rem;
  background: hsl(var(--secondary) / 0.3);
  padding: 0.25rem;
  border-radius: 0.75rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.bib-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}
.bib-tab:hover { color: hsl(var(--foreground)); }
.bib-tab.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.bib-tab svg { width: 16px; height: 16px; }

.bib-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(220 18% 9%));
  border: 1px solid hsl(var(--gold) / 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}
@media (min-width: 768px) { .bib-card { padding: 2rem; } }

.bib-list { display: flex; flex-direction: column; gap: 1rem; }
.bib-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.bib-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.4);
  margin-top: 0.625rem;
  flex-shrink: 0;
}
.bib-item p {
  color: hsl(var(--foreground) / 0.8);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ================================================
   PHILOSOPHER MASCOT
   ================================================ */
.mascot-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.mascot-bubble {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--gold) / 0.2);
  border-radius: 1rem;
  padding: 1rem;
  max-width: 260px;
  box-shadow: 0 10px 25px hsl(0 0% 0% / 0.3);
  position: relative;
  margin-right: 0.5rem;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s ease;
  display: none;
}
.mascot-bubble.visible {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mascot-bubble-arrow {
  position: absolute;
  bottom: -8px;
  right: 2rem;
  width: 16px;
  height: 16px;
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--gold) / 0.2);
  border-bottom: 1px solid hsl(var(--gold) / 0.2);
  transform: rotate(45deg);
}
.mascot-bubble-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  font-size: 1rem;
  line-height: 1;
  padding: 2px;
}
.mascot-bubble-close:hover { color: hsl(var(--foreground)); }
.mascot-bubble-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.9);
  padding-right: 1rem;
  line-height: 1.6;
}
.mascot-next-tip {
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: hsl(var(--primary));
  transition: color 0.2s;
}
.mascot-next-tip:hover { color: hsl(var(--primary) / 0.8); }

.mascot-avatar {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid hsl(var(--primary) / 0.4);
  box-shadow: 0 4px 15px hsl(var(--primary) / 0.1);
  background: hsl(var(--card));
  cursor: pointer;
  transition: transform 0.2s;
}
.mascot-avatar:hover { transform: scale(1.1); }
.mascot-avatar:active { transform: scale(0.95); }
.mascot-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mascot-notification {
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  background: hsl(var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-dot 1.5s infinite;
}
.mascot-notification svg {
  width: 10px;
  height: 10px;
  color: hsl(var(--primary-foreground));
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.mascot-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  color: hsl(var(--primary) / 0.6);
  letter-spacing: 0.15em;
  margin-right: 0.75rem;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid hsl(var(--gold) / 0.1);
}
.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.footer-text {
  font-family: 'Playfair Display', serif;
  color: hsl(var(--primary) / 0.6);
  font-size: 0.875rem;
}

/* ================================================
   WORDPRESS-SPECIFIC
   ================================================ */
.wp-post-content {
  color: hsl(var(--foreground) / 0.8);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.8;
}
.wp-post-content p { margin-bottom: 1.5rem; }
.wp-post-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}
.wp-post-content h3 {
  font-size: 1.375rem;
  margin: 2rem 0 0.75rem;
}
.wp-post-content blockquote {
  border-left: 3px solid hsl(var(--gold) / 0.4);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: hsl(var(--secondary) / 0.3);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}
.wp-post-content ul,
.wp-post-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.wp-post-content li { margin-bottom: 0.5rem; }

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--gold) / 0.1);
}
.post-navigation a {
  padding: 0.75rem 1.5rem;
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--gold) / 0.1);
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.3s;
}
.post-navigation a:hover {
  border-color: hsl(var(--gold) / 0.3);
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================
   SVG ICONS
   ================================================ */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
