/* ===========================
   footprint.bar - Noir Detective Bar
   Fonts: Lora" (Google Fonts), Special Elite, Oswald
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --noir-black: #0f0f0f;
    --manila: #d4b896;
    --evidence-red: #8b0000;
    --chalk-white: #e8e0d0;
    --dust-gray: #4a4a4a;
    --pin-red: #cc3333;
    --string-white: #c0b8a0;
    --cork-brown: #8b6914;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--noir-black);
    color: var(--chalk-white);
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Venetian Blind Overlay --- */
.venetian-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 20px,
        rgba(0, 0, 0, 0.3) 20px,
        rgba(0, 0, 0, 0.3) 22px
    );
    opacity: 0.4;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--noir-black) 0%, #1a1a1a 50%, var(--noir-black) 100%);
}

/* Fingerprint Background */
.fingerprint-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 700px;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    background:
        radial-gradient(ellipse 200px 240px at 50% 48%, transparent 30%, rgba(232, 224, 208, 0.03) 31%, transparent 32%),
        radial-gradient(ellipse 170px 210px at 52% 50%, transparent 30%, rgba(232, 224, 208, 0.03) 31%, transparent 32%),
        radial-gradient(ellipse 140px 175px at 48% 52%, transparent 30%, rgba(232, 224, 208, 0.03) 31%, transparent 32%),
        radial-gradient(ellipse 110px 140px at 51% 49%, transparent 30%, rgba(232, 224, 208, 0.03) 31%, transparent 32%),
        radial-gradient(ellipse 80px 105px at 49% 51%, transparent 30%, rgba(232, 224, 208, 0.03) 31%, transparent 32%),
        radial-gradient(ellipse 50px 70px at 50% 50%, transparent 30%, rgba(232, 224, 208, 0.03) 31%, transparent 32%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Evidence Band / Tape */
.evidence-band {
    display: inline-block;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid var(--manila);
    padding: 0.8rem 3rem;
    transform: rotate(-2deg);
    position: relative;
    box-shadow: 0 0 60px 20px rgba(212, 184, 150, 0.05);
}

.evidence-band::before,
.evidence-band::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    background: rgba(212, 184, 150, 0.15);
}

.evidence-band::before {
    left: -15px;
    transform: skewX(-5deg);
}

.evidence-band::after {
    right: -15px;
    transform: skewX(5deg);
}

.domain-name {
    font-family: 'Special Elite', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--chalk-white);
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.tagline {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--manila);
    margin-top: 1.5rem;
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 1.2s ease 0.8s forwards;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.scroll-hint span {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--dust-gray);
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--dust-gray);
    border-bottom: 2px solid var(--dust-gray);
    transform: rotate(45deg);
    animation: bounceDown 2s ease infinite;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(6px);
    }
    60% {
        transform: rotate(45deg) translateY(3px);
    }
}

/* --- Case Files Section --- */
#case-files {
    position: relative;
    padding: 6rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Special Elite', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--chalk-white);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--dust-gray);
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
}

.case-files-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Individual Case File Card */
.case-file {
    position: relative;
    background: var(--manila);
    color: var(--noir-black);
    padding: 2.5rem 2rem 2rem;
    border-radius: 2px;
    box-shadow:
        0 2px 15px rgba(0, 0, 0, 0.4),
        0 0 60px 20px rgba(212, 184, 150, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.case-file.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Folder Tab */
.folder-tab {
    position: absolute;
    top: -14px;
    left: 20px;
    background: var(--manila);
    padding: 2px 16px;
    border-radius: 4px 4px 0 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dust-gray);
}

/* Stamps */
.stamp {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 2px solid;
    border-radius: 2px;
    transform: rotate(-5deg);
    opacity: 0.7;
}

.stamp-classified {
    color: var(--evidence-red);
    border-color: var(--evidence-red);
}

.stamp-evidence {
    color: var(--evidence-red);
    border-color: var(--evidence-red);
}

.stamp-evidence::before {
    content: '';
}

.case-name {
    font-family: 'Special Elite', cursive;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--noir-black);
}

.case-description {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3a3a3a;
    margin-bottom: 1rem;
}

.case-ingredients {
    list-style: none;
    padding-left: 0;
    border-top: 1px dashed var(--dust-gray);
    padding-top: 0.75rem;
}

.case-ingredients li {
    font-family: 'Special Elite', cursive;
    font-size: 0.85rem;
    color: var(--dust-gray);
    padding: 0.2rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.case-ingredients li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--evidence-red);
}

/* --- Investigation Board Section --- */
#investigation-board {
    position: relative;
    padding: 4rem 2rem 6rem;
    min-height: 90vh;
    overflow: hidden;
}

#investigation-board .section-title {
    position: relative;
    z-index: 3;
    margin-bottom: 2rem;
}

.board-surface {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 600px;
    margin: 0 auto;
    background: rgba(139, 105, 20, 0.15);
    border: 3px solid rgba(139, 105, 20, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.board-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#noise);
    opacity: 0.3;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Board Strings */
.board-strings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Position the strings SVG over the board */
#investigation-board {
    position: relative;
}

#investigation-board .board-strings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.string {
    stroke: var(--string-white);
    stroke-width: 1;
    stroke-dasharray: 5 3;
    opacity: 0.6;
}

/* Board Items */
.board-item {
    position: absolute;
    z-index: 3;
    max-width: 220px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.board-item.visible {
    opacity: 1;
}

/* Push Pins */
.push-pin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 4px 4px, #ff6666, var(--pin-red) 60%, #660000);
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.push-pin::after {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: 2px;
    left: 3px;
}

/* Board Cards */
.board-card {
    background: var(--chalk-white);
    color: var(--noir-black);
    padding: 1rem;
    margin-top: 6px;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);
    transform: rotate(var(--rotation, 0deg));
}

.board-note {
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #2a2a2a;
}

/* Photo card */
.board-card-photo {
    text-align: center;
    padding: 0.75rem;
}

.photo-placeholder {
    width: 100%;
    height: 100px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.magnifying-glass {
    position: relative;
    width: 40px;
    height: 40px;
}

.glass-lens {
    width: 30px;
    height: 30px;
    border: 2px solid var(--chalk-white);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.glass-handle {
    width: 2px;
    height: 16px;
    background: var(--chalk-white);
    position: absolute;
    bottom: -8px;
    right: 0;
    transform: rotate(-45deg);
    transform-origin: top right;
}

.photo-caption {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dust-gray);
}

/* Receipt card */
.board-card-receipt {
    font-family: 'Special Elite', cursive;
    font-size: 0.75rem;
    padding: 1rem 0.75rem;
}

.receipt-title {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    color: var(--noir-black);
}

.receipt-line {
    color: #3a3a3a;
    padding: 0.15rem 0;
    font-size: 0.75rem;
}

.receipt-divider {
    border: none;
    border-top: 1px dashed #999;
    margin: 0.4rem 0;
}

.receipt-total {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--evidence-red);
    letter-spacing: 0.05em;
}

/* Chalk card */
.board-card-chalk {
    background: var(--dust-gray);
    padding: 1rem;
    text-align: center;
}

.chalk-outline {
    width: 60px;
    height: 80px;
    margin: 0 auto 0.5rem;
    border: 1px solid var(--chalk-white);
    border-radius: 30px 30px 5px 5px;
    position: relative;
    opacity: 0.5;
}

.chalk-outline::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 5px;
    width: 15px;
    height: 25px;
    border-left: 1px solid var(--chalk-white);
    border-bottom: 1px solid var(--chalk-white);
    transform: rotate(15deg);
}

.chalk-outline::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 5px;
    width: 15px;
    height: 25px;
    border-right: 1px solid var(--chalk-white);
    border-bottom: 1px solid var(--chalk-white);
    transform: rotate(-15deg);
}

.chalk-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--chalk-white);
    opacity: 0.7;
}

/* --- Footer --- */
#footer {
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 184, 150, 0.1);
}

.evidence-tape-footer {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    transform: rotate(-1deg);
}

.evidence-tape-footer span {
    display: inline-block;
    background: rgba(212, 184, 150, 0.8);
    color: var(--noir-black);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 24px;
    opacity: 0.6;
}

.footer-content {
    padding-top: 1rem;
}

.footer-text {
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    color: var(--chalk-white);
    margin-bottom: 0.3rem;
}

.footer-hours {
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    color: var(--dust-gray);
    font-style: italic;
}

/* --- Utility: Board item rotations --- */
.board-item:nth-child(1) .board-card { --rotation: -2deg; }
.board-item:nth-child(2) .board-card { --rotation: 1deg; }
.board-item:nth-child(3) .board-card { --rotation: 3deg; }
.board-item:nth-child(4) .board-card { --rotation: -1deg; }
.board-item:nth-child(5) .board-card { --rotation: 2deg; }
.board-item:nth-child(6) .board-card { --rotation: -3deg; }

/* --- Responsive --- */
@media (max-width: 768px) {
    #case-files {
        padding: 4rem 1rem;
    }

    .case-file {
        padding: 2rem 1.2rem 1.5rem;
    }

    .board-surface {
        height: 500px;
    }

    .board-item {
        max-width: 160px;
    }

    .evidence-band {
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .board-surface {
        height: 450px;
    }

    .board-item {
        max-width: 130px;
    }

    .board-card {
        padding: 0.6rem;
    }

    .board-note {
        font-size: 0.7rem;
    }
}
