/* ==========================================================================
   ISDIDDYINJAIL.COM - Modern Homage Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #070709;
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.45);
    
    --accent-red: #ff3b30;
    --accent-green: #30d158;
    --accent-gold: #ffd60a;
    
    --status-box-bg: rgba(0, 0, 0, 0.65);
    --status-box-border: rgba(255, 255, 255, 0.85);
    
    --card-bg: rgba(18, 18, 24, 0.75);
    --card-border: rgba(255, 255, 255, 0.12);
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-cinzel: 'Cinzel', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Background Image Container & Overlay
   -------------------------------------------------------------------------- */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s ease-out;
}

#bg-image-jail {
    background-position: center -80px;
}

#bg-image-free {
    background-position: center top;
}

@media (min-height: 800px) {
    #bg-image-jail {
        background-position: center -110px;
    }
}

.bg-image.active {
    opacity: 1;
    transform: scale(1);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center 25%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.9) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 18%, transparent 50%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header Bar
   -------------------------------------------------------------------------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--accent-red);
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-weight: 600;
}

.body.state-not-in-jail .badge-live {
    color: var(--accent-green);
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.icon-btn .icon {
    width: 18px;
    height: 18px;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.825rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Main Stage & Classic Status Box
   -------------------------------------------------------------------------- */
.main-stage {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem 6.25rem 1.5rem;
}

.status-box-container {
    margin-bottom: 1rem;
    text-align: center;
}

/* The Classic IS DMX IN JAIL Style Box */
.status-box {
    display: inline-block;
    background: var(--status-box-bg);
    border: 2px solid var(--status-box-border);
    padding: 1.25rem 2.5rem;
    border-radius: 4px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.status-box:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
}

.status-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.keyword-highlight {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
}

/* --------------------------------------------------------------------------
   Sentence Tracker Card
   -------------------------------------------------------------------------- */
.sentence-tracker {
    width: 100%;
    max-width: 580px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.tracker-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.tracker-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 600;
}

.facility-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(255, 214, 10, 0.1);
    border: 1px solid rgba(255, 214, 10, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.time-block {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
}

.time-val {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.time-unit {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.tracker-footer-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.775rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Bottom Footer
   -------------------------------------------------------------------------- */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    text-align: center;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-note p {
    font-family: var(--font-serif);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.footer-link-highlight {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-link-highlight:hover {
    color: var(--accent-gold);
}

.footer-sub {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-x-link,
.footer-x-link:visited,
.footer-x-link:active,
.footer-x-link:link {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.2s ease;
}

.footer-x-link:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

.x-icon {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    display: inline-block;
    vertical-align: -2px;
}

.sep {
    margin: 0 0.35rem;
    color: var(--text-dim);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.text-btn:hover {
    color: #ffffff;
}

.footer-credit {
    font-size: 0.725rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: rgba(22, 22, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    transform: scale(1);
    transition: transform 0.25s ease;
}

.modal-card.modal-small {
    max-width: 440px;
}

.modal-backdrop.hidden .modal-card {
    transform: scale(0.95);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Timeline */
.timeline-list {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-list::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    border: 2px solid var(--bg-dark);
}

.timeline-item.active-event::before {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.timeline-item.future-event::before {
    background: var(--accent-gold);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.form-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent-gold);
}

.submit-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-1px);
}

/* Toast */
.toast {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 1;
}

.toast.hidden {
    opacity: 0;
    transform: translate(-50%, -10px);
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .top-nav {
        padding: 0.85rem 1rem;
    }
    
    .status-box {
        padding: 1rem 1.5rem;
    }
    
    .tracker-card {
        padding: 1.25rem 1rem;
    }
    
    .countdown-grid {
        gap: 0.4rem;
    }
    
    .bottom-footer {
        padding: 1rem;
    }
}
