/* ============================================
   PAGE BODY MODULAR TEMPLATE
   Standardized content sections for all Mission Control pages
   (NASA Art, Feathers, Case Studies)
   ============================================ */

/* Brand fonts for page body content */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================
   1. PAGE BODY CONTAINER
   ============================================ */

.page-body {
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Page type variants (for potential future customization) */
.page-body[data-page-type="nasa"] {
    --section-accent: var(--primary, #022662);
}

.page-body[data-page-type="feather"] {
    --section-accent: var(--primary, #022662);
}

.page-body[data-page-type="case-study"] {
    --section-accent: var(--primary, #022662);
}

/* ============================================
   2. CONTENT SECTION BASE
   Reusable section container for all content types
   ============================================ */

.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Clear floats for sections that should appear below sidebars */
.content-section--practices,
.content-section--tutorial,
.content-section--gallery {
    clear: both;
}

.content-section__heading {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary, #022662);
    margin: 0 0 20px;
}

.content-section__body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.content-section__body p {
    margin: 0 0 20px;
}

.content-section__body p:last-child {
    margin-bottom: 0;
}

/* ============================================
   3. TECHNIQUE OVERVIEW SECTION
   Educational prose about the printing technique
   ============================================ */

.content-section--technique .content-section__body {
    max-width: 800px;
}

/* ============================================
   4. BEST PRACTICES SECTION
   Designer tips and recommendations
   ============================================ */

.practices-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.practices-list__item {
    position: relative;
    padding: 16px 16px 16px 48px;
    background: var(--highlight, #fff1e6);
    border-left: 3px solid var(--secondary, #f68b1f);
    border-radius: 0 6px 6px 0;
    margin-bottom: 12px;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.practices-list__item:last-child {
    margin-bottom: 0;
}

.practices-list__item::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary, #f68b1f);
}

/* Tip variant with lightbulb */
.practices-list__item--tip::before {
    content: '💡';
}

/* Warning variant */
.practices-list__item--warning {
    background: #fff5f5;
    border-left-color: #e74c3c;
}

.practices-list__item--warning::before {
    content: '⚠️';
    color: #e74c3c;
}

/* Strong text within practice items */
.practices-list__item strong {
    color: #363636;
}

/* Category subheadings within best practices */
.practices-list__category {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #022662);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 28px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light, #e7f0fb);
}

.practices-list__category:first-of-type {
    margin-top: 0;
}

/* ============================================
   5. TUTORIAL SECTION
   File setup tutorial trigger (NASA/Feathers only)
   ============================================ */

.content-section--tutorial {
    padding: 24px;
    background: #f5f7fa;
    border-radius: 8px;
}

.content-section--tutorial .content-section__heading {
    font-size: 18px;
    margin-bottom: 16px;
}

/* Tutorial card placement */
.content-section--tutorial .tutorial-card {
    margin: 0;
    max-width: 400px;
}

/* ============================================
   6. GALLERY SECTION
   Photo gallery for examples and applications
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-grid__item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid__item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder gallery items */
.gallery-grid__item--placeholder {
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid__item--placeholder::after {
    content: '';
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

/* Gallery caption */
.gallery-grid__caption {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 8px;
    background: #f5f7fa;
}

/* ============================================
   7. DOWNLOAD LINKS SECTION
   Resource download buttons
   ============================================ */

.download-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--primary, #022662);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.download-link:hover {
    background: #033a8c;
    transform: translateY(-2px);
    color: #fff;
}

.download-link__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Secondary download link style */
.download-link--secondary {
    background: transparent;
    color: var(--primary, #022662);
    border: 2px solid var(--primary, #022662);
}

.download-link--secondary:hover {
    background: var(--primary, #022662);
    color: #fff;
}

/* ============================================
   8. LAYER BREAKDOWN GRID
   Technical layer-by-layer description cards
   ============================================ */

.layer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.layer-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.layer-card__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Layer badge variants */
.layer-card__badge--substrate {
    background: #f5f5f5;
    color: #666;
}

.layer-card__badge--cmyk {
    background: linear-gradient(135deg, #00bcd4, #4caf50, #ffeb3b, #e91e63);
    color: #fff;
    background-size: 200% 100%;
}

.layer-card__badge--foil {
    background: linear-gradient(135deg, #d4af37, #f5d061);
    color: #333;
}

.layer-card__badge--metallic {
    background: linear-gradient(135deg, #A8A8A8, #D0D0D0);
    color: #333;
}

.layer-card__badge--laminate {
    background: #e8f4fc;
    color: #1976d2;
}

.layer-card__badge--uv {
    background: linear-gradient(135deg, #9c27b0, #00bcd4);
    color: #fff;
}

.layer-card__badge--fluorescent {
    background: linear-gradient(135deg, #ff6fff, #ff1493);
    color: #fff;
}

.layer-card__title {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.layer-card__description {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ============================================
   9. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .page-body {
        padding: 30px 20px;
    }

    .content-section__heading {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Small tablet */
@media (max-width: 768px) {
    .page-body {
        padding: 24px 16px;
    }

    .content-section {
        margin-bottom: 30px;
    }

    .content-section__heading {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .practices-list__item {
        padding: 14px 14px 14px 44px;
    }

    .practices-list__item::before {
        left: 14px;
        top: 14px;
    }

    .layer-grid {
        grid-template-columns: 1fr;
    }

    .download-links {
        flex-direction: column;
    }

    .download-link {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .page-body {
        padding: 20px 12px;
    }

    .content-section__heading {
        font-size: 20px;
    }

    .content-section--tutorial {
        padding: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .layer-card {
        padding: 16px;
    }
}
