/* Report-specific styles */

.report-header {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 20px;
    text-align: center;
}

.report-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.report-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.report-domain {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Table of Contents */
.toc {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.toc h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.toc ol {
    counter-reset: toc-counter;
    list-style: none;
}

.toc li {
    counter-increment: toc-counter;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.toc li:before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--secondary-color);
}

.toc a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}

.toc a:hover {
    color: var(--secondary-color);
}

/* Content Blocks */
.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-block h3 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    color: var(--primary-color);
}

.content-block h4 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--dark-text);
}

/* Document Links */
.doc-links {
    margin: 2rem 0;
}

.doc-link-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.doc-link-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.doc-link-item h4 {
    margin-top: 0;
}

.link-arrow {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Emphasis Text */
.emphasis {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-text);
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), transparent);
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
    margin: 2rem 0;
    border-radius: 4px;
}

/* Stat Highlights */
.stat-highlight {
    text-align: center;
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.stat-highlight.critical {
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid var(--danger-color);
}

.stat-highlight.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--warning-color);
}

.stat-large {
    font-size: 3rem;
    font-weight: 800;
    color: var(--danger-color);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-context {
    font-size: 1.1rem;
    color: var(--body-text);
}

/* Lists */
.violation-list,
.response-list,
.legal-requirements {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.violation-list li,
.response-list li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Highlight Box */
.highlight-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 5px solid var(--warning-color);
    box-shadow: var(--shadow);
}

.highlight-box h3 {
    margin-top: 0;
}

/* Quote Highlight */
.quote-highlight {
    background: #f8f9fa;
    border-left: 5px solid var(--secondary-color);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
}

/* Legal Sections */
.legal-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--secondary-color);
}

.legal-ref {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.legal-ref a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--secondary-color);
    transition: all 0.3s ease;
}

.legal-ref a:hover {
    border-bottom-style: solid;
    text-decoration: none;
}

/* Law citation links in paragraphs */
.content-block a[href*="law.lis.virginia.gov"] {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.content-block a[href*="law.lis.virginia.gov"]:hover {
    border-bottom-style: solid;
}

/* Violation Cards */
.violation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.violation-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.violation-card.critical {
    border-left-color: var(--danger-color);
    background: linear-gradient(to right, rgba(220, 38, 38, 0.05), white);
}

.violation-card.warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), white);
}

.violation-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.violation-stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.violation-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.violation-stats span {
    font-weight: 600;
    color: var(--danger-color);
}

.violation-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.violation-link:hover {
    text-decoration: underline;
}

/* Analysis Items */
.analysis-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.analysis-item:last-child {
    border-bottom: none;
}

.impact-box,
.critical-box,
.warning-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.impact-box {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.critical-box {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger-color);
}

.warning-box {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning-color);
}

/* Stats Table */
.stats-table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.stats-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.stats-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background: rgba(231, 76, 60, 0.05);
}

.stats-table .danger {
    color: var(--danger-color);
    font-weight: 600;
}

.stats-table .warning {
    color: var(--warning-color);
    font-weight: 600;
}

.stats-table .success {
    color: var(--success-color);
    font-weight: 600;
}

.table-note {
    text-align: center;
    color: var(--body-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Breakdown Cards */
.breakdown-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.breakdown-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.breakdown-stat {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--danger-color);
    margin: 1rem 0;
}

.improvement {
    color: var(--success-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* Testimonies */
.testimony-section {
    margin-bottom: 3rem;
}

.testimony-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--secondary-color);
}

.large-quote {
    font-size: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.large-quote p {
    font-weight: 600;
    color: var(--primary-color);
}

/* Recommendations */
.recommendation {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.recommendation h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.action-items,
.compliance-checklist,
.tech-solutions,
.transparency-measures {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.checklist {
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.checklist li:before {
    content: "□";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Program Cards */
.lifesaving-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.program-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.program-card h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* City Actions */
.city-actions h4 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

/* Conclusion Box */
.conclusion-box {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.conclusion-box h3 {
    color: white;
    margin-top: 0;
}

.conclusion-box p {
    color: rgba(255, 255, 255, 0.9);
}

.conclusion-box .emphasis {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    color: white;
}

/* Summary Text */
.summary-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.05), transparent);
    border-left: 4px solid var(--secondary-color);
}

/* Citation Styles - handled in main styles.css */

/* Sources Section */
#sources {
    background: var(--light-bg);
}

.sources-list p {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    text-indent: -2rem;
    line-height: 1.8;
}

.sources-list strong {
    color: var(--primary-color);
}

.sources-note {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.sources-note h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.sources-note ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.sources-note li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .content-block p {
        font-size: 1rem;
    }
    
    .stats-table {
        font-size: 0.9rem;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 0.75rem;
    }
    
    .breakdown-cards,
    .lifesaving-programs {
        grid-template-columns: 1fr;
    }
    
    .violation-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Source Note */
.source-note {
    background: #f3f4f6;
    border-left: 3px solid #9ca3af;
    padding: 1rem;
    margin: 1rem 0 2rem 0;
    border-radius: 4px;
}

.source-note p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Box */
.contact-box {
    background: var(--light-bg);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.contact-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-box p {
    margin: 0;
    line-height: 1.6;
}

.contact-box a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted var(--secondary-color);
    transition: all 0.3s ease;
}

.contact-box a:hover {
    border-bottom-style: solid;
}