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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --warning-color: #e74c3c;
    --background: #ecf0f1;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
}

.intro {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.warning {
    background-color: #fff5f5;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.warning strong {
    color: var(--warning-color);
}

/* Filters */
.filters {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.filters h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls label {
    font-weight: 600;
    color: var(--secondary-color);
}

.filter-controls select,
.filter-controls input[type="text"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    flex: 1;
    min-width: 150px;
}

.filter-controls select:focus,
.filter-controls input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Case Count */
.case-count {
    background: var(--accent-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Cases Container */
.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.case-card {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--accent-color);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.case-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.case-category,
.case-era {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--background);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.case-category {
    background: #e8f4f8;
    color: #2980b9;
}

.case-era {
    background: #fef5e7;
    color: #d68910;
}

.case-description {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.case-impact {
    background: #fff9e6;
    border-left: 3px solid #f39c12;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.case-impact strong {
    color: #d68910;
}

.case-debunked {
    background: #eafaf1;
    border-left: 3px solid #27ae60;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.case-debunked strong {
    color: #27ae60;
}

.case-sources {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.case-sources h4 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.case-sources ul {
    list-style: none;
    font-size: 0.85rem;
}

.case-sources li {
    margin-bottom: 0.25rem;
    color: var(--accent-color);
}

.case-sources li::before {
    content: "→ ";
    margin-right: 0.25rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
    grid-column: 1 / -1;
}

.no-results h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cases-container {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls label {
        margin-top: 0.5rem;
    }
}
