/* ============================================
   TECH IN DE LES - MODULAIR SECTIE SYSTEEM
   Herbruikbare section layouts en grids
   ============================================ */

/* === SECTIE CONTAINERS === */

/* Base section padding */
.section-full,
.section-content,
.section-card {
    padding: var(--section-padding, 60px) 0;
}

/* Full-width: achtergrond gaat tot rand scherm */
.section-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: var(--container-padding, 20px);
    padding-right: var(--container-padding, 20px);
}

/* Content: standaard met container */
.section-content {
    /* Geen speciale width styling - gebruikt parent container */
}

/* Card: floating met border-radius */
.section-card {
    max-width: var(--width-wide);
    margin: var(--section-padding, 60px) auto;
    border-radius: var(--radius-lg);
    padding: 60px 80px;
}

/* === ACHTERGROND VARIANTEN === */

.bg-light {
    background: var(--bg-section);  /* #EDF2F1 - licht mint */
}

.bg-dark {
    background: linear-gradient(135deg, var(--bg-dark-start) 0%, var(--bg-dark-mid) 50%, var(--bg-dark-end) 100%);
    color: var(--text-light);
}

.bg-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--text-light);
}

.bg-white {
    background: var(--bg-card);
}

.bg-transparent {
    background: transparent;
}

/* Text color helpers voor donkere achtergronden */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-accent h1, .bg-accent h2, .bg-accent h3, .bg-accent h4 {
    color: var(--text-light);
}

.bg-dark p, .bg-accent p {
    color: rgba(255, 255, 255, 0.9);
}

.bg-dark a, .bg-accent a {
    color: var(--text-light);
    text-decoration: underline;
}

.bg-dark a:hover, .bg-accent a:hover {
    opacity: 0.8;
}

/* === GRID LAYOUTS === */

/* Basis grids */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Asymmetrische grids */
.grid-2-col-40-60 {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: start;
}

.grid-2-col-60-40 {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 60px;
    align-items: center;
}

.grid-2-col-30-70 {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 40px;
}

.grid-2-col-70-30 {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
}

/* Auto-fit voor flexibele kolommen */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Grid alignment helpers */
.grid-align-start {
    align-items: start;
}

.grid-align-center {
    align-items: center;
}

.grid-align-end {
    align-items: end;
}

/* === SECTIE TITELS === */

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: var(--width-narrow);
    margin-bottom: 40px;
    line-height: 1.7;
}

.section-subtitle.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Section intro block */
.section-intro {
    max-width: var(--width-content);
    margin-bottom: 50px;
}

.section-intro.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* === CARDS BINNEN SECTIES === */

.card-bordered {
    background: var(--bg-card);
    border: 2px solid rgba(21, 101, 192, 0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-bordered:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Cards op donkere achtergrond */
.bg-dark .card-bordered {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.bg-dark .card-bordered:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Cards op accent achtergrond */
.bg-accent .card-bordered {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card met icon */
.card-icon {
    text-align: center;
    padding: 32px 24px;
}

.card-icon .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.card-icon h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.card-icon p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === BULLET LISTS IN SECTIES === */

.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.section-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.bg-dark .section-list li::before,
.bg-accent .section-list li::before {
    color: var(--text-light);
}

/* Checkmark list variant */
.section-list.checklist li::before {
    content: "✓";
    color: var(--primary);
}

/* === SPACING UTILITIES === */

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.pt-0 { padding-top: 0; }
.pt-3 { padding-top: 24px; }
.pt-5 { padding-top: 48px; }

.pb-0 { padding-bottom: 0; }
.pb-3 { padding-bottom: 24px; }
.pb-5 { padding-bottom: 48px; }

/* === TEXT UTILITIES === */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-light { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--secondary); }

/* === RESPONSIVE === */

@media (max-width: 1024px) {
    .section-card {
        margin: 40px 20px;
        padding: 40px;
        border-radius: var(--radius-lg);
    }

    .grid-2-col-40-60,
    .grid-2-col-60-40,
    .grid-2-col-30-70,
    .grid-2-col-70-30 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .section-full,
    .section-content,
    .section-card {
        padding: 40px 20px;
    }

    .section-card {
        border-radius: var(--radius-md);
        margin: 20px 15px;
        padding: 30px 20px;
    }

    .grid-2-col,
    .grid-3-col,
    .grid-4-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grid-auto-fit {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    .card-bordered {
        padding: 20px;
    }

    .card-icon {
        padding: 24px 20px;
    }

    .card-icon .icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .section-full,
    .section-content {
        padding: 30px 15px;
    }

    .section-card {
        margin: 15px 10px;
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}
