/* judge.club - Neomorphic Judicial Interface */

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: #3A3830;
    background: #E8E4E0;
    overflow-x: hidden;
}

/* Neomorphic Surfaces */
.neo-raised {
    background: #E8E4E0;
    border-radius: 16px;
    box-shadow: 8px 8px 16px #C8C4C0, -8px -8px 16px #FFFFFF;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.neo-raised:hover {
    box-shadow: 12px 12px 20px #C8C4C0, -12px -12px 20px #FFFFFF;
    transform: scale(1.02);
}

.neo-raised:active {
    box-shadow: inset 6px 6px 12px #C8C4C0, inset -6px -6px 12px #FFFFFF;
    transform: scale(1);
}

.neo-inset {
    background: #D8D4D0;
    border-radius: 16px;
    box-shadow: inset 8px 8px 16px #C8C4C0, inset -8px -8px 16px #FFFFFF;
    transition: box-shadow 0.2s ease;
}

.neo-raised-small {
    background: #E8E4E0;
    border-radius: 12px;
    box-shadow: 4px 4px 8px #C8C4C0, -4px -4px 8px #FFFFFF;
}

/* Navigation */
#top-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #E8E4E0;
    border-radius: 24px;
    box-shadow: 6px 6px 12px #C8C4C0, -6px -6px 12px #FFFFFF;
    z-index: 100;
}

.nav-pill {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #8A8480;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 16px;
    box-shadow: 4px 4px 8px #C8C4C0, -4px -4px 8px #FFFFFF;
    transition: box-shadow 0.2s, color 0.2s;
}

.nav-pill:hover, .nav-pill.active {
    box-shadow: inset 4px 4px 8px #C8C4C0, inset -4px -4px 8px #FFFFFF;
    color: #4A6FA0;
}

/* Module Labels */
.module-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #8A8480;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.module-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #3A3830;
    margin-bottom: 0.75rem;
}

/* =============================================
   SECTION 1: Verdict Panel Hero
   ============================================= */

#verdict-panel {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8E4E0;
    position: relative;
}

.gavel-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    pointer-events: none;
}

#hero-panel {
    width: min(80vw, 900px);
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 #C8C4C0, 0 0 0 #FFFFFF;
    transition: box-shadow 0.8s ease-out;
}

#hero-panel.risen {
    box-shadow: 12px 12px 24px #C8C4C0, -12px -12px 24px #FFFFFF;
}

#hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #3A3830;
    letter-spacing: 0.04em;
    filter: blur(4px);
    opacity: 0;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

#hero-title.focused {
    filter: blur(0);
    opacity: 1;
}

.hero-meta {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #8A8480;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-meta.visible {
    opacity: 1;
}

/* =============================================
   Gavel Divider
   ============================================= */

.gavel-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 1rem;
    background: #E8E4E0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: #C8C4C0;
}

.divider-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* =============================================
   SECTION 2: Bento Grid
   ============================================= */

#bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 2rem 3rem 4rem;
    background: #E8E4E0;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-module {
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease, box-shadow 0.4s ease;
}

.bento-module.loaded {
    opacity: 1;
}

.span-2 {
    grid-column: span 2;
}

.bento-module p:last-child {
    color: #3A3830;
}

.scale-icon {
    margin-bottom: 1rem;
}

/* =============================================
   Footer
   ============================================= */

#site-footer {
    padding: 4rem 2rem;
    background: #E8E4E0;
    display: flex;
    justify-content: center;
}

.footer-content {
    padding: 2rem 3rem;
    text-align: center;
}

.footer-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #4A6FA0;
    margin-bottom: 0.25rem;
}

.footer-meta {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #8A8480;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
    #bento-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.5rem;
    }

    .span-2 {
        grid-column: span 2;
    }

    #top-nav {
        top: auto;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    #bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }
}
