/* =====================
   Eveker and Eveker
   Global Styles
   ===================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-page:       #1e1e1e;
  --bg-nav:        #3a3a3a;
  --bg-card:       #2d2d2d;
  --bg-card-hover: #363636;
  --bg-section:    #252525;
  --border:        #3a3a3a;
  --text-primary:  #e8e6e1;
  --text-secondary:#9a9890;
  --text-dim:      #5a5a52;
  --accent-blue:   #3b82f6;
  --accent-red:    #ef4444;
  --accent-green:  #22c55e;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
}

html, body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-links a.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ---- PAGE WRAPPER ---- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ---- PAGE HEADER ---- */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.section-group {
  margin-bottom: 2rem;
}

/* ---- CARD GRID ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

/* ---- LINK CARD ---- */
.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: #4a4a4a;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.card-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.card-domain {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.card-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 13px;
  flex-shrink: 0;
}

/* ---- HOME SECTION CARDS ---- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1.5rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background 0.15s, border-color 0.15s;
}

.home-card:hover {
  background: var(--bg-card-hover);
  border-color: #4a4a4a;
}

.home-card-icon {
  font-size: 28px;
}

.home-card-title {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.home-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-card-arrow {
  margin-top: auto;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ---- ICON COLOR HELPERS ---- */
.icon-blue   { background: #1e3a5f; color: #93c5fd; }
.icon-red    { background: #4a1515; color: #fca5a5; }
.icon-green  { background: #14401e; color: #86efac; }
.icon-yellow { background: #3d3000; color: #fde68a; }
.icon-purple { background: #2d1f4a; color: #c4b5fd; }
.icon-teal   { background: #0f3535; color: #5eead4; }
.icon-orange { background: #3d1f00; color: #fdba74; }