/* === Base layout === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0a1a2a, #050b14);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Header === */
header {
  background: #0078d7; /* Playnex blue */
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin: 0.25rem 0;
  font-size: 1rem;
}

/* === Navigation bar === */
header nav {
  margin-top: 1rem;
  background: #005a9e; /* darker blue bar */
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem;
  border-radius: 4px;
}

header nav a,
header nav button {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

header nav a:hover,
header nav button:hover {
  text-decoration: underline;
}

/* === Sections === */
section {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: auto;
}

.hero {
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

/* Ensure headings on blue/gradient backgrounds meet WCAG contrast */
section h2,
main h2 {
  color: #fff; /* white text for strong contrast */
}

/* === Cards (login + signup) === */
.login-card,
.signup-container {
  max-width: 500px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-card h2,
.signup-container h2 {
  text-align: center;
  margin-top: 0;
  color: #0078d7; /* headings inside white cards use brand blue */
}

/* === Forms === */
form input,
form select,
form button {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.75rem;
  font-size: 1rem;
  box-sizing: border-box; /* ensures placeholder text fits */
}

::placeholder {
  font-size: 0.9rem;
  color: #888;
}

form button {
  background: #0078d7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background: #005a9e;
}

/* === Signup link === */
.signup-link {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
  background-color: #0d47a1; /* deep blue background */
  padding: 0.5rem;
  border-radius: 4px;
  color: #fff;
}

.signup-link a {
  color: #ffeb3b; /* bright yellow stands out on blue */
  font-weight: 600;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
  color: #ffc107; /* gold on hover */
}

/* === Role hint (if used elsewhere) === */
.role-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

/* === Role info box (signup only) === */
.role-info {
  margin-bottom: 1.5rem;
  background: #eef2f7;
  padding: 1rem;
  border-radius: 6px;
}
.role-info h3 {
  margin-top: 0;
}

/* === CTA buttons (home page) === */
.cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta a {
  background: #4a90e2;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.cta a:hover {
  background: #357ab8;
}

/* === About section (home page) === */
.about {
  background: #fff;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
}

.about h2 {
  text-align: center;
  color: #0078d7; /* brand blue on white background */
}

.about p {
  margin: 1rem 0;
}

/* === Footer === */
footer {
  background: #333;
  color: #fff;
  padding: 1rem;
  text-align: center;
  margin-top: auto;
}

#footer-message {
  transition: opacity 1s ease-in-out;
  margin: 0.5rem 0;
}

#footer-dots {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  cursor: pointer;
}

.active-dot {
  color: #4a90e2;
  transition: color 0.3s ease-in-out;
}

#resume-btn {
  margin-top: 0.5rem;
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: none;
}

#resume-btn:hover {
  background: #357ab8;
}

/* === Banner (optional info messages) === */
.banner {
  background: #f0f8ff;
  border-left: 4px solid #0078d7;
  padding: 10px;
  margin-bottom: 15px;
  font-style: italic;
}

/* === Dashboard Tools === */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.tool-card {
  background: #fff; /* white cards for contrast */
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #333;
}

.tool-card a {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0078d7;
  text-decoration: none;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tool-card:hover a {
  color: #005a9e;
}

.tool-card span.icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Ensure buttons inside tool cards have proper contrast */
.tool-card a.btn-open,
.tool-card a.btn-main {
  color: #fff !important;   /* force white text */
}

/* === Page Headings (stub pages) === */
.page-heading {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #110f0f; /* white headings for consistency */
}

/* === Extended Tool Card Content === */
.tool-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #0078d7;
}

.tool-card p {
  margin: 0.5rem 0 1rem;
  color: #555;
  font-size: 0.95rem;
}

/* === Form Boxes (feedback, create playbook) === */
.form-box {
  max-width: 500px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-box label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #333;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.form-box button {
  margin-top: 1.5rem;
  background: #0078d7; /* Playnex blue */
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.form-box button:hover {
  background: #005a9e; /* darker blue on hover */
}

  /* === Account Page Specific Styles === */

/* Neutral logout button styling */
.logout-btn {
  background: #ccc;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0.75rem;
  font-size: 1rem;
  width: 100%;
}
.logout-btn:hover {
  background: #999;
  color: #fff;
}

/* Danger styling for delete account */
.danger-btn {
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0.75rem;
  font-size: 1rem;
  width: 100%;
}
.danger-btn:hover {
  background: #b71c1c;
}

/* Error message text */
.error {
  margin-top: 0.5rem;
  color: #c62828;
  font-size: 0.9rem;
}

/* Card sections for account page */
.card {
  max-width: 500px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card h2 {
  margin-top: 0;
  color: #0078d7;
  font-size: 1.4rem;
}
.card.danger {
  border: 1px solid #c62828;
}

/* === Feedback Page === */
.feedback-box {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feedback-box h2 {
  margin-top: 0;
  color: #0078d7;
  text-align: center;
}

.feedback-box textarea {
  width: 100%;
  min-height: 150px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.feedback-box button {
  margin-top: 1rem;
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.feedback-box button:hover {
  background: #005a9e;
}

/* === Playbook Cards === */
.tool-card {
  background: #fff; /* white cards for contrast */
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left; /* left-align for readability */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #333;
}

.tool-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #0078d7; /* brand blue headings */
}

.tool-card p {
  margin: 0.5rem 0;
  color: #555;
  font-size: 0.95rem;
}

.tool-card small {
  display: block;
  margin-top: 0.5rem;
  color: #888;
  font-size: 0.85rem;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* === Danger Button (delete playbook) === */
.danger-btn {
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.danger-btn:hover {
  background: #b71c1c;
}

/* === Playbook Grid Layout === */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* === Empty State (no playbooks) === */
.empty-state {
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.empty-state .btn {
  display: inline-block;
  background: #0078d7;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.empty-state .btn:hover {
  background: #005a9e;
}

/* === Playbooks Dashboard === */
.playbooks-dashboard {
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
  background: #f9f9f9; /* soft off‑white */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* lighter shadow */
}

.playbooks-dashboard h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #0078d7; /* brand blue */
}

.dashboard-tagline {
  font-size: 1.1rem;
  color: #666; /* softer medium gray instead of near‑black */
  margin: 1rem auto 2rem;
  max-width: 600px;
  line-height: 1.5;
}

.playbooks-dashboard .cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.playbooks-dashboard .btn {
  display: inline-block;
  background: #0078d7;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.playbooks-dashboard .btn:hover {
  background: #005a9e;
}

/* === Playbook View === */
.playbook-view {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f5f5f5; /* slightly darker neutral */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.playbook-header h2 {
  margin: 0;
  font-size: 2rem;
  color: #222; /* dark text for contrast */
}

.playbook-header .owner {
  font-size: 0.95rem;
  color: #f4f1f1;
}

.playbook-header .owner a {
  color: #ecf0f3; /* brand blue link */
  font-weight: 600;
  text-decoration: none;
}

.playbook-header .owner a:hover,
.playbook-header .owner a:focus {
  color: #edf1f4;
  text-decoration: underline;
  outline: none;
}

.playbook-description {
  margin: 1.5rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  background: rgba(0,0,0,0.02);
  padding: 1rem;
  border-radius: 6px;
}

.playbook-description strong {
  color: #0078d7; /* accent emphasis */
}

.playbook-meta {
  margin-bottom: 1rem;
  font-weight: bold;
  color: #444;
}

.playbook-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.playbook-actions .btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  background: #0078d7;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.playbook-actions .btn:hover {
  background: #005a9e;
}

.feedback-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

/* === Login Prompt === */
.login-prompt {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
  text-align: center;
}

.login-prompt a {
  color: #0078d7;
  font-weight: 600;
  text-decoration: none;
}

.login-prompt a:hover,
.login-prompt a:focus {
  color: #005a9e;
  text-decoration: underline;
  outline: none;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: #ffeb3b; /* bright yellow */
  color: #002050;      /* dark navy text */
}

.btn-primary:hover,
.btn-primary:focus {
  background: #ffc107; /* amber */
  color: #000;
  text-decoration: none;
  outline: none;
}

.danger-btn {
  background: #d32f2f;
  color: #fff;
}

.danger-btn:hover,
.danger-btn:focus {
  background: #b71c1c;
}

/* === Card containers === */
.playbook-card,
.playbook-view {
  background: #f9f9f9; /* unified soft off‑white */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 800px;
}

/* === Owner link === */
.owner {
  font-size: 0.95rem;
  margin: 0.25rem 0 0.5rem;
  color: #333;
}

.owner a {
  color: #f7f8fa; /* brand blue, visible on light background */
  font-weight: 600;
  text-decoration: none;
}

.owner a:hover,
.owner a:focus {
  color: #9e0000;
  text-decoration: underline;
}

/* === Open/Edit buttons === */
.btn-open {
  display: inline-block;
  background: #0078d7;   /* brand blue background */
  color: #fff;           /* white text for contrast */
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-open:hover,
.btn-open:focus {
  background: #005a9e;   /* darker blue on hover */
  outline: none;
  transform: translateY(-2px);
}

/* === Save button in forms === */
.btn-main {
  display: block;
  background: #007bff;   /* blue background */
  color: #fff;           /* white text */
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease;
}

.btn-main:hover {
  background: #0056b3;
}

.btn-main {
  display: block;
  background: #007bff;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  text-align: center; /* centers the text inside */
}

.btn-main:hover {
  background: #0056b3;
}

/* Style for form labels */
.form-label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #f0eded; /* dark text for readability */
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Optional: add icons for email/password */
.form-label[for="login-email"]::before {
  content: "📧 ";
}

.form-label[for="login-password"]::before {
  content: "🔒 ";
}

/* Inputs for consistency */
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #0078d7; /* Playnex blue highlight */
  outline: none;
  box-shadow: 0 0 4px rgba(0, 120, 215, 0.4);
}

.form-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-box input[type="text"],
.form-box textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.capsule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.capsule-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.capsule-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.capsule-card p {
  margin: 0.25rem 0;
  color: #444;
}

.capsule-card small {
  color: #777;
  font-size: 0.85rem;
}

.btn-open {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #0066ff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-open:hover {
  background: #004fcc;
}

.danger-btn {
  background: #e63946;
  color: white;
  border: none;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.danger-btn:hover {
  background: #c62828;
}

.reflection-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reflection-card {
  background: #f7f9fc;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #e3e8f0;
}

.reflection-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.reflection-card small {
  color: #666;
  font-size: 0.8rem;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.empty-state .btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #0066ff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.capsule-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.capsule-card {
  display: block;
  padding: 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: #222;
  transition: all 0.15s ease;
}

.capsule-card:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.capsule-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.capsule-meta p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #444;
}

/* Trending Capsules */
.capsule-trending .capsule-preview {
  display: block;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  text-decoration: none;
  color: #222;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.capsule-trending .capsule-preview:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.capsule-trending .capsule-preview::after {
  content: "→";
  float: right;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.capsule-trending .capsule-preview:hover::after {
  opacity: 0.8;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--nav-bg, #ffffff);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: relative;
}

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

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--nav-text, #333);
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(0,0,0,0.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--nav-text, #333);
}
/* ---------------------------------------
   DESKTOP (default)
--------------------------------------- */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.5rem;
  background: #000;
}

.nav-toggle {
  display: none;
}

/* ---------------------------------------
   MOBILE OVERRIDES
--------------------------------------- */
@media (max-width: 768px) {

  /* Hamburger becomes visible */
  .nav-toggle {
    display: block;
  }

  /* Hide menu by default */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    padding: 1rem;
    z-index: 10;
  }

  /* Show menu when nav is opened */
  .main-nav.open .nav-links {
    display: flex;
  }
}

/* ---------------------------------------
   THEME VARIABLES
--------------------------------------- */
:root {
  --nav-bg: #070707;
  --nav-text: #f0e8e8;
}

body.dark {
  --nav-bg: #0d0d0d;
  --nav-text: #f0f0f0;
}


/* ---------------------------------------
   CARD OVERRIDES
--------------------------------------- */
.capsule-card {
  background: var(--card-bg, #ffffff) !important;
  color: var(--card-text, #222) !important;
  border-color: var(--card-border, rgba(0,0,0,0.08)) !important;
}

body.dark {
  --card-bg: #1b1b1b;
  --card-text: #e8e8e8;
  --card-border: rgba(255,255,255,0.12);
}

.capsule-thumb {
  width: 64px !important;
  height: 64px !important;
  flex-shrink: 0 !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-letter {
  display: block;
  width: 100%;
  text-align: center;
}

.capsule-title {
  color: var(--card-title, #111) !important;
}

.capsule-subtitle {
  color: var(--card-subtext, #555) !important;
}

.capsule-card-meta {
  color: var(--card-meta, #666) !important;
}

body.dark {
  --card-title: #ffffff;
  --card-subtext: #cccccc;
  --card-meta: #aaaaaa;
}

body.dark .capsule-card {
  background: #1b1b1b;
  color: #e8e8e8;
}

body.dark .capsule-card-meta-label {
  color: #bbbbbb;
}

body.dark .capsule-owner-link {
  color: #8fbaff;
}

/* ---------------------------------------
   HEADER LAYOUT
--------------------------------------- */
.site-header.minimal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #0d0d0d;
  color: #fff;
  position: relative;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  font-size: 1.2rem;
}

/* Right side: dark toggle + nav */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Dark mode toggle */
.dark-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Nav container */
.main-nav {
  display: flex;
  align-items: center;
  position: relative;
}

/* Hamburger button */
.nav-toggle {
  background: none;
  border: none;
  color: var(--nav-text);
  font-size: 1.4rem;
  cursor: pointer;
  display: none; /* shown only on mobile */
}

body.dark .nav-toggle {
  color: #fff;
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.5rem;
  background: #000;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
/* FINAL OVERRIDE — MOBILE MENU CONTROL */
@media (max-width: 768px) {

  /* Hide menu by default */
  .nav-links {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    padding: 1rem;
    z-index: 10;
  }

  /* Show menu when nav is opened */
  .main-nav.open .nav-links {
    display: flex !important;
  }

  /* Hamburger must be visible */
  .nav-toggle {
    display: block !important;
  }
}
/* FINAL OVERRIDE — MOBILE MENU CONTROL */
@media (max-width: 768px) {

  /* Hide menu by default */
  .nav-links {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    padding: 1rem;
    z-index: 10;
  }

  /* Show menu when nav is opened */
  .main-nav.open .nav-links {
    display: flex !important;
  }

  /* Hamburger must be visible */
  .nav-toggle {
    display: block !important;
  }
}

/* Center the homepage hero vertically + horizontally */
.hero-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical centering */
  align-items: center;       /* horizontal centering */
  min-height: 60vh;          /* pushes it toward the middle */
  text-align: center;
  padding: 2rem 1rem;
}

/* Optional: tighten spacing for a cleaner minimalist look */
.hero-title {
  margin-bottom: 1rem;
}

.capsule-search {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
}

.capsule-search input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 1rem;
}

body.dark .capsule-search input {
  background: #1b1b1b;
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.hero-subtext {
  margin-top: 1rem;
  opacity: 0.8;
}
.hero-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 75vh;       /* raises the whole block */
  padding-top: 2rem;      /* subtle upward nudge */
  text-align: center;
}

.capsule-search {
  width: 100%;
  max-width: 640px;       /* wider, more balanced */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.capsule-search input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  border-radius: 12px;
}