:root {
    --primary-color: #ff0000;
    --secondary-color: #000000;
    --warning-color: #ff0000;
    --success-color: #27ae60;
    --text-dark: #ffffff;
    --text-light: #ffffff;
    --bg-light: #000000;
    --bg-dark: #000000;
    --bg-grey: #0a0a0a;
    --border-color: #ff0000;
    --shadow: 0 2px 10px rgba(255,0,0,0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: #000000;
}

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

/* Header/Hero Section */
.hero {
    background: #000000;
    border-bottom: 3px solid #ff0000;
    color: var(--text-light);
    padding: 80px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.rating-badge {
    display: inline-block;
    background: #000000;
    padding: 20px 40px;
    border: 3px solid #ff0000;
}

.rating-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.rating-status {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    background: #000000;
    border-bottom: 2px solid #ff0000;
    z-index: 1000;
}

.sticky-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.sticky-nav li {
    margin: 0;
}

.sticky-nav a {
    display: block;
    padding: 18px 25px;
    color: #ff0000;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.sticky-nav a:hover {
    background: #ff0000;
    color: #000000;
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section.dark {
    background: #000000;
    color: var(--text-light);
    border-top: 1px solid #ff0000;
    border-bottom: 1px solid #ff0000;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #ff0000;
    border: 4px solid #000000;
}

.timeline-marker.alert {
    background: #ff0000;
    width: 26px;
    height: 26px;
    left: -41px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
}

.timeline-content {
    background: #0a0a0a;
    padding: 20px;
    border: 1px solid #ff0000;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content .highlight {
    background: #1a0000;
    padding: 15px;
    border: 2px solid #ff0000;
    margin-top: 15px;
    font-weight: 600;
}

/* Stat Callout */
.stat-callout {
    background: #0a0a0a;
    color: var(--text-light);
    padding: 50px;
    border: 3px solid #ff0000;
    text-align: center;
}

.stat-number {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.stat-note {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Findings Grid */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.finding-card {
    background: #0a0a0a;
    padding: 30px;
    border: 2px solid #ff0000;
    transition: transform 0.3s ease, border 0.3s ease;
}

.finding-card:hover {
    transform: translateY(-5px);
    border: 3px solid #ff0000;
}

.finding-card.critical {
    border-color: #ff0000;
    background: #0a0a0a;
}

.finding-card.warning {
    border-color: #ff0000;
    background: #0a0a0a;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.finding-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.finding-card p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.finding-detail {
    background: #000000;
    padding: 12px;
    border: 1px solid #ff0000;
    font-size: 0.95rem;
    margin-top: 15px;
}

.violation-list {
    list-style: none;
    padding-left: 0;
}

.violation-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.violation-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff0000;
    font-weight: bold;
}

/* Statistics Section */
.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.stat-box {
    background: #0a0a0a;
    padding: 40px;
    text-align: center;
    min-width: 200px;
    border: 2px solid #ff0000;
}

.stat-box.alert {
    background: #1a0000;
    border: 3px solid #ff0000;
}

.stat-box.critical {
    background: #1a0000;
    border: 3px solid #ff0000;
}

.stat-value {
    font-size: 4rem;
    font-weight: 700;
    color: #ff0000;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-desc {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.stat-desc small {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.stat-arrow {
    font-size: 3rem;
    color: #ff0000;
    font-weight: 700;
}

/* Cat Visualization */
.cat-visualization {
    margin: 60px 0;
    padding: 40px;
    background: #0a0a0a;
    border: 2px solid #ff0000;
}

.cat-visualization h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #ff0000;
}

.viz-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-style: italic;
}

.cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 20px;
    background: #000000;
    border: 1px solid #ff0000;
}

.cat-emoji {
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.cat-emoji:hover {
    transform: scale(1.3);
}

.cat-emoji.alive {
    opacity: 1;
}

.cat-emoji.missing {
    opacity: 0.8;
}

.viz-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.legend-icon {
    font-size: 1.5rem;
}

.legend-text {
    color: #ffffff;
}

/* Bar Chart */
.distribution {
    margin: 60px 0;
}

.distribution h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.bar-chart {
    max-width: 800px;
    margin: 0 auto;
}

.bar-item {
    margin-bottom: 25px;
}

.bar-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.bar-visual {
    background: #ff0000;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #000000;
    font-weight: 700;
    transition: width 1s ease;
}

/* Unknown Data */
.unknown-data {
    background: #0a0a0a;
    padding: 40px;
    border: 2px solid #ff0000;
    margin-top: 60px;
}

.unknown-data h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #ff0000;
}

.unknown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.unknown-item {
    background: #000000;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px dashed #ff0000;
    color: #ffffff;
}

/* Accordion */
.violations-accordion {
    max-width: 900px;
    margin: 50px auto 0;
}

.accordion-item {
    margin-bottom: 15px;
    overflow: hidden;
    background: #0a0a0a;
    border: 2px solid #ff0000;
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: #000000;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #1a0000;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.accordion-content.active {
    max-height: 1000px;
    padding: 25px;
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
}

.accordion-content li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.accordion-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff0000;
    font-weight: bold;
}

.accordion-content li strong {
    color: #ff0000;
}

/* Inspection Info */
.inspection-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-box {
    background: #0a0a0a;
    padding: 30px;
    border: 2px solid #ff0000;
}

.info-box h3 {
    color: #ff0000;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: left;
}

.info-box p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.info-box.highlight-box {
    background: #1a0000;
    border: 3px solid #ff0000;
}

.info-box.highlight-box h3 {
    color: #ff0000;
}

.callout-note {
    background: #000000;
    padding: 15px;
    border: 1px solid #ff0000;
    margin-top: 15px;
    font-weight: 600;
    font-style: italic;
    color: #ffffff;
}

/* Inspectors */
.inspectors-list h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.inspector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.inspector-card {
    background: #0a0a0a;
    padding: 25px;
    text-align: center;
    border: 2px solid #ff0000;
}

.inspector-card h4 {
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.inspector-card p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #ffffff;
}

.inspector-rep {
    margin-top: 15px;
    font-weight: 600;
    color: #ffffff;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-text {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 50px;
    font-weight: 500;
}

.recommendations-preview {
    background: #0a0a0a;
    padding: 40px;
    border: 2px solid #ff0000;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.recommendations-preview h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rec-item {
    background: #000000;
    padding: 20px;
    border: 2px solid #ff0000;
    text-align: left;
    font-weight: 500;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #ff0000;
    color: #000000;
    border: 2px solid #ff0000;
}

.btn-primary:hover {
    background: #000000;
    color: #ff0000;
    border: 2px solid #ff0000;
}

.btn-secondary {
    background: #000000;
    color: #ff0000;
    border: 2px solid #ff0000;
}

.btn-secondary:hover {
    background: #ff0000;
    color: #000000;
}

.btn-small {
    padding: 10px 20px;
    background: #ff0000;
    color: #000000;
    border: 2px solid #ff0000;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.btn-small:hover {
    background: #000000;
    color: #ff0000;
}

/* Share Message */
.share-message {
    background: #0a0a0a;
    padding: 20px;
    border: 2px solid #ff0000;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.share-message p {
    margin-bottom: 10px;
}

#shareURL {
    background: #000000;
    padding: 8px 12px;
    border: 1px solid #ff0000;
    font-family: monospace;
    word-break: break-all;
    color: #ff0000;
}

/* Footer */
footer {
    background: #000000;
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid #ff0000;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

footer a {
    color: #ff0000;
    text-decoration: underline;
}

footer a:hover {
    color: #ffffff;
}

.footer-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ff0000;
    font-size: 0.9rem;
}

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

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 4rem;
    }

    .findings-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        flex-direction: column;
    }

    .stat-arrow {
        transform: rotate(90deg);
    }

    .sticky-nav {
        position: relative;
    }

    .sticky-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sticky-nav a {
        text-align: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -28px;
    }

    .timeline-marker.alert {
        left: -31px;
    }

    .cat-emoji {
        font-size: 1.2rem;
    }

    .viz-legend {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .stat-callout {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1.3rem;
    }

    .cat-emoji {
        font-size: 1rem;
    }

    .cat-grid {
        gap: 5px;
        padding: 15px;
    }

    .cat-visualization {
        padding: 20px;
    }

    .viz-subtitle {
        font-size: 0.95rem;
    }
}
