/* Bangkok Hilton Demo - Prison Theme CSS */
/* Naming: Prison/Cell Block Theme */

:root {
    --rust: #8B7355;
    --rust-dark: #5c4d3a;
    --gold-chain: #D4AF37;
    --blood: #8B0000;
    --blood-bright: #a31515;
    --concrete: #3d3a36;
    --concrete-light: #5a5550;
    --void: #1a1612;
    --void-deep: #0d0b09;
    --grime: #2a2520;
    --chalk: #c4beb5;
    --chalk-dim: #8a857c;
    --wire: #4a4540;
    --inmate-text: #e8e2d9;
    --warning-yellow: #c9a227;
    
    --typeface-display: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    --typeface-body: Georgia, 'Times New Roman', serif;
    
    --cell-gap: clamp(1rem, 3vw, 2rem);
    --wall-radius: 4px;
    --bar-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--typeface-body);
    background: var(--void);
    color: var(--inmate-text);
    line-height: 1.7;
    padding-top: 100px;
    min-height: 100vh;
}

h1 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
}

/* RG Banner - Fixed Top */
.warning-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--blood);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    text-align: center;
    font-family: var(--typeface-display);
}

.warning-strip a {
    color: var(--gold-chain);
    text-decoration: underline;
}

/* Header/Masthead */
.cellblock-header {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--void) 0%, var(--void-deep) 100%);
    border-bottom: 2px solid var(--rust-dark);
    padding: 12px 0;
    transition: box-shadow 0.3s ease;
}

.cellblock-header.scrolled {
    box-shadow: var(--bar-shadow);
}

.header-cage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--cell-gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--inmate-text);
}

.brand-mark img {
    height: 80px;
    width: auto;
}

.brand-mark span {
    font-family: var(--typeface-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-chain);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.corridor-nav {
    display: flex;
    gap: 8px;
}

.corridor-nav a {
    color: var(--chalk);
    text-decoration: none;
    padding: 8px 16px;
    font-family: var(--typeface-display);
    font-size: 0.9rem;
    border-radius: var(--wall-radius);
    transition: all 0.2s ease;
}

.corridor-nav a:hover,
.corridor-nav a.active {
    background: var(--rust-dark);
    color: var(--gold-chain);
}

/* Mobile Toggle */
.cell-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.cell-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold-chain);
    transition: all 0.3s ease;
}

/* Hero Section */
.intake-hero {
    position: relative;
    padding: 4rem var(--cell-gap);
    background: linear-gradient(135deg, var(--void-deep) 0%, var(--grime) 50%, var(--void) 100%);
    overflow: hidden;
}

.intake-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="%234a4540" stroke-width="0.5" x="0" y="0" width="100" height="100"/><line x1="0" y1="50" x2="100" y2="50" stroke="%234a4540" stroke-width="0.3"/><line x1="50" y1="0" x2="50" y2="100" stroke="%234a4540" stroke-width="0.3"/></svg>');
    background-size: 60px 60px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-cage {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-intel h1 {
    font-family: var(--typeface-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold-chain);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-intel h1 span {
    display: block;
    font-size: 0.5em;
    color: var(--chalk);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.hero-summary {
    font-size: 1.1rem;
    color: var(--chalk);
    margin-bottom: 2rem;
    max-width: 540px;
}

.action-block {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-lockdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--typeface-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--wall-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-lockdown.primary {
    background: linear-gradient(135deg, var(--gold-chain) 0%, var(--rust) 100%);
    color: var(--void);
}

.btn-lockdown.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-lockdown.secondary {
    background: transparent;
    border: 2px solid var(--gold-chain);
    color: var(--gold-chain);
}

.btn-lockdown.secondary:hover {
    background: var(--gold-chain);
    color: var(--void);
}

.hero-visual {
    position: relative;
}

.hero-visual picture img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid var(--rust-dark);
    box-shadow: var(--bar-shadow);
}

/* Quick Stats Bar */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rust-dark);
    border-radius: var(--wall-radius);
    overflow: hidden;
    margin-top: 2rem;
}

.stat-cell {
    background: var(--grime);
    padding: 1rem;
    text-align: center;
}

.stat-cell .label {
    display: block;
    font-size: 0.75rem;
    color: var(--chalk-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-cell .value {
    font-family: var(--typeface-display);
    font-size: 1.25rem;
    color: var(--gold-chain);
    font-weight: 700;
}

/* Content Sections */
.ward-section {
    padding: 4rem var(--cell-gap);
    max-width: 1200px;
    margin: 0 auto;
}

.ward-section:nth-child(even) {
    background: var(--grime);
    margin-top: 2rem;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.section-tag {
    font-family: var(--typeface-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold-chain);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--rust-dark);
}

.section-tag::before {
    content: '⛓ ';
}

/* Tables */
.record-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--grime);
    border-radius: var(--wall-radius);
    overflow: hidden;
}

.record-table thead {
    background: var(--rust-dark);
}

.record-table th {
    padding: 14px 16px;
    text-align: left;
    font-family: var(--typeface-display);
    color: var(--gold-chain);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--wire);
    color: var(--chalk);
}

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

.record-table tbody tr:nth-child(even) {
    background: rgba(90, 85, 80, 0.2);
}

.record-table tbody tr:hover {
    background: rgba(139, 115, 85, 0.15);
}

.record-table .highlight {
    color: var(--gold-chain);
    font-weight: 600;
}

.table-note {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--void-deep);
    border-left: 3px solid var(--rust);
    font-size: 0.95rem;
    color: var(--chalk);
}

/* Features Grid */
.mechanic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mechanic-card {
    background: linear-gradient(145deg, var(--grime) 0%, var(--void-deep) 100%);
    border: 1px solid var(--rust-dark);
    border-radius: var(--wall-radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mechanic-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-chain);
}

.mechanic-card h3 {
    font-family: var(--typeface-display);
    color: var(--gold-chain);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mechanic-card p {
    color: var(--chalk);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Section */
.inquiry-list {
    margin-top: 1.5rem;
}

.inquiry-item {
    background: var(--grime);
    border: 1px solid var(--rust-dark);
    border-radius: var(--wall-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.inquiry-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem;
    text-align: left;
    font-family: var(--typeface-display);
    font-size: 1rem;
    color: var(--gold-chain);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inquiry-question::after {
    content: '−';
    font-size: 1.5rem;
    color: var(--rust);
    transition: transform 0.3s ease;
}

.inquiry-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--chalk);
    line-height: 1.7;
}

/* Screenshots Gallery */
.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.evidence-item {
    position: relative;
    border-radius: var(--wall-radius);
    overflow: hidden;
    border: 2px solid var(--rust-dark);
}

.evidence-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.evidence-item:hover img {
    transform: scale(1.03);
}

.evidence-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 22, 18, 0.95));
    padding: 2rem 1rem 1rem;
    color: var(--chalk);
    font-size: 0.9rem;
}

/* CTA Section */
.escape-cta {
    background: linear-gradient(135deg, var(--grime) 0%, var(--void-deep) 100%);
    padding: 3rem var(--cell-gap);
    text-align: center;
    border-top: 2px solid var(--rust-dark);
    border-bottom: 2px solid var(--rust-dark);
}

.escape-cta h2 {
    font-family: var(--typeface-display);
    color: var(--gold-chain);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.escape-cta p {
    color: var(--chalk);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.basement-footer {
    background: var(--void-deep);
    padding: 3rem var(--cell-gap) 1.5rem;
    border-top: 2px solid var(--rust-dark);
}

.footer-cage {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-block h4 {
    font-family: var(--typeface-display);
    color: var(--gold-chain);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-block ul {
    list-style: none;
}

.footer-block li {
    margin-bottom: 0.5rem;
}

.footer-block a {
    color: var(--chalk-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-block a:hover {
    color: var(--gold-chain);
}

.footer-block p {
    color: var(--chalk-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-legal {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--wire);
    text-align: center;
    color: var(--chalk-dim);
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--rust);
    text-decoration: none;
}

/* Demo Modal */
.confinement-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.confinement-overlay.active {
    display: flex;
}

.confinement-box {
    position: relative;
    width: 95%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    border: 3px solid var(--rust);
    overflow: hidden;
}

.confinement-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.confinement-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: rgba(139, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.confinement-close:hover {
    background: var(--blood-bright);
}

/* Mobile Sticky CTA */
.mobile-lockup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: linear-gradient(180deg, transparent, var(--void-deep) 20%);
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
}

.mobile-lockup .btn-lockdown {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-cage {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-intel {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .action-block {
        justify-content: center;
    }
    
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }
    
    .corridor-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--void-deep);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--rust-dark);
    }
    
    .corridor-nav.open {
        display: flex;
    }
    
    .cell-toggle {
        display: flex;
    }
    
    .cell-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .cell-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .cell-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .mobile-lockup {
        display: block;
    }
    
    .evidence-gallery {
        grid-template-columns: 1fr;
    }
    
    .record-table {
        font-size: 0.9rem;
        display: block;
        max-width: -moz-fit-content;
        max-width: fit-content;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .record-table th,
    .record-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .stats-strip {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-intel h1 {
        font-size: 1.75rem;
    }
    
    .action-block {
        flex-direction: column;
    }
    
    .btn-lockdown {
        width: 100%;
        justify-content: center;
    }
}

/* Focus States */
:focus-visible {
    outline: 3px solid var(--gold-chain);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .cellblock-header,
    .warning-strip,
    .mobile-lockup,
    .confinement-overlay,
    .action-block {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background: #fff;
        color: #000;
    }
    
    .section-tag {
        color: #000;
        border-color: #333;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}
