/* 
   Novania Wiki - Premium Theme 2025 
   Aestethics: Dark Gaming, Gold Accents, Glassmorphism, Clean Typography
*/

/* --- Typography --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;900&display=swap");

:root {
  --color-bg: #050508;
  --color-surface: #0f1116;
  --color-surface-hover: #161920;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-accent: #fbbf24;
  --accent: 251, 191, 36; /* RGB values for rgba(var(--accent), ...) */
  --color-accent-glow: rgba(251, 191, 36, 0.2);
  --color-text-main: #e2e8f0;
  --color-text-muted: #94a3b8;

  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(251, 191, 36, 0.03) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(59, 130, 246, 0.03) 0%,
      transparent 25%
    );
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* --- Glassmorphism Utils --- */
.glass {
  background: rgba(15, 17, 22, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

.glass-panel {
  background: linear-gradient(
    145deg,
    rgba(20, 23, 30, 0.6) 0%,
    rgba(10, 11, 14, 0.8) 100%
  );
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* --- Markdown Content Styling (The "Prose") --- */
.content-area h1 {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-area h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.content-area h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-area p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.content-area ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.content-area li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content-area li::before {
  content: "→";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.content-area strong {
  color: white;
  font-weight: 600;
}

.content-area blockquote {
  border-left: 3px solid var(--color-accent);
  background: rgba(251, 191, 36, 0.05);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #e2e8f0;
}

.content-area code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.1);
}

/* Ensure images don't overflow */
.content-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-area hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

.content-area a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}

.content-area a:hover {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

/* --- Interactive Cards --- */
.hover-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
  transform: translateY(-2px);
  background: var(--color-surface-hover);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* --- Sidebar Specifics --- */
.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transition: transform 0.2s;
}

.nav-item:hover::before,
.nav-item.active::before {
  transform: scaleY(1);
}

/* --- Admonitions (Alerts) --- */
.admonition {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  background: rgba(40, 44, 52, 0.5);
  color: var(--color-text-main);
}

.admonition-title {
  font-weight: bold;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9em;
  opacity: 0.9;
}

.admonition.note {
  border-color: #3b82f6;
  /* Blue */
  background: rgba(59, 130, 246, 0.1);
}

.admonition.note .admonition-title {
  color: #60a5fa;
}

.admonition.tip {
  border-color: #10b981;
  /* Emerald */
  background: rgba(16, 185, 129, 0.1);
}

.admonition.tip .admonition-title {
  color: #34d399;
}

.admonition.warning {
  border-color: #f59e0b;
  /* Amber */
  background: rgba(245, 158, 11, 0.1);
}

.admonition.warning .admonition-title {
  color: #fbbf24;
}

.admonition.danger {
  border-color: #ef4444;
  /* Red */
  background: rgba(239, 68, 68, 0.1);
}


/* --- Tab Buttons --- */
.tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.2s ease-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  outline: none;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
  transform: translateY(-1px);
}

/* Ensure emoji icons have some space if needed, though gap handles it */
.tab-btn span {
  display: inline-block;
}
