/* ==========================================================================
   AZUHRI.NET — Stylesheet
   Hand-written. No frameworks. No cookies. No tracking.
   Black & Red. Fox-themed.
   ========================================================================== */

/* --- BASE ---------------------------------------------------------------- */

:root {
  --bg:        #0f0f0f;
  --bg-card:   #1a1a1a;
  --text:      #c8c8c8;
  --text-dim:  #888888;
  --red:       #cc2222;
  --red-bright:#ff3333;
  --red-dark:  #881111;
  --red-fox:   #e0553d;  /* fox-fur orange-red */
  --border:    #2a2a2a;
  --accent:    #2d1a1a;  /* very dark red tint */
  --mono:      'Courier New', 'Consolas', monospace;
  --sans:      'Trebuchet MS', 'Segoe UI', sans-serif;
  --serif:     'Georgia', 'Times New Roman', serif;
}

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

html {
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--serif);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  background: var(--bg);
  min-height: 100vh;
}

/* --- TYPOGRAPHY ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--red);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

h2 {
  font-size: 1.4rem;
  /*margin: 0.5rem 0 0.8rem;*/
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

h2::before {
  content: '🦊 ';
  font-size: 1rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--red-bright);
  text-decoration: none;
}

a:visited {
  color: var(--red-dark);
}

a:hover {
  color: var(--red-fox);
  text-decoration: underline;
}

/* --- HEADER -------------------------------------------------------------- */

.site-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--red-dark);
  margin-bottom: 1.5rem;
}

.site-emblem {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  /* The fox */
}

.site-title {
  font-size: 2.4rem;
  font-family: var(--sans);
  color: var(--red);
  letter-spacing: 0.06em;
}

.site-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--mono);
  margin-top: 0.3rem;
}

/* --- NAVIGATION ---------------------------------------------------------- */

.site-nav {
  text-align: center;
  margin: 1.2rem 0 2rem;
  font-family: var(--sans);
}

.site-nav a {
  margin: 0 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav-sep {
  color: var(--red-dark);
  margin: 0 0.2rem;
}

/* --- MAIN CONTENT AREAS -------------------------------------------------- */

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* --- DIRECTORIES (review/tech/diary lists) ------------------------------- */

.entry-list {
  list-style: none;
  padding: 0;
}

.entry-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--border);
}

.entry-list li:last-child {
  border-bottom: none;
}

.entry-list a {
  font-weight: bold;
  font-family: var(--sans);
}

.entry-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 0.4rem;
}

.entry-blurb {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  margin-left: 1.2rem;
}

/* Rating stars */
.rating {
  color: var(--red-fox);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* --- FOX DIVIDER --------------------------------------------------------- */

.fox-divider {
  text-align: center;
  margin: 2rem 0;
  color: var(--red-dark);
  font-size: 1rem;
  letter-spacing: 0.4em;
  user-select: none;
}

/* --- HORIZONTAL RULE ----------------------------------------------------- */

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* --- BLOCKQUOTE ---------------------------------------------------------- */

blockquote {
  border-left: 3px solid var(--red-dark);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: var(--accent);
  font-style: italic;
  color: #b0b0b0;
}

/* --- CODE / PRE ---------------------------------------------------------- */

code {
  font-family: var(--mono);
  background: #1e1e1e;
  padding: 0.15rem 0.4rem;
  font-size: 0.9rem;
  color: var(--red-fox);
}

pre {
  background: #1e1e1e;
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 1rem 0;
}

/* --- STATUS BADGES ------------------------------------------------------- */

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--border);
  margin-right: 0.4rem;
  color: var(--text-dim);
}

.badge-new {
  border-color: var(--red);
  color: var(--red-bright);
  animation: none; /* static — no JS bloat */
}

/* --- FOOTER -------------------------------------------------------------- */

.site-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.footer-fox {
  font-size: 1.2rem;
  display: block;
  margin: 0.8rem 0;
}

/* --- UTILITY CLASSES ----------------------------------------------------- */

.text-center { text-align: center; }
.text-dim    { color: var(--text-dim); }
.text-mono   { font-family: var(--mono); font-size: 0.85rem; }
.text-red    { color: var(--red); }
.mt-1        { margin-top: 1rem; }
.mb-1        { margin-bottom: 1rem; }

/* --- RESPONSIVE (minimal — site is narrow by design) ---------------------- */

@media (max-width: 500px) {
  body {
    padding: 1rem 0.8rem 2rem;
  }

  .site-nav a {
    display: inline-block;
    margin: 0.2rem 0.4rem;
  }

  h1 { font-size: 1.5rem; }
}

/* --- PRINT (because why not) --------------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .site-nav, .site-footer { display: none; }
  a { color: #000; }
}

/* ==========================================================================
   JS-LOAD ARCHITECTURE — NEW STYLES
   ========================================================================== */

/* --- Category Badge (used in What's New) --------------------------------- */

.category-badge {
  border-color: var(--border);
  background: var(--accent);
  font-size: 0.65rem;
  vertical-align: middle;
}

.category-diary {
  border-color: var(--red-dark);
  color: var(--red);
}

.category-reviews {
  border-color: var(--red-dark);
  color: var(--red-fox);
}

.category-tech {
  border-color: var(--border);
  color: var(--text-dim);
}

/* --- "What's New" section (homepage) ------------------------------------- */

#whats-new {
  list-style: none;
  padding: 0;
}

#whats-new li {
  padding: 0.8rem 0;
  border-bottom: 1px dotted var(--border);
}

#whats-new li:last-child {
  border-bottom: none;
}

#whats-new a {
  font-weight: bold;
  font-family: var(--sans);
}

#whats-new .entry-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 0.4rem;
}

#whats-new .entry-blurb {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  margin-left: 0;
}

/* --- Category Index (diary/reviews/tech index pages) --------------------- */

#category-index {
  margin-top: 1rem;
}

#category-index h2 {
  font-size: 1.2rem;
  color: var(--red-dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  margin: 1.5rem 0 0.5rem;
}

#category-index h2::before {
  content: '';
}

#category-index h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 1rem 0 0.3rem;
  font-family: var(--mono);
}

#category-index .entry-list {
  margin-bottom: 1rem;
}

/* --- Article Page -------------------------------------------------------- */

#article-back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
}

#article-back-link:hover {
  color: var(--red-bright);
  border-color: var(--red-dark);
  text-decoration: none;
}

#article-title {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

#article-title::before {
  content: '';
}

#article-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

#article-content {
  margin-top: 1rem;
}

#article-content h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
}

#article-content h2::before {
  content: '🦊 ';
  font-size: 0.9rem;
}

#article-content h3 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--text);
}

#article-content p {
  margin-bottom: 1rem;
}

#article-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

#article-content ul li {
  margin-bottom: 0.3rem;
}

#article-content pre {
  margin: 1rem 0;
}

#article-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

#article-content code {
  font-family: var(--mono);
  font-size: 0.88rem;
}

#article-content hr {
  margin: 1.5rem 0;
}

/* --- Loading state (while JS fetches header/footer) ----------------------- */

#site-header:empty::before {
  content: '🦊';
  display: block;
  text-align: center;
  font-size: 2rem;
  padding: 2rem 0;
  color: var(--text-dim);
  animation: pulse 1.5s ease-in-out infinite;
}

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