/* work-panel.css — shared panel for all work pages */

/* Info button lives inside .site-header nav, styled here */
.header-info-btn {
    cursor: pointer;
    color: #1d1d1b;
    background: #fff;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    padding: 0.15rem 0.6rem;
    transition: opacity 0.2s;
}

.header-info-btn:hover {
    opacity: 0.8;
}

/* Legacy .work-tab hidden — now in header */
.work-tab {
    display: none;
}

/* Slide panel */
.work-panel {
    position: fixed;
    top: 36px;
    right: 0;
    width: 320px;
    height: calc(100dvh - 36px);
    z-index: 200;
    background: rgba(12, 12, 15, 0.95);
    border-left: 1px solid rgba(196, 160, 255, 0.1);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* iOS fallback */
    max-height: -webkit-fill-available;
}

.work-panel.open {
    transform: translateX(0);
}

/* Close button — fixed top-right of panel */
.work-panel-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    background: rgba(12, 12, 15, 0.8);
    border: none;
    color: var(--fg);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    line-height: 1;
    border-radius: 3px;
}

.work-panel-close:hover {
    color: var(--accent);
}

/* Scrollable content area */
.work-panel-scroll {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

.work-panel-scroll::-webkit-scrollbar {
    width: 3px;
}

.work-panel-scroll::-webkit-scrollbar-thumb {
    background: rgba(196, 160, 255, 0.2);
}

/* Info section */
.work-panel-info {
    padding: 1rem 1.5rem 1rem;
}

.work-panel-info .nav-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.work-panel-info .nav-link:hover {
    opacity: 1;
}

.work-panel-info h1 {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: var(--fg);
    margin-bottom: 0.75rem;
}

.work-panel-info .description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--fg);
}

.work-panel-info .hint {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--fg);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.work-panel-divider {
    margin: 0 1.5rem;
    border-top: 1px solid rgba(196, 160, 255, 0.1);
}

/* Messages toggle */
.work-panel-msg-toggle {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
}

.work-panel-msg-toggle:hover {
    opacity: 1;
}

.work-panel-msg-toggle.active {
    opacity: 1;
}

/* Messages area — no longer has its own scroll */
.work-panel-messages {
    display: none;
}

.work-panel-messages.open {
    display: block;
}

@media (max-width: 640px) {
    .work-panel {
        width: 100%;
    }
}
