/* MEE6-inspired theme for DCMB — compact, modern hero + cards */
:root{
  --primary: #1d4ed8; /* deep blue */
  --accent: #22c55e;  /* lime green */
  --muted: rgba(226,232,240,0.78);
  --bg: #020617;
  --card: rgba(15,23,42,0.92);
  --glass: rgba(15,23,42,0.85);
}

body{
  background: radial-gradient(circle at top, #020617 0%, #020617 35%, #020617 60%, #020617 100%);
  color: #e5e7eb;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* Site-wide announcement bar */
.site-announcement-bar{
  background:#020617;
  border-bottom:1px solid rgba(15,23,42,0.9);
  padding:0.4rem 0;
}

.site-announcement-icon{
  width:26px;
  height:26px;
  border-radius:999px;
  background:#1d4ed8;
  color:#e5e7eb;
  font-size:0.85rem;
}

.site-announcement-close{
  border-color:rgba(148,163,184,0.45);
  color:#e5e7eb;
  padding:0.15rem 0.45rem;
}

/* Hero banner at top of homepage, aligned with main container */
.hero-banner-full{
  margin-bottom:1.5rem;
}
.hero-banner-full img{
  display:block;
  width:100%;
  height:auto;
  border-radius:16px;
  object-fit:cover;
}

/* ORIGINAL HERO (still used on some pages) */
.hero{padding-top:6rem;padding-bottom:4rem}
.hero .display-5{color:#fff;font-weight:700;letter-spacing:-0.5px;font-size:2.8rem}
.hero .lead{color:var(--muted);font-size:1.05rem}

.hero .btn-success{
  background:linear-gradient(90deg,var(--primary),var(--accent));
  border:none;
  box-shadow:0 6px 20px rgba(88,101,242,0.18);
}
.hero .btn-outline-light{
  border-color:rgba(255,255,255,0.12);
}

.hero-banner{height:200px;border-radius:12px;overflow:hidden;background-size:cover;background-position:center;position:relative}
.hero-curve{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:70px}

/* ERLCX-STYLE LANDING HERO (used on home page) */
.landing-hero-shell{
  position:relative;
  overflow:hidden;
}

.landing-hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0.18;
  filter:blur(4px);
  transform:scale(1.03);
}

.landing-hero-overlay{
  position:relative;
}

.landing-hero{
  padding-top:5rem;
  padding-bottom:4rem;
}

.landing-hero-inner{
  max-width:880px;
  margin:0 auto;
  text-align:center;
}

.landing-hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  padding:0.2rem 0.7rem;
  border-radius:999px;
  font-size:0.75rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:rgba(15,23,42,0.85);
  border:1px solid rgba(148,163,184,0.45);
  color:var(--muted);
}

.landing-hero-title{
  font-size:2.9rem;
  font-weight:800;
  letter-spacing:-0.06em;
  margin-top:1.2rem;
  margin-bottom:0.75rem;
}

.landing-hero-title span{
  background:linear-gradient(90deg,#3b82f6,#22c55e);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.landing-hero-subtitle{
  max-width:620px;
  margin:0 auto;
  color:var(--muted);
}

.landing-hero-search{
  max-width:720px;
  margin:1.75rem auto 0;
}

.landing-hero-search .search-shell{
  display:flex;
  align-items:stretch;
  background:rgba(15,23,42,0.96);
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.6);
  box-shadow:0 18px 50px rgba(15,23,42,0.95);
}

.landing-hero-search .search-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 0.9rem;
  color:var(--muted);
}

.landing-hero-search input[type="search"]{
  flex:1;
  border:0;
  background:transparent;
  color:#e5e7eb;
  padding:0.8rem 0.4rem;
  border-radius:999px 0 0 999px;
}

.landing-hero-search input[type="search"]::placeholder{
  color:rgba(148,163,184,0.8);
}

.landing-hero-search input[type="search"]:focus{
  outline:none;
}

.landing-hero-search .btn-search{
  border-radius:999px;
  padding:0.7rem 1.4rem;
  font-weight:600;
  border:0;
  background:linear-gradient(90deg,#3b82f6,#22c55e);
  box-shadow:0 10px 30px rgba(37,99,235,0.55);
}

.landing-hero-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:1rem;
  margin-top:1.8rem;
  font-size:0.78rem;
  color:var(--muted);
}

.landing-hero-meta .meta-pill{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  padding:0.3rem 0.7rem;
  border-radius:999px;
  background:rgba(15,23,42,0.8);
  border:1px solid rgba(30,64,175,0.6);
}

/* Feature strip beneath hero */
.landing-feature-strip{
  padding-bottom:2.5rem;
}

.landing-feature-card{
  background:var(--card);
  border-radius:12px;
  border:1px solid rgba(15,23,42,0.9);
  box-shadow:0 10px 30px rgba(0,0,0,0.65);
  color:#e5e7eb;
}

.landing-feature-icon{
  width:36px;
  height:36px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,0.9);
  border:1px solid rgba(55,65,81,0.8);
}

.landing-feature-card .fw-semibold{
  color:#f9fafb;
}

.landing-feature-card .small,
.landing-feature-card .text-muted{
  color:var(--muted) !important;
}

/* Explore section */
.landing-section-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:1rem;
}

.landing-section-heading h2{
  font-size:1.25rem;
}

.landing-filters{
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem;
}

.landing-filter-pill{
  border-radius:999px;
  border:1px solid rgba(55,65,81,0.9);
  background:rgba(15,23,42,0.78);
  color:var(--muted);
  padding:0.25rem 0.7rem;
  font-size:0.78rem;
}

.landing-filter-pill.active{
  background:linear-gradient(90deg,var(--primary),var(--accent));
  color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,0.8);
}

/* LOGIN VIEWPORT */
.login-viewport{
  min-height: calc(100vh - 72px);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.login-panel{
  position:relative;
  margin-top:-80px;
  padding-bottom:4rem;
}

.login-card{
  border-radius:18px;
  background: radial-gradient(circle at top left, rgba(138,92,246,0.25), transparent 55%), var(--card);
  border:1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  animation: login-pop 420ms ease-out;
}

.login-discord-btn{
  position:relative;
  overflow:hidden;
  background:linear-gradient(90deg,#2563eb,#3b82f6);
  border:none;
  box-shadow:0 16px 40px rgba(37,99,235,0.45);
}

.login-discord-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 0 0, rgba(255,255,255,0.3), transparent 60%);
  opacity:0;
  transform:translateX(-40%);
  transition:opacity .25s ease, transform .25s ease;
}

.login-discord-btn:hover::after{
  opacity:1;
  transform:translateX(0);
}

@keyframes login-pop{
  from{opacity:0;transform:translateY(14px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* NAVBAR */
.navbar{
  background: linear-gradient(180deg, rgba(11,18,32,0.0) 0%, rgba(11,18,32,0.25) 100%);
}
.navbar-brand{color:#fff}
.navbar .nav-link{color:rgba(255,255,255,0.8)}
.navbar .nav-link:hover{color:#fff}

/* Hero layout for MEE6 style: left text, right illustration */
.hero .hero-inner{display:flex;align-items:center;gap:2.5rem}
.hero .hero-left{flex:1;max-width:680px}
.hero .hero-right{flex:0 0 460px}
.hero .hero-art{
  border-radius:14px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  min-height:220px; /* slimmer banner look, ideal for ~1200x400 images */
}

/* CARDS */
.card.card-dark{
  background:var(--card);
  border:1px solid rgba(255,255,255,0.04);
  backdrop-filter:blur(10px);
  border-radius:14px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.card.card-dark h5, .card.card-dark h6{color:#fff}

/* Settings layout */
.settings-card{
  box-shadow:0 20px 60px rgba(0,0,0,0.55);
}

.settings-tabs{
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.settings-tabs .nav-link{
  border:0;
  color:var(--muted);
  padding:.35rem .9rem;
  border-radius:999px;
  margin-right:.35rem;
}
.settings-tabs .nav-link.active{
  background:linear-gradient(90deg,var(--primary),var(--accent));
  color:#fff;
  box-shadow:0 6px 18px rgba(88,101,242,0.35);
}

.settings-panes{
  margin-top:.25rem;
}

.settings-section{
  background:var(--glass);
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.06);
  padding:1rem 1.25rem;
}
.settings-section + .settings-section{
  margin-top:1rem;
}
.settings-section h5{
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#fff;
}

.settings-section .form-label{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
}

.settings-section textarea{
  font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.78rem;
}

/* Dark inputs */
.card.card-dark .form-control,
.card.card-dark .form-select{
  background:rgba(15,23,42,0.9);
  border:1px solid rgba(148,163,184,0.45);
  color:#e5e7eb;
}

.card.card-dark .form-control::placeholder{
  color:rgba(148,163,184,0.8);
}

.card.card-dark .form-control:focus,
.card.card-dark .form-select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 1px rgba(138,92,246,0.55);
  background:rgba(15,23,42,0.98);
}

.card.card-dark .form-check-input{
  background-color:#020617;
  border-color:rgba(148,163,184,0.6);
}

.card.card-dark .form-check-input:checked{
  background-color:var(--primary);
  border-color:var(--primary);
}

/* FEATURES */
.features .card{transition:transform .18s ease, box-shadow .18s ease}
.features .card:hover{transform:translateY(-6px);box-shadow:0 10px 30px rgba(0,0,0,0.45)}

/* Server list cards */
.server-card{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.server-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 26px rgba(0,0,0,0.5);
  border-color:rgba(138,92,246,0.6);
}

.server-avatar{
  width:60px;height:60px;font-size:24px;font-weight:bold;flex-shrink:0;
}

/* Ticket / resource links */
a.text-info{color:var(--primary)!important}

/* Footer */
footer{opacity:0.9;background:#020617;border-top:1px solid rgba(15,23,42,0.9)}

.footer-grid{
  display:grid;
  grid-template-columns:2.1fr 1.1fr 1.1fr 1.1fr;
  gap:2.5rem;
  font-size:0.85rem;
}

.footer-title{
  font-weight:600;
  font-size:0.9rem;
  margin-bottom:0.75rem;
}

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

.footer-link:hover{
  color:#e5e7eb;
}

.footer-brand{
  font-weight:700;
  letter-spacing:-0.05em;
}

/* Utilities */
.small.text-muted{color:var(--muted)}

/* Docs page rich content */
.docs-content{
  color:#e5e7eb;
  font-size:.95rem;
  line-height:1.6;
}
.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4{
  color:var(--accent);
  font-weight:700;
  margin-top:1.25rem;
  margin-bottom:.5rem;
}
.docs-content h1{font-size:1.7rem}
.docs-content h2{font-size:1.4rem}
.docs-content h3{font-size:1.2rem}
.docs-content h4{font-size:1.05rem}
.docs-content p{margin-bottom:.65rem}
.docs-content ul,
.docs-content ol{padding-left:1.4rem;margin-bottom:.75rem}
.docs-content a{color:var(--primary);text-decoration:underline}
.docs-content img{max-width:100%;border-radius:.5rem;margin:.75rem 0}

/* Responsive tweaks */
@media (max-width: 768px){
  .hero-banner{height:120px}
  .hero{padding-top:3rem}
  .hero .hero-inner{flex-direction:column}
  .hero .hero-right{flex:1;width:100%}

  .landing-hero{
    padding-top:3.8rem;
    padding-bottom:3rem;
  }

  .landing-hero-title{
    font-size:2.1rem;
  }

  .landing-hero-search .search-shell{
    flex-direction:column;
    border-radius:18px;
    padding:0.35rem 0.4rem 0.4rem;
  }

  .landing-hero-search .btn-search{
    width:100%;
    margin-top:0.35rem;
  }

  .landing-section-heading{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:1.5rem;
  }
}
