/* luminary.dev — Dark Academia Scholar's Dashboard */
/* Colors: #7A6B55, #5A4530, #FFD280, #2A1E14, #BFA88A, #1C1410, #9A8A70, #B8860B, #D4A830 */
/* Fonts: Playfair Display, Space Grotesk, Inter */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1C1410;
    color: #BFA88A;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(122, 107, 85, 0.03) 40px,
            rgba(122, 107, 85, 0.03) 42px
        );
    transition: filter 1.2s ease;
}

body.reveal {
    filter: brightness(0.5);
}

body.revealed {
    filter: brightness(1);
}

/* Header */
.site-header {
    text-align: center;
    padding: 16px 24px 0;
    position: relative;
    flex-shrink: 0;
}

.header-emblem {
    margin-bottom: 4px;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #D4A830;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.site-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9A8A70;
    margin-top: 4px;
}

.brass-rail {
    height: 1px;
    margin-top: 12px;
    background: linear-gradient(90deg, transparent, #B8860B, #FFD280, #B8860B, transparent);
    opacity: 0.6;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    height: calc(100vh - 100px);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 200px;
    flex-shrink: 0;
    padding: 16px;
    border-right: 1px solid rgba(154, 138, 112, 0.2);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #BFA88A;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(154, 138, 112, 0.2);
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #9A8A70;
    padding: 6px 10px;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.sidebar-item:hover {
    color: #BFA88A;
}

.sidebar-item.active {
    color: #FFD280;
    border-left-color: #D4A830;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.status-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7A6B55;
}

.status-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #BFA88A;
}

/* Panels Grid */
.panels-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1.5fr 1fr 1fr;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
}

/* Panel */
.panel {
    border: 1px solid rgba(154, 138, 112, 0.25);
    box-shadow: 0 0 0 1px rgba(28, 20, 16, 0.5), inset 0 0 0 1px rgba(154, 138, 112, 0.08);
    background-color: rgba(42, 30, 20, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 10px 14px 0;
    flex-shrink: 0;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #BFA88A;
}

.panel-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: #7A6B55;
    float: right;
    margin-top: -14px;
}

.panel-body {
    flex: 1;
    padding: 14px;
    overflow: hidden;
}

/* Panel placements */
.panel-main {
    grid-column: 1 / 3;
    grid-row: 1;
}

.panel-quote {
    grid-column: 3;
    grid-row: 1;
}

.panel-clock {
    grid-column: 1;
    grid-row: 2;
}

.panel-wide {
    grid-column: 2 / 4;
    grid-row: 2;
}

.panel-notes {
    grid-column: 1 / 4;
    grid-row: 3;
}

/* Panel text */
.panel-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    line-height: 1.8;
    color: #BFA88A;
    margin-bottom: 12px;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: #FFD280;
    border: none;
    margin: 0;
    padding: 0;
}

.quote-attribution {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    color: #7A6B55;
    letter-spacing: 0.06em;
    display: block;
    margin-top: 12px;
}

/* Clock */
.clock-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock-face {
    text-align: center;
}

.clock-time {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #D4A830;
    display: block;
    text-shadow: 0 0 20px rgba(212, 168, 48, 0.2);
}

.clock-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7A6B55;
    margin-top: 4px;
    display: block;
}

/* Ephemera Grid */
.ephemera-grid {
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: stretch;
}

.ephemera-card {
    flex: 1;
    border: 1px solid rgba(154, 138, 112, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.ephemera-card:hover {
    border-color: rgba(212, 168, 48, 0.4);
    background-color: rgba(42, 30, 20, 0.8);
}

.ephemera-num {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #D4A830;
}

.ephemera-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9A8A70;
}

/* Annotation */
.annotation-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    line-height: 2;
    color: #9A8A70;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(154, 138, 112, 0.2);
        overflow-x: auto;
    }

    .panels-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        overflow-y: auto;
    }

    .panel-main,
    .panel-wide,
    .panel-notes {
        grid-column: 1;
    }

    .panel {
        min-height: 150px;
    }
}
