/* ============================================
   ABOUT SIDEBARS COMPONENT
   Reusable "About this Piece" and "About the Artist"
   floating sidebar components for case study pages.
   ============================================ */

/* Brand fonts for sidebar components */
@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. FLOATING PAIR LAYOUT
   ============================================ */

.about-sidebar-pair {
    display: flex;
    gap: 24px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* ============================================
   2. BASE SIDEBAR STYLES
   ============================================ */

.about-sidebar {
    flex: 0 0 300px;
    max-width: 300px;
    background: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* Header */
.about-sidebar__header {
    padding: 12px 16px;
    background: var(--primary, #022662);
    color: #fff;
}

.about-sidebar__label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: block;
}

.about-sidebar__title {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Body */
.about-sidebar__body {
    padding: 16px;
}

/* Body text typography */
.about-sidebar__label,
.about-sidebar__key,
.about-sidebar__value,
.about-sidebar__bio,
.about-sidebar__mission-desc,
.about-sidebar__downloads-label,
.about-sidebar__downloads-variant {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   3. ABOUT THIS PIECE - Key/Value Rows
   ============================================ */

.about-sidebar__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.about-sidebar__row:last-child {
    border-bottom: none;
}

.about-sidebar__key {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-sidebar__value {
    font-size: 14px;
    color: var(--text, #363636);
    text-align: right;
}

.about-sidebar__value a {
    color: var(--text, #363636);
    text-decoration: underline;
    text-decoration-color: rgba(54, 54, 54, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.about-sidebar__value a:hover {
    text-decoration-color: var(--text, #363636);
}

/* Award row styling */
.about-sidebar__row--award .about-sidebar__value {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   3b. DOWNLOAD FILES SECTION
   ============================================ */

.about-sidebar__downloads {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.about-sidebar__downloads-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.about-sidebar__downloads-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-sidebar__download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--primary, #022662);
    color: #fff;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.about-sidebar__download-btn:hover {
    background: #033a8c;
    color: #fff;
    transform: translateY(-1px);
}

.about-sidebar__download-btn:active {
    transform: translateY(0);
}

.about-sidebar__download-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Format-specific button colors */
.about-sidebar__download-btn--pdf {
    background: #d32f2f;
}

.about-sidebar__download-btn--pdf:hover {
    background: #b71c1c;
}

.about-sidebar__download-btn--ai {
    background: #ff9a00;
}

.about-sidebar__download-btn--ai:hover {
    background: #e68900;
}

.about-sidebar__download-btn--indd {
    background: #ff3366;
}

.about-sidebar__download-btn--indd:hover {
    background: #e6295c;
}

.about-sidebar__download-btn--zip,
.about-sidebar__download-btn--psd {
    background: #31a8ff;
}

.about-sidebar__download-btn--zip:hover,
.about-sidebar__download-btn--psd:hover {
    background: #0091eb;
}

/* Grouped download rows (for variant-based files like coated/uncoated) */
.about-sidebar__downloads-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.about-sidebar__downloads-row:last-child {
    margin-bottom: 0;
}

.about-sidebar__downloads-variant {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    min-width: 60px;
    flex-shrink: 0;
}

/* ============================================
   4. ABOUT THE MISSION - Logo & Description
   (NASA pages - replaces Artist sidebar)
   ============================================ */

.about-sidebar--mission .about-sidebar__body {
    text-align: center;
}

.about-sidebar__logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 16px;
    display: block;
}

.about-sidebar__logo img {
    width: 100%;
    height: auto;
}

/* Placeholder state for logo */
.about-sidebar__logo--placeholder {
    width: 120px;
    height: 60px;
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
    border-radius: 4px;
    margin: 0 auto 16px;
}

/* Multiple logos side by side (e.g., NASA + JPL) */
.about-sidebar__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0 auto 16px;
    max-width: 200px;
}

.about-sidebar__logos img {
    max-height: 50px;
    width: auto;
    flex-shrink: 0;
}

.about-sidebar__mission-name {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #022662);
    text-align: center;
    margin: 0 0 12px;
}

.about-sidebar__mission-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text, #363636);
    margin: 0 0 16px;
    text-align: left;
}

.about-sidebar__source-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: var(--primary, #022662);
    text-decoration: none;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(2, 38, 98, 0.08);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.about-sidebar__source-link:hover {
    background: rgba(2, 38, 98, 0.15);
}

.about-sidebar__source-link svg {
    width: 12px;
    height: 12px;
}

/* ============================================
   5. ABOUT THE ARTIST - Portrait & Bio
   ============================================ */

.about-sidebar__portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    background: #ddd;
}

.about-sidebar__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder state */
.about-sidebar__portrait--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
}

.about-sidebar__portrait--placeholder::after {
    content: "";
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.about-sidebar__artist-name {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #022662);
    text-align: center;
    margin: 0 0 12px;
}

.about-sidebar__bio {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text, #363636);
    margin: 0 0 16px;
}

/* ============================================
   5. ADDITIONAL WORK GALLERY
   ============================================ */

.about-sidebar__gallery {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.about-sidebar__gallery-title {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.about-sidebar__thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.about-sidebar__thumb {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background: #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.about-sidebar__thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-sidebar__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder thumbnails */
.about-sidebar__thumb--placeholder {
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

/* ============================================
   6. EXTERNAL LINK BUTTON
   ============================================ */

.about-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--secondary, #f68b1f);
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 16px;
    transition: background-color 0.2s ease;
}

.about-sidebar__link:hover {
    background: #e07a10;
    color: #fff;
}

.about-sidebar__link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Disabled state for placeholder links */
.about-sidebar__link[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   7. THEME MODIFIERS
   ============================================ */

/* The Kiss - Deep purple */
.about-sidebar__header--theme-kiss {
    background: #1a0a1a;
}

/* Robot - Dark metallic blue */
.about-sidebar__header--theme-robot {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* Corvus Corax - Dark charcoal */
.about-sidebar__header--theme-corvus {
    background: #1a1a1a;
}

/* Monarchy - Royal purple */
.about-sidebar__header--theme-monarchy {
    background: #2d1b4e;
}

/* Iridophore - Iridescent teal */
.about-sidebar__header--theme-iridophore {
    background: linear-gradient(135deg, #0d4f4f, #1a3a3a);
}

/* Dust - Warm earth tone */
.about-sidebar__header--theme-dust {
    background: #3d2b1f;
}

/* Ravenstag - Forest dark */
.about-sidebar__header--theme-ravenstag {
    background: #1a2f1a;
}

/* Postosuchus - Prehistoric red */
.about-sidebar__header--theme-postosuchus {
    background: #4a1a1a;
}

/* Breach Dogs - Black with green accent */
.about-sidebar__header--theme-breach-dogs {
    background: linear-gradient(135deg, #1a1a1a, #0D5D0D);
}

/* ============================================
   NASA PAGE THEMES
   ============================================ */

/* Mars - NASA Indigo blue */
.about-sidebar__header--theme-mars {
    background: #022662;
}

/* Dark Matter - Deep space purple */
.about-sidebar__header--theme-dark-matter {
    background: linear-gradient(135deg, #1a0a2e, #0a0a1a);
}

/* Jupiter - Warm orange/brown */
.about-sidebar__header--theme-jupiter {
    background: #6b3d1a;
}

/* Saturn - Golden amber */
.about-sidebar__header--theme-saturn {
    background: #5a4520;
}

/* Europa - Icy blue */
.about-sidebar__header--theme-europa {
    background: #1a4a5a;
}

/* Titan - Orange haze */
.about-sidebar__header--theme-titan {
    background: #5a3a20;
}

/* Enceladus - Cool cyan */
.about-sidebar__header--theme-enceladus {
    background: #1a3a4a;
}

/* Venus - Sulfur yellow */
.about-sidebar__header--theme-venus {
    background: #5a5020;
}

/* Grand Tour - Deep space */
.about-sidebar__header--theme-grand-tour {
    background: #0a1a2a;
}

/* Earth - Blue planet */
.about-sidebar__header--theme-earth {
    background: #1a3a5a;
}

/* PSO - Red dwarf */
.about-sidebar__header--theme-pso {
    background: #4a1a2a;
}

/* Solar Surfing - Solar orange */
.about-sidebar__header--theme-solar-surfing {
    background: #5a3a10;
}

/* Rains of Terror - Stormy blue */
.about-sidebar__header--theme-rains {
    background: #1a3a5a;
}

/* ColorUp - Extended gamut purple */
.about-sidebar__header--theme-colorup {
    background: linear-gradient(135deg, #3a1a4a, #1a2a4a);
}

/* IndiGlow - Luminescent blue */
.about-sidebar__header--theme-indiglow {
    background: linear-gradient(135deg, #1a2a5a, #0a1a3a);
}

/* ============================================
   FEATHER PAGE THEMES
   ============================================ */

/* Feather Gold - Warm gold */
.about-sidebar__header--theme-feather-gold {
    background: #5a4a1a;
}

/* Feather Silver - Cool silver */
.about-sidebar__header--theme-feather-silver {
    background: #3a3a4a;
}

/* Feather Fluorescent - Vibrant pink */
.about-sidebar__header--theme-feather-fl {
    background: linear-gradient(135deg, #5a1a4a, #3a1a3a);
}

/* Feather White Ink - Neutral gray (colored substrate) */
.about-sidebar__header--theme-feather-white-ink {
    background: #4a5568;
}

/* Feather Foil Only - Blue to match blue foil */
.about-sidebar__header--theme-feather-foil-only {
    background: #1a4a8c;
}

/* ============================================
   8. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet - Stack if needed */
@media (max-width: 1024px) {
    .about-sidebar-pair {
        gap: 20px;
    }

    .about-sidebar {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

/* Small tablet - Stack vertically */
@media (max-width: 768px) {
    .about-sidebar-pair {
        flex-direction: column;
        align-items: stretch;
    }

    .about-sidebar {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .about-sidebar-pair {
        gap: 16px;
        margin: 20px 0;
    }

    .about-sidebar__body {
        padding: 12px;
    }

    .about-sidebar__thumbnails {
        gap: 6px;
    }
}

/* ============================================
   9. CASE STUDY PAGE SECTIONS
   Full-width section layout for case study pages
   ============================================ */

/* About Section - Horizontal Row Layout */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f5f7fa;
}

.about-section__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Remove fixed width constraint for grid children */
.about-section__row .about-sidebar {
    flex: 1 1 auto;
    max-width: none;
}

/* Design Process Story Section */
.design-story {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
}

.design-story__heading {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.design-story__content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
}

.design-story__content p {
    margin: 0 0 20px;
}

.design-story__content p:last-child {
    margin-bottom: 0;
}

/* Demo Cards Section */
.demo-cards-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f5f7fa;
}

.demo-cards-section__heading {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
}

.demo-cards-section__grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* Layer Breakdown Section */
.layer-breakdown-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
}

.layer-breakdown-section__heading {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
}

/* ============================================
   10. CASE STUDY RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .about-section__row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Make third sidebar span full width */
    .about-section__row .about-sidebar:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        justify-self: center;
    }
}

/* Small tablet - stack vertically */
@media (max-width: 768px) {
    .about-section__row {
        grid-template-columns: 1fr;
    }

    .about-section__row .about-sidebar:nth-child(3) {
        max-width: none;
        justify-self: stretch;
    }

    .about-section,
    .design-story,
    .demo-cards-section,
    .layer-breakdown-section {
        padding: 30px 16px;
    }

    .design-story__heading,
    .layer-breakdown-section__heading {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .about-section,
    .design-story,
    .demo-cards-section,
    .layer-breakdown-section {
        padding: 24px 12px;
    }

    .about-section__row {
        gap: 16px;
    }

    .demo-cards-section__grid {
        gap: 16px;
    }
}
