/* ============================================
   LAYOUT — Containers, Grid, Sections
   ============================================ */

/* === CONTAINERS === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-lg);
}

/* === SECTIONS === */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-dark {
    background-color: var(--color-bg-primary);
}

.section-darker {
    background-color: var(--color-bg-surface);
}

.section-gradient {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.section-header .subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === ORNAMENTAL DIVIDER === */
.divider-ornate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.divider-ornate::before,
.divider-ornate::after {
    content: '';
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-dark), transparent);
}

.divider-ornate .diamond {
    width: 10px;
    height: 10px;
    background: var(--color-gold-primary);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* === GRID SYSTEM === */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 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-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* === PAGE WRAPPER === */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper main {
    flex: 1;
}

/* === CONTENT WITH SIDEBAR === */
.layout-sidebar {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: calc(100vh - var(--navbar-height));
}

.layout-sidebar .sidebar {
    background: var(--color-bg-secondary);
    border-right: var(--border-subtle);
    padding: var(--space-xl);
}

.layout-sidebar .main-content {
    padding: var(--space-xl) var(--space-2xl);
}
