/* =========================
   Root Variables
   ========================= */
:root {
  --icon-size: 1.3rem;
  --icon-color: var(--text);
  --accent: #4f8cff;
  /* Modern blue accent */
  --accent-secondary: #ffb347;
  /* Warm orange accent */
  --success: #43d675;
  /* Green for success */
  --warning: #ffd166;
  /* Yellow for warnings */
  --error: #ef476f;
  /* Red for errors */
  --text: #222;
  --text-light: #555;
  --background: #f7f9fb;
  --background-alt: #eaf0fa;
  /* Slightly blue background for cards */
  --background-dark: #181a20;
  --text-dark: #f7f9fb;
}

/* Body styling is now handled in custom.css for better theme management */

/* =========================
   Navigation Bar
   ========================= */
#nav-bar {
  padding: 0.625rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: center;
}

/* =========================
   Footer
   ========================= */
#footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

/* =========================
   Accent & Transition
   ========================= */
.accent-data {
  color: var(--accent);
}

.theme-transition {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* =========================
   Tags & Titles
   ========================= */
.tags-data {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  align-content: flex-end;
}

.title-list li {
  margin-bottom: .375rem;
}

/* =========================
   Icons
   ========================= */
.icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-block;
  vertical-align: middle;
  color: var(--icon-color);
  fill: currentColor;
  transition: color 0.3s ease;
  cursor: pointer;
}

.icon:hover {
  --icon-color: var(--accent);
}

/* =========================
   Theme Toggle
   ========================= */
.theme-toggle {
  cursor: pointer;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  display: inline-flex;
}

.theme-toggle:hover .icon {
  --icon-color: var(--accent);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle input[type="checkbox"] {
  display: inline-block;
}

/* =========================
   Footnotes
   ========================= */
.footnote-definition {
  margin: 0 0 0 .125rem;
}

.footnote-definition-label {
  color: var(--accent);
}

.footnote-definition p {
  display: inline;
  margin: .625rem 0 0 .625rem;
}

/* =========================
   General Classes
   ========================= */
.no-style {
  all: unset;
  background: none !important;
  border: none !important;
}

.no-style:hover {
  background: transparent;
  color: inherit;
}

/* =========================
   Float & Center
   ========================= */
.float-right {
  margin-inline-start: auto;
}

.float-left {
  margin-inline-end: auto;
}

.center {
  text-align: center;
}

.center img {
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.08);
}

/* =========================
   Shortcodes
   ========================= */
.webring {
  margin: .375rem;
}

/* =========================
   Buttons
   ========================= */
.button,
.accent-data {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.5em 1em;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.12);
  transition: background 0.2s, box-shadow 0.2s;
}

.button:hover,
.accent-data:hover {
  background: var(--accent-secondary);
  box-shadow: 0 4px 16px rgba(255, 179, 71, 0.15);
}

/* =========================
   Cards
   ========================= */
.card {
  background: var(--background-alt);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.08);
  padding: 1.5em;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(79, 140, 255, 0.16);
}