/* Full Width Layout Styles */

/* Remove max-width constraints */
.chapter-content {
    max-width: none !important;
    padding: 4rem 4rem !important;
}

.chapter-header {
    padding: 6rem 4rem !important;
}

.chapter-summary {
    max-width: none !important;
    font-size: 1.5rem !important;
}

/* Make sections wider */
.section {
    max-width: 1400px;
    margin: 0 auto 4rem auto;
}

/* Make visualizations full width */
.viz-container {
    max-width: none !important;
    margin: 4rem -4rem !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
}

.viz-container h3 {
    font-size: 1.8rem !important;
    padding: 2rem !important;
    background: none !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Quote boxes wider */
.quote-box {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem 3rem;
    font-size: 1.2rem;
}

/* Navigation also wider */
.chapter-nav {
    max-width: none !important;
    padding: 4rem 4rem !important;
}

/* For very wide screens, add some reasonable limits */
@media (min-width: 1800px) {
    .section {
        max-width: 1600px;
    }
    
    .viz-container {
        margin: 4rem 0 !important;
        max-width: 100vw !important;
    }
}

/* Adjust navigation sidebar for full width */
.main-content {
    padding: 0 !important;
}

/* Make embedded iframes responsive */
.viz-container iframe {
    min-height: 700px !important;
}

/* Typography adjustments for wider layout */
.section h2 {
    font-size: 2.5rem !important;
    margin-bottom: 2rem !important;
}

.section p {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    max-width: 1000px;
}

/* Grid layout for some sections */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

/* Full bleed backgrounds for viz sections */
.viz-container {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(10, 10, 10, 0.5) 100%) !important;
    position: relative;
    overflow: visible !important;
}

.viz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100vw;
    right: -100vw;
    bottom: 0;
    background: inherit;
    z-index: -1;
}

/* Improve canvas and svg containers */
.viz-container > div {
    min-height: 600px;
}

.viz-container canvas,
.viz-container svg {
    display: block;
    margin: 0 auto;
}