/* ============================================================================
   Layout: Section Scaffolding & Shared Heading Styles
   ========================================================================= */

#app,
main {
    background-color: var(--color-bg-primary);
    min-height: 100vh;
}

section,
.section {
    position: relative;
    padding: 6rem 0 4rem;
    background-color: transparent;
}

.section-compact,
section.section-compact {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

section:first-of-type,
.section:first-of-type {
    padding-top: 7.5rem;
}

section:last-of-type,
.section:last-of-type {
    padding-bottom: 6rem;
}

.section + .section,
section + section {
    margin-top: 0;
}

.section-heading {
    text-align: center;
    font-family: var(--font-family-headings);
    font-size: clamp(2.25rem, 5.4vw, 3.375rem);
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 2.5rem;
}

.section-heading-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #3B82F6 50%, #A855F7 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-dark {
    background: var(--dark-gradient);
    color: var(--text-white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--text-white);
}

.section-light {
    background: var(--color-bg-secondary);
}

.section-title {
    font-family: var(--font-family-headings);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title-centered {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-light,
.category-title-light {
    color: var(--text-white) !important;
}

.category-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title i {
    font-size: 1.15em;
}
