/* Container & Section layout */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  color: #f5f5f5;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

/* Role Cards */
.role-card {
  background-color: #181818;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}

.role-card p {
  color: #ddd;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Role Badges */
.role-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  color: #fff;
  background-color: #555;
}

/* Role-specific colors (from screenshots) */
.role-badge.admin {
  background-color: #e53935; /* red */
}

.role-badge.moderator {
  background-color: #b71c1c; /* deep red */
}

.role-badge.creator {
  background-color: #c62828; /* dark red */
}

.role-badge.og {
  background-color: #43a047; /* green */
}

.role-badge.manager {
  background-color: #ef6c00; /* orange */
}

.role-badge.event {
  background-color: #ff9800; /* lighter orange */
}

.role-badge.bot {
  background-color: #b71c1c; /* red for bot tags */
}

/* Channel-style highlight */
.channel {
  background: #2c2f33;
  color: #9ba3af;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Emoji styling */
.emoji {
  margin-right: 0.25rem;
}


/* Home only: remove the cyan bottom gradient/blur no matter where it lives */
body.home,
body.home html {
  background-image: none !important;
}

/* Kill common “tail” overlays on the home hero/footer */
body.home::before,
body.home::after,
body.home .page-hero::before,
body.home .page-hero::after,
body.home header.page-header::before,
body.home header.page-header::after,
body.home .home-hero::before,
body.home .home-hero::after,
body.home .site-footer::before,
body.home .site-footer::after,
body.home .gradient-bottom,
body.home .footer-glow,
body.home [data-decor="gradient"],
body.home [data-decor="glow"] {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Make sure footer/panels sit above any leftover decorative layers */
body.home .home-panels,
body.home .card-grid,
body.home footer,
body.home .site-footer {
  position: relative;
  z-index: 1;
}

/* Optional: lock the page background to a clean solid color */
html, body { background-color: #0e1113; }
body.home .site-footer { background: #0e1113; }

/* Make the footer look flat everywhere */
footer.footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 24px 0;           /* keep spacing */
}

/* If you have rules like main > * { ... } or .card, .footer { ... } */
main > footer.footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Kill any decorative overlays on the footer */
footer.footer::before,
footer.footer::after {
  content: none !important;
  background: none !important;
}

/* If a super broad selector is catching it (e.g. [class*="card"]) */
footer.footer[class] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Commands cards */
.plugin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 1rem;
}
.plugin-card {
  background: #161819;
  border: 1px solid #24282b;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.plugin-card h3 { margin: 0 0 .25rem; }
.plugin-card .muted { margin: 0 0 .5rem; display:block; }
.plugin-card .open-card { margin-top: .25rem; }

/* Inline slide-down panels */
.plugin-panels { margin-top: .5rem; }
.plugin-panel {
  background: #121416;
  border: 1px solid #24282b;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem 0;
}
.panel-header { display:flex; align-items: center; justify-content: space-between; gap: .5rem; }
.panel-actions { display:flex; gap:.5rem; flex-wrap:wrap; }

/* Simple show/hide animation */
.plugin-panel[hidden] { display: none; }
.plugin-panel.reveal {
  animation: panelReveal .18s ease-out;
}
@keyframes panelReveal { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1; transform: translateY(0);} }

/* Inputs reused from earlier */
.page-tools { display:flex; gap:.75rem; align-items:center; margin: 1rem 0 1.25rem; }
.search-input {
  flex:1; background:#121416; color:#e7eef3; border:1px solid #252a2e; border-radius:8px; padding:.6rem .8rem;
}

/* --- Dark UI for search + buttons --- */
:root{
  --ui-bg: #0f1a22;        /* field background */
  --ui-bg-hover: #13212b;
  --ui-border: #213142;    /* subtle outline */
  --ui-border-focus: #3b82f6; /* focus ring color */
  --ui-text: #e6eef6;      /* main text */
  --ui-muted: #9fb0bf;     /* placeholder / secondary */
}

/* Search input */
#search {
  -webkit-appearance: none;
  appearance: none;
  background: var(--ui-bg);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 10px 14px;
  width: min(520px, 100%);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#search::placeholder { color: var(--ui-muted); }
/* Make the little “x” in Safari/iOS visible on dark backgrounds */
#search::-webkit-search-cancel-button { filter: invert(1); }
#search:focus {
  border-color: var(--ui-border-focus);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ui-border-focus) 25%, transparent);
  background: var(--ui-bg-hover);
}

/* Open / Close buttons (your .open-card and .close-panel) */
.open-card,
.close-panel,
button,
.button {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(180deg, #1a2a36, #0f1a22);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.open-card:hover,
.close-panel:hover,
button:hover,
.button:hover {
  background: linear-gradient(180deg, #1f3341, #13212b);
  border-color: color-mix(in oklab, var(--ui-border) 60%, var(--ui-border-focus));
}
.open-card:active,
.close-panel:active,
button:active,
.button:active { transform: translateY(1px); }
.open-card:focus-visible,
.close-panel:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ui-border-focus) 25%, transparent);
  border-color: var(--ui-border-focus);
}

/* Make native form controls respect dark palettes */
:root { color-scheme: dark; }

/* ECONOMY TABLE STYLES (append to /styles/onesmp.css) */
.table-wrap{ overflow:auto; margin-top:12px; border:1px solid var(--ui-border); border-radius:12px; }
.economy-table{ width:100%; border-collapse:separate; border-spacing:0; min-width:680px; }
.economy-table th, .economy-table td{ padding:10px 12px; border-bottom:1px solid var(--ui-border); }
.economy-table thead th{ position:sticky; top:0; background:var(--ui-bg); text-align:left; font-weight:700; }
.economy-table tbody tr:hover{ background:var(--ui-bg-hover); }
.economy-table code{ opacity:.9; font-size:.9em; }
.item-name{ font-weight:600; }
