/* ── judgments.css: High-contrast Black, White, Gold theme ── */

:root {
    --gold: #c4a536;
    --gold-glow: rgba(196, 165, 54, 0.4);
    --gold-dim: rgba(196, 165, 54, 0.1);
    --black: #0a0a0f;
    --dark-2: #111118;
    --white: #ffffff;
    --gray-100: #fbfbfb;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-800: #1f2937;
    --radius: 8px;
    --transition: all 0.3s ease;
}

body.judgments-page {
    font-family: 'Inter', sans-serif;
    background: var(--gray-100);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── TOPBAR ────────────────────────────────────────────────────── */
.judgments-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.judgments-topbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}
.judgments-topbar-brand i { color: var(--gold); }

@media (max-width: 768px) {
    .judgments-topbar {
        padding: 12px 20px;
    }
}

/* ── HEADER / SEARCH AREA ───────────────────────────────────────── */
.judgments-header-area {
    background: var(--black);
    padding: 40px 20px;
    text-align: center;
}
.judgments-header-area h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
}
.judgments-header-area p {
    color: var(--gray-400);
    margin-bottom: 30px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}
.search-container input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border-radius: 50px;
    border: 1px solid rgba(196, 165, 54, 0.4);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.search-container input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}
.search-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.1rem;
}

.category-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.filter-chip {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.filter-chip.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    font-weight: 700;
}

/* ── MAIN CONTENT (GRID) ───────────────────────────────────────── */
.judgments-main {
    flex: 1;
    padding: 50px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.judgments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.judgment-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.judgment-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.judgment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(196, 165, 54, 0.3);
}

.judgment-card:hover::before {
    transform: scaleX(1);
}

.j-year {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: rgba(196, 165, 54, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.j-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--black);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.j-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    font-weight: 600;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 1.1rem;
}
.no-results i {
    font-size: 3rem;
    color: var(--gray-200);
    margin-bottom: 15px;
    display: block;
}

/* Loader */
.judgments-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--gray-400);
    font-size: 1.2rem;
}
.judgments-loading i {
    color: var(--gold);
    margin-right: 10px;
}

/* Header Adjustments to match Laws page */
header {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--gray-200) !important;
}
