* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    color: white;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        url("/static/dirtytable.png")
        center center /
        cover
        fixed
        no-repeat;
}


/* ==========================================================
   TRANSPARENT HEADER — ZERO TINT
   ========================================================== */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;

    padding: 10px 4vw;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    border: none !important;
    box-shadow: none !important;
}

.brand img {
    display: block;

    width: auto;
    height: auto;

    max-height: 247px;
    max-width: 700px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: 10px;

    background: transparent !important;
}

nav a {
    display: inline-block;

    padding: 13px 17px;

    color: white;
    text-decoration: none;

    font-size: 14px;
    font-weight: 900;

    background: rgba(0,0,0,.78);

    border:
        1px solid rgba(255,255,255,.24);

    border-radius: 10px;
}

nav a:hover,
nav .red-button {
    background: #d51d1d;
}


/* ==========================================================
   PANELS
   ========================================================== */

main {
    width: 100%;
}

.hero {
    min-height: 67vh;

    display: flex;
    align-items: center;

    padding: 35px 6vw 80px;
}

.glass {
    background: rgba(0,0,0,.76);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border:
        1px solid rgba(255,255,255,.20);

    border-radius: 22px;

    box-shadow:
        0 20px 55px rgba(0,0,0,.42);
}

.hero-card {
    width: min(900px,100%);

    padding: clamp(
        30px,
        5vw,
        65px
    );
}

.eyebrow,
.type-label {
    color: #ffd633;

    font-weight: 900;

    letter-spacing: 1px;
}

h1 {
    margin: 15px 0;

    font-size:
        clamp(42px,6vw,84px);

    line-height: .98;

    font-weight: 1000;
}

.hero h2 {
    color: #ff2828;

    font-size:
        clamp(32px,4vw,56px);

    margin: 5px 0 22px;
}

.hero-copy {
    max-width: 720px;

    font-size:
        clamp(18px,2vw,24px);

    line-height: 1.5;
}

.hero-buttons,
.dashboard-actions,
.health-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin: 25px 0;
}

.tagline {
    margin-top: 28px;

    color: #ffd633;

    font-weight: 900;

    letter-spacing: 1px;
}

.section,
.page-main {
    padding: 45px 6vw;
}

.panel,
.form-panel {
    width: min(1280px,100%);

    margin: 0 auto 40px;

    padding:
        clamp(24px,4vw,50px);
}

.narrow {
    max-width: 650px;
}

.panel > h1,
.panel > h2,
.form-panel > h1 {
    text-align: center;
}

.panel h2 {
    font-size:
        clamp(27px,4vw,46px);
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.big-red-button,
.big-dark-button {
    display: inline-block;

    padding: 17px 24px;

    border: 0;
    border-radius: 11px;

    color: white;
    text-decoration: none;

    font-size: 17px;
    font-weight: 900;

    cursor: pointer;
}

.big-red-button {
    background: #d91d1d;
}

.big-red-button:hover {
    background: #ff2828;
}

.big-dark-button {
    background: rgba(0,0,0,.86);

    border:
        1px solid rgba(255,255,255,.26);
}

.form-button,
.submit-button {
    width: 100%;
}


/* ==========================================================
   CARDS
   ========================================================== */

.feature-grid,
.cards,
.location-grid {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 18px;
}

.feature-card,
.location-card,
.report-card {
    overflow: hidden;

    color: white;
    text-decoration: none;

    background: rgba(0,0,0,.77);

    border:
        1px solid rgba(255,255,255,.17);

    border-radius: 16px;
}

.feature-card,
.location-card {
    padding: 22px;
}

.feature-card h3,
.location-card h3 {
    color: #ffd633;
}

.feature-icon {
    font-size: 40px;
}

.location-card:hover,
.report-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #ffd633;
}

.location-stats {
    margin-top: 18px;

    padding-top: 15px;

    border-top:
        1px solid rgba(255,255,255,.14);

    line-height: 1.8;
}

.report-card img {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin: 10px 0;

    font-size: 23px;
}

.status {
    display: inline-block;

    margin: 10px 0;

    padding: 7px 11px;

    border-radius: 999px;

    background: #c71c1c;

    font-size: 13px;
    font-weight: 900;

    text-transform: uppercase;
}

.big-status {
    font-size: 17px;
}

.dirty-score {
    margin-top: 12px;

    color: #ffd633;
}

.confirmation-badge {
    margin-top: 14px;

    padding: 9px;

    background:
        rgba(38,130,210,.28);

    border-radius: 8px;

    font-weight: 900;
}


/* ==========================================================
   FORMS
   ========================================================== */

.report-form {
    display: grid;

    gap: 21px;

    margin-top: 25px;
}

.report-form label {
    display: grid;

    gap: 7px;

    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;

    padding: 13px;

    border:
        1px solid rgba(255,255,255,.28);

    border-radius: 9px;

    background: rgba(0,0,0,.83);

    color: white;

    font: inherit;
}

textarea {
    resize: vertical;
}

.two-column {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 17px;
}

fieldset {
    padding: 18px;

    border:
        1px solid rgba(255,255,255,.25);

    border-radius: 12px;
}

legend {
    padding: 0 8px;

    font-weight: 900;
}

.checkbox-grid {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 10px;
}

.check {
    display: flex !important;

    flex-direction: row !important;

    align-items: center;

    padding: 11px;

    background: rgba(0,0,0,.52);

    border-radius: 8px;
}

.check input {
    width: auto;

    margin-right: 9px;
}

.photo-note {
    padding: 15px;

    color: #eee;

    background:
        rgba(255,214,51,.11);

    border:
        1px solid rgba(255,214,51,.35);

    border-radius: 10px;
}

.honeypot {
    position: absolute !important;

    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}

.error-box {
    margin: 20px 0;

    padding: 14px;

    background: #951b1b;

    border-radius: 9px;

    font-weight: 900;
}

.signup-link {
    margin-top: 22px;

    text-align: center;
}

.signup-link a {
    color: #ffd633;
}


/* ==========================================================
   REPORT DETAIL / COLLABORATION
   ========================================================== */

.report-info {
    display: grid;

    gap: 8px;

    margin: 25px 0;

    padding: 18px;

    background: rgba(0,0,0,.58);

    border-radius: 12px;
}

.description {
    margin: 25px 0;

    white-space: pre-wrap;

    font-size: 19px;
    line-height: 1.6;
}

.photo-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 13px;

    margin-top: 18px;
}

.photo-grid img {
    width: 100%;
    height: 280px;

    object-fit: cover;

    border-radius: 10px;
}

.small-grid img {
    height: 180px;
}

.collab-callout {
    margin-top: 35px;

    padding: 27px;

    background:
        rgba(20,84,155,.45);

    border:
        1px solid rgba(100,180,255,.50);

    border-radius: 16px;
}

.confirmation-post {
    margin: 20px 0;

    padding: 23px;

    background:
        rgba(21,83,145,.32);

    border-left:
        5px solid #51a9ff;

    border-radius: 12px;
}

.confirmation-header {
    display: flex;

    justify-content:
        space-between;

    gap: 12px;

    color: #8ac9ff;
}

.timeline-item,
.business-response {
    margin: 20px 0;

    padding: 20px;

    background:
        rgba(0,0,0,.62);

    border-left:
        5px solid #d91d1d;

    border-radius: 11px;
}

.business-response {
    border-left-color:
        #38af6c;
}

.status-choice {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}

.status-choice label {
    padding: 18px;

    border-radius: 11px;

    cursor: pointer;
}

.status-choice input {
    width: auto;
}

.clean-choice {
    background: #176e39;
}

.dirty-choice {
    background: #961b1b;
}


/* ==========================================================
   REPORT CARD SUMMARY
   ========================================================== */

.location-summary {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 14px;

    margin: 28px 0;
}

.location-summary > div {
    display: grid;

    gap: 8px;

    padding: 20px;

    text-align: center;

    background: rgba(0,0,0,.61);

    border-radius: 12px;
}

.location-summary strong {
    color: #ffd633;
}

.location-summary span {
    font-size: 28px;

    font-weight: 900;
}


/* ==========================================================
   FILTERS / HEALTH
   ========================================================== */

.filters,
.location-search,
.health-filter {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 10px;

    margin: 25px 0;
}

.filters button,
.location-search button,
.health-filter button {
    padding: 12px;

    border: 0;
    border-radius: 9px;

    background: #d91d1d;

    color: white;

    font-weight: 900;

    cursor: pointer;
}

.health-table-wrap {
    width: 100%;

    overflow-x: auto;
}

.health-table {
    width: 100%;

    border-collapse: collapse;

    background:
        rgba(0,0,0,.68);
}

.health-table th,
.health-table td {
    padding: 11px;

    text-align: left;
    vertical-align: top;

    border-bottom:
        1px solid rgba(255,255,255,.15);
}

.health-table th {
    background:
        rgba(190,25,25,.82);
}

.health-table a {
    color: #ffd633;

    font-weight: 900;
}


/* ==========================================================
   ADMIN
   ========================================================== */

.admin-title {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 20px;
}

.admin-title a {
    color: #ffd633;

    font-weight: 900;
}

.moderation-card {
    margin: 22px 0;

    padding: 23px;

    background:
        rgba(0,0,0,.83);

    border:
        1px solid rgba(255,255,255,.17);

    border-radius: 14px;
}

.moderation-card h3 {
    color: #ffd633;
}

.moderation-buttons {
    display: flex;

    gap: 11px;

    margin-top: 18px;
}

.approve-button,
.reject-button {
    padding: 11px 17px;

    border: 0;
    border-radius: 8px;

    color: white;

    font-weight: 900;

    cursor: pointer;
}

.approve-button {
    background: #178448;
}

.reject-button {
    background: #b51b1b;
}

.flag-card {
    border-left:
        5px solid #ffd633;
}

.flag-reason {
    display: inline-block;

    padding: 7px 10px;

    background: #895900;

    border-radius: 999px;

    font-weight: 900;
}

.inline-admin-form {
    display: inline-block;

    margin: 10px;
}


/* ==========================================================
   OTHER
   ========================================================== */

.empty {
    padding: 35px;

    text-align: center;

    font-size: 19px;
}

.confirmation {
    text-align: center;
}

.moderation-state {
    margin: 14px 0;

    font-weight: 900;
}

.small-link {
    color: #ffd633;

    font-weight: 900;
}

.policy {
    line-height: 1.7;
}

.policy h2,
.policy h3 {
    color: #ffd633;
}

footer {
    margin-top: 45px;

    padding: 35px 20px;

    text-align: center;

    background:
        rgba(0,0,0,.90);
}

.footer-links {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin: 15px 0;
}

.footer-links a {
    color: #ffd633;
}

.disclaimer {
    max-width: 900px;

    margin: 15px auto 0;

    color: #aaa;

    font-size: 13px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 1000px) {

    .feature-grid,
    .cards,
    .location-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .topbar {
        flex-direction: column;
    }

    nav {
        justify-content: center;
    }

}


@media (max-width: 700px) {

    .brand img {
        max-height: 168px;
        max-width: 95vw;
    }

    .feature-grid,
    .cards,
    .location-grid,
    .two-column,
    .checkbox-grid,
    .photo-grid,
    .status-choice,
    .location-summary,
    .filters,
    .location-search,
    .health-filter {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .confirmation-header {
        flex-direction: column;
    }

}


/* ==========================================================
   DIRTYTABLE COMMUNITY DISCUSSION
   ========================================================== */

.discussion-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.discussion-thread {
    display: grid;
    gap: 18px;
}

.discussion-comment {
    padding: 21px;

    background:
        rgba(20,70,115,.38);

    border-left:
        5px solid #4da9ff;

    border-radius: 12px;
}

.discussion-comment p {
    margin-bottom: 0;

    white-space: pre-wrap;

    font-size: 17px;
    line-height: 1.55;
}

.discussion-user {
    color: #85c7ff;

    font-size: 17px;
    font-weight: 900;
}

.discussion-date {
    margin-top: 5px;

    color: #aaa;

    font-size: 13px;
}

.moderation-comment {
    margin: 20px 0;

    padding: 18px;

    white-space: pre-wrap;

    background:
        rgba(41,102,158,.22);

    border-radius: 10px;

    font-size: 18px;
    line-height: 1.55;
}

.community-panel {
    text-align: center;
}

.community-panel .big-red-button,
.community-panel .big-dark-button {
    margin: 7px;
}

.login-callout {
    text-align: center;

    padding: 25px;
}

.login-callout .big-red-button,
.login-callout .big-dark-button {
    margin: 7px;
}


/* ==========================================================
   FRIENDLY ERROR PAGES
   ========================================================== */

.error-page {
    width: min(850px,100%);

    margin: 80px auto;

    padding: 55px;

    text-align: center;
}

.error-number {
    color: #e22222;

    font-size:
        clamp(90px,15vw,180px);

    line-height: .8;

    font-weight: 1000;
}

.error-page h1 {
    font-size:
        clamp(35px,5vw,65px);
}

.error-page p {
    max-width: 650px;

    margin: 20px auto 30px;

    font-size: 20px;
    line-height: 1.5;
}

.error-page .big-red-button,
.error-page .big-dark-button {
    margin: 7px;
}


@media (max-width: 700px) {

    .discussion-heading {
        flex-direction: column;
        align-items: flex-start;
    }

}
