/* ===== EXETERIC — Main Stylesheet ===== */
/* Fonts: Libre Franklin (body), Special Elite (headings) */

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a25;
  --text: #d0d0d8;
  --text2: #8888a0;
  --accent: #c9a84c;
  --accent2: #8b6f3c;
  --border: #222233;
  --font-body: 'Libre Franklin', sans-serif;
  --font-heading: 'Special Elite', cursive;
  --max-width: 1200px;
  --header-h: 70px;
}

html.dark {
  --bg: #f5f0eb;
  --bg2: #ede8e2;
  --bg3: #e5dfd8;
  --text: #2a2a35;
  --text2: #6a6a7a;
  --border: #d5d0ca;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: .3s; }
a:hover { color: #e0c060; }

/* ===== HEADER ===== */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--header-h);
}
html.dark #masthead {
  background: rgba(245,240,235,.92);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 4px;
}
.logo-img { height: 36px; width: auto; }

#main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}
#main-nav a {
  color: var(--text2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
#main-nav a:hover { color: var(--accent); }

.header-extra {
  display: flex;
  align-items: center;
  gap: 15px;
}
#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: auto;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/articles/sigil-magic.webp') center/cover no-repeat;
  margin-top: var(--header-h);
  padding: 80px 20px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,.4) 0%, rgba(10,10,15,.2) 50%, rgba(10,10,15,.6) 100%);
}
html.dark .hero-overlay {
  background: linear-gradient(180deg, rgba(245,240,235,.7) 0%, rgba(245,240,235,.3) 50%, rgba(245,240,235,.9) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  padding: 20px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.hero-highlight { color: #ffd700; }
.hero-content p {
  font-size: 18px;
  color: #f0f0f0;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  margin-bottom: 30px;
}
.btn-hero {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: #0a0a0f;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
}
.btn-hero:hover { background: #e0c060; color: #0a0a0f; }

/* ===== MAIN LAYOUT ===== */
.main-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 40px 20px;
}
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent);
}

/* ===== POSTS ===== */
.post {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--border);
}
.post-thumb { width: 260px; flex-shrink: 0; }
.post-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg3);
}
.post-body { flex: 1; }
.post-title {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); }

.post-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 12px;
}
.post-cat {
  background: var(--accent);
  color: #0a0a0f;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 700;
}
.post-excerpt {
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 10px;
}
.read-more {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  justify-content: center;
}
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text2);
}
.page-numbers.current {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
}
.page-numbers:hover:not(.current) { border-color: var(--accent); }

/* ===== SIDEBAR ===== */
.widget {
  margin-bottom: 35px;
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.widget p {
  color: var(--text2);
  font-size: 14px;
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.widget ul li a {
  color: var(--text2);
  font-size: 14px;
}
.widget ul li a:hover { color: var(--accent); padding-left: 5px; }

.btn-sidebar {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--accent);
  color: #0a0a0f;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-sidebar:hover { background: #e0c060; color: #0a0a0f; }

/* CTA Widget */
.cta-widget { background: var(--bg3); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.cta-list { list-style: none; margin: 10px 0 15px; }
.cta-list li { padding: 6px 0; font-size: 13px; color: var(--text2); border-bottom: none; }

/* ===== FOOTER ===== */
#footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 60px;
}
.footer-col { flex: 1; }
.footer-col h4 {
  font-family: var(--font-heading);
  margin-bottom: 12px;
  font-size: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--text2); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: var(--text2); font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-wrapper { flex-direction: column; }
  .sidebar { width: 100%; }
  .post { flex-direction: column; }
  .post-thumb { width: 100%; }
  #main-nav { display: none; }
  .hero-content h1 { font-size: 32px; }
}
