/* Custom styles for Political Transparency Tracker */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Logo styling */
.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand {
    font-size: 1.25rem;
}

/* Navbar tagline - always visible, responsive */
.navbar-text {
    font-size: 1rem;
}

/* Sticky search form on wide screens */
@media (min-width: 992px) {
    .sticky-search {
        position: sticky;
        top: 20px;
    }
}

/* Clickable table rows */
tbody tr[onclick] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

tbody tr[onclick]:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

/* Person image styling */
.person-thumbnail {
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.person-thumbnail-placeholder {
    font-size: 1rem;
    border: 2px solid #dee2e6;
}

.person-image-placeholder {
    border: 3px solid #dee2e6;
}

/* Score badges */
.badge.fs-6 {
    font-size: 1.1rem !important;
    padding: 0.5rem 0.75rem;
}

/* Card styling */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Table styling */
.table-hover tbody tr:hover {
    cursor: pointer;
    background-color: rgba(0,0,0,0.02);
}

/* Evidence cards */
.evidence-card {
    border-left: 4px solid #dc3545;
}

/* Form styling */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* Alert styling */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

/* Button improvements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Modal improvements */
.modal-content {
    border-radius: 0.5rem;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Score color variations */
.score-high {
    color: #dc3545;
    font-weight: bold;
}

.score-medium {
    color: #ffc107;
    font-weight: bold;
}

.score-low {
    color: #28a745;
    font-weight: bold;
}
