/* ============================================================
   TEWAHEDO — Shared Theme
   Space-futuristic × Ancient manuscript aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Ethiopic:wght@400;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --card: #111111;
  --card-hover: #161616;
  --gold: #c8a84e;
  --gold-dim: rgba(200,168,78,0.15);
  --gold-border: rgba(200,168,78,0.25);
  --gold-glow: rgba(200,168,78,0.4);
  --text: #e8e0d0;
  --text-dim: rgba(232,224,208,0.7);
  --text-faint: rgba(232,224,208,0.45);
  --green: #2d8a27;
  --green-dim: rgba(45,138,39,0.15);
  --red: #8b1a1a;
  --red-dim: rgba(139,26,26,0.15);
  --font-geez: 'Noto Serif Ethiopic', serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --max-w: 1400px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #0a0a0a;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

/* ===== STICKY HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  padding: 0 20px;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.header-quote {
  font-family: var(--font-geez);
  font-size: 0.6rem;
  color: rgba(200,168,78,0.4);
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 400px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media(max-width:500px){
  .header-quote { display: none; }
}
.header-left, .header-right { display: flex; align-items: center; gap: 12px; }

.hamburger {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  transition: transform var(--transition);
  font-family: var(--font-geez);
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.hamburger:hover { transform: scale(1.15); }

.hamburger-icon {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.hamburger-arrow {
  font-size: 10px;
  opacity: 0.5;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(3px); opacity: 0.8; }
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.site-title a { color: var(--gold); }

.header-btn {
  background: none;
  border: 1px solid rgba(200,168,78,0.2);
  color: var(--text-dim);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.header-btn:hover { color: var(--gold); background: var(--gold-dim); border-color: rgba(200,168,78,0.4); }

.donate-btn {
  color: var(--gold) !important;
  font-size: 1.3rem !important;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.donate-btn:hover { opacity: 1; transform: scale(1.15); }

/* ===== SLIDE-IN MENU ===== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.menu-backdrop.open { opacity: 1; pointer-events: all; }

.slide-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: #0a0a0a;
  border-right: 1px solid var(--gold-border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 4px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.slide-menu.open { transform: translateX(0); }

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-border);
}
.menu-cross {
  font-size: 28px;
  color: var(--gold);
  font-family: var(--font-geez);
}
.menu-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--transition);
}
.menu-close:hover { color: var(--gold); }

.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.menu-link:hover, .menu-link.active {
  color: var(--gold);
  background: var(--gold-dim);
  opacity: 1;
}
.menu-link .emoji { font-size: 1.05rem; width: 28px; text-align: center; }
.menu-icon { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

.menu-divider { height: 1px; background: var(--gold-border); margin: 12px 0; }

.menu-special {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-geez);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background var(--transition);
}
.menu-special:hover { background: var(--gold-dim); opacity: 1; }

/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.page-hero {
  text-align: center;
  padding: 48px 0 32px;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.page-hero .geez-title {
  font-family: var(--font-geez);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-dim);
  margin-bottom: 16px;
}
.page-hero .subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 4px 32px rgba(200,168,78,0.12), 0 2px 16px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.card-lg {
  padding: 32px;
  border-radius: var(--radius-lg);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.card-title .geez {
  font-family: var(--font-geez);
  font-size: 0.9em;
  color: var(--text-dim);
  margin-left: 8px;
}

/* ===== SECTION DIVIDERS ===== */
.section-gap { height: 48px; }
.section-gap-lg { height: 72px; }

.decorative-divider {
  text-align: center;
  margin: 56px 0;
  position: relative;
}
.decorative-divider::before,
.decorative-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
}
.decorative-divider::before { left: 0; }
.decorative-divider::after { right: 0; }
.decorative-divider-icon {
  display: inline-block;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.4;
  font-family: var(--font-geez);
}

.section-header {
  text-align: center;
  margin: 48px 0 32px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: transparent;
  background: linear-gradient(135deg, var(--gold), rgba(200,168,78,0.6));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.section-header .geez {
  font-family: var(--font-geez);
  font-size: 1.1rem;
  color: var(--text-dim);
}

/* ===== HIGHLIGHT/UNIQUE ITEMS ===== */
.gold-border { border-color: var(--gold-border); }
.gold-glow { box-shadow: 0 0 20px rgba(200,168,78,0.1), inset 0 0 20px rgba(200,168,78,0.03); }

/* ===== RESPONSIVE GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page-content { padding: 20px 16px 60px; }
  .page-hero { padding: 32px 0 24px; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== BACK LINK ===== */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.back-home:hover { color: var(--gold); opacity: 1; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,168,78,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,168,78,0.4); }

/* ===== TABLES ===== */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tbl th {
  text-align: left;
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: normal;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gold-border);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.tbl tr:hover td { background: rgba(200,168,78,0.03); }
.tbl .highlight td { background: var(--gold-dim); }

/* ===== PROSE ===== */
.prose { max-width: 1000px; }
.prose p { margin-bottom: 1.2em; color: var(--text); }
.prose h2 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.3rem;
  margin: 2em 0 0.8em;
  letter-spacing: 0.04em;
}
.prose h3 {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 1.05rem;
  margin: 1.6em 0 0.6em;
}
.prose .geez-inline {
  font-family: var(--font-geez);
  color: var(--gold);
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-border), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.timeline-year {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.timeline-text { color: var(--text); font-size: 0.92rem; }

/* ===== PARTICLE CANVAS (for pages that want subtle background) ===== */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ===== LANGUAGE TOGGLE HIDE/SHOW ===== */
[data-lang="am"] { display: none; }
body.lang-am [data-lang="am"] { display: initial; }
body.lang-am [data-lang="en"] { display: none; }

/* ===== FLOATING ELEMENTS ===== */
.float-gentle {
  animation: floatGentle 6s ease-in-out infinite;
}
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== DONATE DROPDOWN ===== */
.donate-dropdown {
  position: fixed;
  top: 56px;
  right: 12px;
  background: #111;
  border: 1px solid rgba(200,168,78,0.25);
  border-radius: 12px;
  padding: 16px;
  z-index: 10001;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.donate-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.donate-title {
  font-family: 'Noto Serif Ethiopic', serif;
  font-size: 0.75rem;
  color: rgba(232,224,208,0.6);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.donate-options {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.donate-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(200,168,78,0.08);
  border: 1px solid rgba(200,168,78,0.2);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: system-ui, sans-serif;
}

.donate-tier:hover {
  background: rgba(200,168,78,0.2);
  border-color: var(--gold);
  transform: scale(1.08);
}

.donate-note {
  font-family: 'Noto Serif Ethiopic', serif;
  font-size: 0.6rem;
  color: rgba(200,168,78,0.3);
  letter-spacing: 0.05em;
}

/* ===== THE HIDDEN BLESSING ===== */
.site-blessing {
  text-align: center;
  padding: 3rem 1rem 2rem;
  cursor: default;
  user-select: none;
}

.blessing-mark {
  font-size: 0.5rem;
  color: rgba(212, 175, 55, 0.08);
  letter-spacing: 0.2em;
  transition: all 1.2s ease;
  cursor: pointer;
  display: inline-block;
  line-height: 1.8;
}

.blessing-mark:hover {
  color: rgba(212, 175, 55, 0.15);
}

.blessing-mark.revealed {
  color: rgba(212, 175, 55, 0.4);
  font-family: 'Noto Serif Ethiopic', serif;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  cursor: default;
  animation: blessingReveal 2s ease forwards;
}

/* ===== WIDER LAYOUT (desktop) ===== */
@media(min-width:1100px){
  .explore-grid{grid-template-columns:repeat(4,1fr)}
  .page-content{padding:40px 32px 80px}
}
@media(min-width:1300px){
  .page-content{padding:40px 48px 80px}
}

.blessing-place {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.5rem;
  color: rgba(212, 175, 55, 0.2);
  letter-spacing: 0.1em;
}

@keyframes blessingReveal {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
