/* Justice Hub - Professional Legal Platform Styling - Light Theme */

:root {
    --primary-blue: #0066cc;
    --secondary-blue: #4d94ff;
    --accent-green: #22c55e;
    --warm-orange: #ff8c00;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --surface-white: #ffffff;
    --surface-light: #f7fafc;
    --surface-gray: #edf2f7;
    --border-light: #e2e8f0;
    --border-subtle: #cbd5e0;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-soft: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

/* Typography */
body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    background: var(--surface-light);
    color: var(--text-primary);
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.display-4, .display-5, .display-6 {
    font-weight: 800;
}

/* Buttons */
.btn {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn-outline-primary {
    background: var(--surface-white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn-light {
    background: var(--surface-white);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px var(--shadow-soft);
}

.btn-light:hover {
    background: var(--surface-gray);
    border-color: var(--border-subtle);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

/* Navigation */
.navbar {
    background: var(--surface-white) !important;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.navbar-brand {
    font-family: 'Crimson Text', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    color: var(--primary-blue);
}

.nav-link {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.75rem 1.25rem !important;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    background: var(--surface-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero */
.hero-section {
    background: var(--surface-white);
    min-height: 50vh;
    padding: 4rem 0;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Cards */
.card {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-medium);
    border-color: var(--border-subtle);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    background: var(--surface-gray) !important;
    border-bottom: 1px solid var(--border-light) !important;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Stats Boxes */
.stats-box {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    height: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.stats-box:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.stats-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Attorney Cards */
.attorney-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--surface-white);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.attorney-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
}

.attorney-card .attorney-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.attorney-card .attorney-name:hover {
    color: var(--primary-blue);
}

.attorney-card .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.attorney-card .case-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Firm Cards */
.firm-card {
    border-left: 3px solid transparent;
}

.firm-card:hover {
    border-left-color: var(--primary-blue);
}

.firm-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue), #004a94);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25);
}

.practice-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 999px;
    padding: 2px 10px;
    margin: 2px 6px 2px 0;
    text-decoration: none;
    white-space: nowrap;
}

a.practice-tag:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* County Cards */
.county-card {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.county-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.county-card h6 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.county-card .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.county-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Progress Bars */
.progress {
    height: 6px;
    border-radius: 3px;
    background: var(--surface-gray);
}

.progress-bar {
    background: var(--primary-blue);
    border-radius: 3px;
}

/* Badges */
.badge-case-type {
    background: #e8f0fe;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Case Detail Timeline */
.event-timeline .event-item {
    border-left: 2px solid var(--border-light);
    padding-left: 1.25rem;
    margin-left: 0.75rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.event-timeline .event-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 2px solid #fff;
}

.event-timeline .event-item.disposition::before {
    background: var(--success);
}

.event-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.event-type {
    font-weight: 600;
    color: var(--text-primary);
}

.event-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-blue);
    border-color: var(--border-light);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    min-width: 40px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #ffffff !important;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subheader {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Lead text */
.lead {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Feature Icon */
.feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--primary-blue);
}

/* Footer */
footer {
    background: var(--surface-white) !important;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer h5, footer h6 {
    color: var(--text-primary);
}

/* Form Controls */
.form-control, .form-select {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Stat Card (used on home page) */
.stat-card {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.stat-card h4 {
    color: var(--primary-blue);
    font-family: 'Crimson Text', serif;
    font-weight: 700;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile hamburger */
.navbar-toggler {
    border: 1px solid var(--border-light);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .stats-number {
        font-size: 1.75rem;
    }
    .navbar-brand {
        font-size: 1.3rem;
    }
    .card {
        margin-bottom: 1.5rem;
    }
}
