/* ============================================================
   MinerCore — Core Layout System (Light Theme)
   ============================================================ */

html { scroll-behavior: smooth; }

html, body {
    background-color: var(--color-bg);
    min-height: 100vh;
}

#page, .site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-bg);
    overflow-x: clip;
}

#content, #primary, .site-main {
    flex-grow: 1;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ── Section spacing ── */
.section-pad    { padding-top: 70px;  padding-bottom: 70px; }
.section-pad-sm { padding-top: 40px;  padding-bottom: 40px; }

/* ── Generic grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 25px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Flex utilities ── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.gap-10       { gap: 10px; }
.gap-15       { gap: 15px; }
.gap-20       { gap: 20px; }
.gap-30       { gap: 30px; }

/* ── Text utilities ── */
.text-center  { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-text-muted); }
.text-dark    { color: var(--color-text-main); }

/* ── Spacing utilities ── */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ── Separator ── */
.sep-line {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 30px 0;
}
