/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* ==========================================================================
   Ultima Ultear - Full Site Dark Theme Stylesheet
   ========================================================================== */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

:root {
  --bg-primary: #0a0b0e;
  --bg-surface: #12141a;
  --bg-surface-hover: #1a1d26;
  --border-color: #232734;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-heading: #ffffff;
  --glow-purple: rgba(139, 92, 246, 0.25);
  --glow-pink: rgba(236, 72, 153, 0.25);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  margin:0;
  padding:0;
  background-color: var(--bg-primary);
  }

/* Site Layout & Container */
.site-container.dark-theme {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
}

/* Main Navigation */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent-cyan);
}

/* Layout Grid (Main Content + Sidebar) */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

@media (max-width: 868px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Primary Article Container */
.post-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-purple);
}

/* Header & Meta */
.post-header {
  margin-bottom: 2rem;
}

.post-category a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-pink);
  text-decoration: none;
}

.post-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-heading);
  margin: 0.5rem 0 1rem 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-pink) 60%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-meta a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.meta-separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Body Content Typography */
.post-intro {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.section-paragraph {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Callouts & Highlights */
.post-notice {
  padding: 1rem 1.25rem;
  background-color: rgba(236, 72, 153, 0.1);
  border-left: 4px solid var(--accent-pink);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-weight: 500;
}

.callout-statement {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  margin: 2rem 0;
}

/* Link Styling */
.site-link-container {
  text-align: center;
  margin: 1.5rem 0;
}

.neocities-link {
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  transition: all 0.2s ease;
}

.neocities-link:hover {
  background: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* Interactive Lists */
.interactive-prompt {
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 1.5rem;
}

.topic-options-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-item {
  padding: 1rem 1.25rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.2s ease;
}

.option-item:hover {
  border-color: var(--accent-purple);
  background-color: var(--bg-surface-hover);
  transform: translateX(4px);
}

.call-to-action,
.closing-question {
  font-weight: 600;
  color: var(--accent-pink);
  margin-top: 1.25rem;
}

/* Author Bio Card */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-primary);
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.author-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--text-heading);
}

.author-bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sidebar Widgets */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 1rem 0;
  border-bottom: 2px solid var(--accent-purple);
  padding-bottom: 0.5rem;
}

.widget-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.widget-list a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.widget-list a:hover {
  color: var(--accent-cyan);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-heading);
}

@media (max-width: 600px) {
  .site-nav,
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}