/* =========================================
   DESIGN SYSTEM - Celtic Modern Dark Theme
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  /* ===== COLORS ===== */
  --gold: #d4a726;
  --gold-light: #f0d78a;
  --gold-glow: rgba(212, 167, 38, 0.4);

  --green-900: #071a0e;
  --green-800: #0d2818;
  --green-700: #143d24;
  --green-600: #1a5231;

  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* ===== SPACING & SIZING ===== */
  --radius: 12px;
  --radius-lg: 20px;

  /* ===== TRANSITIONS ===== */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY & BACKGROUND ===== */
body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text-primary);
  background: var(--green-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--green-700) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(212, 167, 38, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 80%, var(--green-600) 0%, transparent 40%);
  z-index: -2;
}

/* Kells watermark overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url('./assets/kells/book_of_kells_1.jpg') center/cover no-repeat;
  opacity: 0.06;
  filter: grayscale(40%) brightness(0.7);
  z-index: -1;
  pointer-events: none;
}

/* ===== TOP NAV BAR ===== */
.top-nav {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}

.top-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.top-nav a:hover {
  color: var(--gold);
  background: var(--glass);
  border-color: var(--glass-border);
}

.top-nav a.active {
  color: var(--gold);
  background: var(--glass);
  border-color: rgba(212, 167, 38, 0.3);
}

.top-nav .nav-home {
  font-weight: 600;
}

/* Language Toggle Button */
.lang-toggle-btn {
  padding: 0.35rem 0.7rem;
  background: var(--gold);
  color: var(--green-900);
  border: none;
  border-radius: var(--radius);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}

.lang-toggle-btn:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .top-nav {
    gap: 0.25rem;
  }

  .top-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* ===== MAIN CONTENT ===== */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  width: 100%;
  max-width: 800px;
}

/* ===== HERO ===== */
.hero {
  margin-bottom: 3rem;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 20px rgba(212, 167, 38, 0.3));
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

h1 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== NAVIGATION CARDS ===== */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 600px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.nav-card:hover {
  background: var(--glass-hover);
  border-color: rgba(212, 167, 38, 0.25);
  transform: translateY(-4px);
}

.nav-card-icon {
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
}

.nav-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== FOOTER ===== */
.site-footer {
  width: 100%;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .nav-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-card {
    padding: 1.5rem 1rem;
  }
}
