/* Design Direction 2a: Index Brutalism (모노스페이스 · 1px 보더 · Raw HTML 감성) */

:root {
    --bg-color: #F4F4F0;
    --text-color: #111;
    --accent-color: #FF4D8D;
    --border-color: #111;
    --border-light: rgba(17, 17, 17, 0.25);
    
    --font-mono: 'IBM Plex Mono', Menlo, monospace;
    --font-sans: 'IBM Plex Sans KR', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

body {
    margin: 0;
    padding: 40px 20px;
    background-color: #E8E2D5;
    color: var(--text-color);
    font-family: var(--font-mono);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.brutalist-container {
    width: 100%;
    max-width: 940px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--border-color);
    transition: box-shadow 0.2s ease;
}

.brutalist-container:hover {
    box-shadow: 10px 10px 0 var(--border-color);
}

/* Header */
.brutalist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.pink-square {
    display: inline-block;
    width: 9px;
    height: 16px;
    background-color: var(--accent-color);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 500;
}

.nav-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nav-link {
    cursor: pointer;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    padding: 3px 10px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-color);
    animation: pulse 1.2s infinite;
}

/* Headline */
.headline-section {
    padding: 36px 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.doc-meta {
    font-size: 12px;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.55);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 16px;
}

.giant-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 88px;
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.cursor-blink {
    color: var(--accent-color);
    animation: blink 1s step-end infinite;
}

.sub-stamp {
    display: block;
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(17, 17, 17, 0.55);
}

/* Meta + Tree Grid */
.meta-tree-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    border-bottom: 1px solid var(--border-color);
}

.meta-details {
    padding: 20px 24px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 13px;
    font-weight: 500;
}

.meta-row.no-border {
    border-bottom: none;
}

.meta-label {
    color: rgba(17, 17, 17, 0.5);
}

.status-dot {
    color: var(--accent-color);
}

.tree-preview {
    padding: 20px 24px;
    white-space: pre;
    font-size: 13px;
    line-height: 1.95;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.85);
    background-color: rgba(17, 17, 17, 0.02);
}

/* Index Rows */
.index-section {
    border-bottom: 1px solid var(--border-color);
}

.index-row {
    display: grid;
    grid-template-columns: 70px 1fr 150px 46px;
    align-items: center;
    padding: 15px 24px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.index-row:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.row-num {
    font-size: 13px;
    font-weight: 500;
}

.row-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
}

.row-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-color);
    transition: color 0.15s ease;
}

.index-row:hover .row-tag {
    color: var(--bg-color);
}

.row-arrow {
    font-size: 18px;
    font-weight: 500;
    text-align: right;
    color: var(--accent-color);
    transition: color 0.15s ease, transform 0.15s ease;
}

.index-row:hover .row-arrow {
    color: var(--bg-color);
    transform: translate(3px, -3px);
}

.index-row.no-border {
    border-bottom: none;
}

/* Exhibit Section */
.exhibit-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.exhibit-photo {
    position: relative;
    height: 190px;
    border-right: 1px solid var(--border-color);
    background: repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.08) 0 10px, rgba(17, 17, 17, 0) 10px 22px), #EAEAE2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exhibit-title-tag {
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
}

.exhibit-caption {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(17, 17, 17, 0.5);
    padding: 10px;
    text-align: center;
}

.exhibit-info {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.tldr-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--accent-color);
}

.tldr-text {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.75;
    font-weight: 500;
}

/* Footer */
.brutalist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(17, 17, 17, 0.6);
}

.footer-marquee {
    color: var(--accent-color);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: var(--accent-color); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .brutalist-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 18px;
    }
    
    .giant-title {
        font-size: 48px;
    }
    
    .meta-tree-grid {
        grid-template-columns: 1fr;
    }
    
    .meta-details {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .index-row {
        grid-template-columns: 50px 1fr 30px;
        padding: 12px 18px;
    }
    
    .row-tag {
        display: none;
    }
    
    .exhibit-section {
        grid-template-columns: 1fr;
    }
    
    .exhibit-photo {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: 150px;
    }
    
    .brutalist-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 18px;
    }
}
