/* WOTE-01 OBSIDIAN VESSEL - HEXENHAUS INDUSTRIES */
/* Terminal Interface Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --primary-green: #00ff00;
    --dark-bg: #000000;
    --dim-green: #00aa00;
    --red-alert: #ff0000;
    --amber-warn: #ffaa00;
}

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

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--dark-bg);
    color: var(--primary-green);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
    /* VHS color aberration */
    filter: contrast(1.1) brightness(0.95);
    
    /* Subtle chromatic aberration */
    text-shadow: 
        0.5px 0 0 rgba(255, 0, 0, 0.3),
        -0.5px 0 0 rgba(0, 255, 255, 0.3);
}

/* CRT Scanline Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

/* VHS Noise/Static Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.8;
    animation: vhs-noise 0.2s infinite;
}

@keyframes vhs-noise {
    0% { opacity: 0.8; }
    50% { opacity: 0.85; }
    100% { opacity: 0.8; }
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background-color: rgba(0, 20, 0, 0.8);
    border-right: 2px solid var(--primary-green);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    border: 2px solid var(--primary-green);
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-header h1 {
    font-size: 14px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.sidebar-header .subtitle {
    font-size: 10px;
    color: var(--dim-green);
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section h2 {
    font-size: 12px;
    color: var(--dim-green);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.nav-section ul {
    list-style: none;
}

.nav-section ul li {
    margin-bottom: 8px;
    padding-left: 15px;
}

.nav-section ul li a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    display: block;
}

.nav-section ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-green);
}

.nav-section ul li a.active {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-green);
}

/* Signal Status */
.signal-status {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid var(--dim-green);
    font-size: 11px;
}

.signal-bar {
    width: 100%;
    height: 20px;
    background-color: rgba(0, 50, 0, 0.3);
    border: 1px solid var(--primary-green);
    position: relative;
    margin-top: 10px;
}

.signal-fill {
    height: 100%;
    background-color: var(--primary-green);
    width: 87%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 40px;
    flex: 1;
    max-width: 1200px;
}

/* Terminal Box */
.terminal-box {
    border: 2px solid var(--primary-green);
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgba(0, 20, 0, 0.5);
}

.terminal-header {
    border-bottom: 1px solid var(--primary-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--dim-green);
}

.terminal-content {
    font-size: 14px;
    line-height: 1.8;
}

.terminal-content p {
    margin-bottom: 15px;
}

.terminal-content h2 {
    font-size: 16px;
    margin: 25px 0 15px 0;
    color: #fff;
    text-shadow: 0 0 5px var(--primary-green);
}

/* Dossier Photo Styling */
.dossier-photo {
    border: 15px solid #f5f5dc;
    background-color: #f5f5dc;
    box-shadow: 
        0 0 0 2px #333,
        5px 5px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 30px 0;
    transform: rotate(-1deg);
}

.dossier-photo img {
    display: block;
    width: 100%;
    height: auto;
    filter: contrast(1.1) brightness(0.95);
}

.photo-label {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f5f5dc;
    padding: 5px 20px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #333;
    border: 1px solid #999;
}

.classified-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--red-alert);
    font-size: 32px;
    font-weight: bold;
    transform: rotate(15deg);
    opacity: 0.7;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    border: 3px solid var(--red-alert);
    padding: 10px 20px;
    background-color: rgba(255, 0, 0, 0.1);
}

/* Links */
.link-list {
    list-style: none;
    margin: 20px 0;
}

.link-list li {
    margin-bottom: 15px;
    padding-left: 20px;
}

.link-list a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

.link-list a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-green);
    transform: translateX(5px);
}

/* Behind the Curtain - Red Theme */
.behind-curtain {
    border-color: var(--red-alert);
}

.behind-curtain .terminal-header {
    border-color: var(--red-alert);
    color: #ff6666;
    text-shadow: 0 0 5px rgba(255, 102, 102, 0.8);
}

.behind-curtain .terminal-content {
    color: #ffcccc;
}

.behind-curtain h2 {
    color: #ff9999;
    text-shadow: 0 0 10px rgba(255, 102, 102, 0.6);
}

.behind-curtain a {
    color: #ff6666;
    text-shadow: 0 0 3px rgba(255, 102, 102, 0.5);
}

.behind-curtain a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--red-alert);
}

/* Lady Lazarus Corner Terminal */
.lady-lazarus-terminal {
    position: fixed;
    top: 380px;
    right: 20px;
    width: 350px;
    background-color: rgba(0, 20, 0, 0.95);
    border: 2px solid var(--primary-green);
    z-index: 10000;
    font-size: 12px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.lady-lazarus-terminal.minimized {
    height: 40px;
    overflow: hidden;
}

.ll-header {
    background-color: rgba(0, 50, 0, 0.8);
    border-bottom: 1px solid var(--primary-green);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.ll-title {
    font-size: 11px;
    letter-spacing: 1px;
}

.ll-controls {
    display: flex;
    gap: 10px;
}

.ll-btn {
    background: none;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ll-btn:hover {
    background-color: var(--primary-green);
    color: var(--dark-bg);
}

.ll-content {
    padding: 15px;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
}

.ll-message {
    margin-bottom: 10px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ll-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: var(--primary-green);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Email Signup Slide-down */
.email-signup-banner {
    position: fixed;
    top: -300px;
    left: 0;
    right: 0;
    background-color: rgba(0, 40, 0, 0.98);
    border-bottom: 3px solid var(--primary-green);
    padding: 30px;
    z-index: 9997;
    transition: top 0.5s ease-out;
    box-shadow: 0 5px 30px rgba(0, 255, 0, 0.3);
}

.email-signup-banner.visible {
    top: 0;
}

.email-signup-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.email-signup-content h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-green);
}

.email-signup-content p {
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.email-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.email-form input[type="email"] {
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 12px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    width: 300px;
    outline: none;
}

.email-form input[type="email"]:focus {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.email-form button {
    background-color: var(--primary-green);
    color: var(--dark-bg);
    border: none;
    padding: 12px 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.email-form button:hover {
    box-shadow: 0 0 20px var(--primary-green);
    transform: scale(1.05);
}

.close-banner {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-banner:hover {
    background-color: var(--primary-green);
    color: var(--dark-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--primary-green);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .container {
        flex-direction: column;
    }
    
    /* Audio controls on mobile - HIDE THEM */
    #music-controls {
        display: none !important;
    }
    
    /* Lady Lazarus on mobile - part of page flow at top */
    .lady-lazarus-terminal {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin: 0 0 20px 0 !important;
        font-size: 12px;
        max-height: none !important;
        min-height: 200px !important;
        overflow: visible !important;
    }

    .lady-lazarus-terminal .ll-content {
        display: block !important;
        max-height: 250px !important;
        min-height: 100px !important;
        overflow-y: auto !important;
    }

    .lady-lazarus-terminal .ll-input-container {
        display: flex !important;
        visibility: visible !important;
    }

    .lady-lazarus-terminal.minimized {
        max-height: 45px !important;
        min-height: 45px !important;
    }

    .lady-lazarus-terminal.minimized .ll-content,
    .lady-lazarus-terminal.minimized .ll-input-container {
        display: none !important;
    }
    
    /* Email banner on mobile */
    .email-signup-banner {
        padding: 20px 15px;
    }
    
    .email-signup-content h2 {
        font-size: 14px;
    }
    
    .email-signup-content p {
        font-size: 11px;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .email-form input[type="email"] {
        width: 100%;
    }
    
    .email-form button {
        width: 100%;
    }
}

/* Glitch effect for special moments */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch {
    animation: glitch 0.3s;
}

/* Enhanced CRT flicker */
@keyframes crt-flicker {
    0% { opacity: 1; }
    50% { opacity: 0.95; }
    100% { opacity: 1; }
}

body.flicker {
    animation: crt-flicker 0.1s;
}

/* Text glow pulse for active elements */
@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 5px var(--primary-green); }
    50% { text-shadow: 0 0 15px var(--primary-green), 0 0 25px var(--primary-green); }
}

.terminal-header {
    animation: text-glow 3s infinite;
}

/* Loading bar animation */
@keyframes loading-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.signal-fill {
    animation: loading-pulse 2s infinite;
}

/* Screen boot-up effect */
@keyframes screen-on {
    0% {
        transform: scaleY(0.001) scaleX(1);
        opacity: 0;
    }
    50% {
        transform: scaleY(0.01) scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
    }
}

.boot-animation {
    animation: screen-on 0.5s ease-out;
}

/* Cursor blink for terminal prompt */
@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.terminal-cursor {
    display: inline-block;
    animation: cursor-blink 530ms infinite;
}

/* Scanline movement */
@keyframes scanline-move {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.moving-scanline {
    position: fixed;
    width: 100%;
    height: 3px;
    background: linear-gradient(transparent, rgba(0, 255, 0, 0.4), transparent);
    pointer-events: none;
    z-index: 9999;
    animation: scanline-move 8s linear infinite;
}

/* VHS Tracking Lines */
@keyframes vhs-tracking {
    0% { transform: translateY(-100%); opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { transform: translateY(100vh); opacity: 0.1; }
}

body {
    animation: vhs-wobble 3s infinite;
}

@keyframes vhs-wobble {
    0% { transform: translateX(0); }
    25% { transform: translateX(-0.2px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(0.2px); }
    100% { transform: translateX(0); }
}

/* VHS Horizontal Tracking Lines */
.vhs-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 100px,
        rgba(0, 255, 0, 0.03) 100px,
        rgba(0, 255, 0, 0.03) 102px
    );
    animation: vhs-tracking 10s linear infinite;
}

/* Random VHS Glitch */
@keyframes vhs-glitch {
    0% { 
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
    10% { 
        clip-path: inset(10% 0 85% 0);
        transform: translateX(5px);
    }
    20% { 
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

/* Apply occasional glitch */
.terminal-box {
    animation: vhs-glitch 0.3s infinite;
    animation-iteration-count: 0.01; /* Very rare */
}

/* Image degradation */
img {
    filter: contrast(0.95) brightness(1.05) saturate(0.9);
}

/* VHS color bleeding */
.terminal-content {
    text-shadow: 
        1px 0 0 rgba(0, 255, 0, 0.1),
        -1px 0 0 rgba(0, 100, 0, 0.1);
}

/* ADDITIONAL STYLES FOR LADY LAZARUS AI CHAT */
/* Add these to your existing style.css */

/* Chat input container */
.ll-input-container {
    border-top: 1px solid var(--primary-green);
    padding: 10px;
    display: flex;
    gap: 10px;
    background-color: rgba(0, 30, 0, 0.9);
}

#ll-user-input {
    flex: 1;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 8px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    outline: none;
}

#ll-user-input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    border-color: #00ff00;
}

#ll-user-input::placeholder {
    color: var(--dim-green);
    opacity: 0.5;
}

#ll-send-btn {
    background-color: var(--primary-green);
    color: var(--dark-bg);
    border: none;
    padding: 8px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

#ll-send-btn:hover {
    box-shadow: 0 0 15px var(--primary-green);
    transform: scale(1.05);
}

#ll-send-btn:active {
    transform: scale(0.95);
}

/* User messages styling */
.ll-user-message {
    color: #00aaaa !important;
    opacity: 0.9;
}

/* Adjust terminal height for input */
.lady-lazarus-terminal {
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.ll-content {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

/* ============================================
   MOBILE OPTIMIZATION
   Only affects screens under 768px width
   Desktop design remains unchanged
   ============================================ */

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Make body text more readable on mobile */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Reduce VHS effects on mobile for better readability */
    body::before,
    body::after {
        opacity: 0.3;
    }
    
    /* Mobile Layout - Stack instead of sidebar */
    .container {
        flex-direction: column;
    }
    
    /* Sidebar becomes top navigation on mobile */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--primary-green);
        padding: 15px;
        overflow-y: visible;
    }
    
    .sidebar-header {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .sidebar-header h1 {
        font-size: 16px;
    }
    
    .sidebar-header .subtitle {
        font-size: 10px;
    }
    
    /* Navigation links - bigger touch targets */
    nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    nav ul li {
        margin: 0;
        flex: 1 1 45%;
    }
    
    nav ul li a {
        padding: 12px 15px;
        font-size: 13px;
        display: block;
        text-align: center;
    }
    
    /* Uplinks section */
    .uplinks {
        margin-top: 20px;
    }
    
    .uplinks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .uplink-btn {
        padding: 10px;
        font-size: 11px;
    }
    
    /* Status section */
    .status-section {
        padding: 12px;
        margin-top: 15px;
    }
    
    .status-section h3 {
        font-size: 12px;
    }
    
    /* Main Content Area */
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    /* Reorder sections on mobile */
    #btc-links-section {
        order: 1; /* Links + image section comes first */
    }
    
    #btc-main-message {
        order: 2; /* Hidden on mobile but set order anyway */
    }
    
    #btc-mobile-submit {
        order: 2; /* Shows after links section on mobile */
    }
    
    /* Terminal boxes more readable on mobile */
    .terminal-box {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .terminal-header h2 {
        font-size: 16px;
    }
    
    .terminal-content {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .terminal-content p {
        margin-bottom: 12px;
    }
    
    /* Images scale properly on mobile */
    .content-images {
        flex-direction: column;
        gap: 15px;
    }

    .personnel-photo,
    .content-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* All images responsive on mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Dossier photos on mobile */
    .dossier-photo {
        margin: 20px 0 !important;
        max-width: 100% !important;
        transform: rotate(0deg) !important; /* Straighten on mobile for readability */
    }

    .classified-stamp {
        font-size: 20px;
        padding: 5px 10px;
        top: 10px;
        right: 10px;
    }
    
    /* Behind the Curtain grid */
    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid-item img {
        max-height: 400px;
        object-fit: contain;
    }
    
    /* HIDE Lady Lazarus on Behind the Curtain page (mobile only) */
    body.behind-curtain .lady-lazarus-terminal {
        display: none !important;
    }
    
    .ll-header {
        padding: 12px 15px;
        font-size: 13px;
        min-height: 50px;
    }
    
    .ll-title {
        font-size: 13px;
    }
    
    .ll-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }
    
    .ll-content {
        padding: 15px;
        max-height: calc(50vh - 150px);
        min-height: 120px;
        font-size: 13px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .ll-message {
        margin-bottom: 10px;
        line-height: 1.5;
        font-size: 13px;
    }
    
    .ll-input-container {
        padding: 12px 15px;
        gap: 10px;
    }
    
    #ll-user-input {
        height: 44px; /* iOS recommended touch target */
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 12px;
    }
    
    #ll-send-btn {
        height: 44px;
        min-width: 70px;
        padding: 0 20px;
        font-size: 14px;
    }
    
    /* Mobile keyboard adjustment */
    .lady-lazarus-terminal.keyboard-open {
        max-height: 40vh;
    }
    
    /* Archive Page - Mobile */
    .music-list {
        padding: 15px;
    }
    
    .track-item {
        padding: 12px;
    }
    
    .track-title {
        font-size: 13px;
    }
    
    /* Audio Player - Mobile friendly */
    .audio-player {
        padding: 15px;
    }
    
    /* Hide background music player on mobile */
    #background-music-player,
    #music-controls {
        display: none !important;
    }
    
    .player-controls button {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    /* Email Signup Banner - Mobile */
    .email-signup-banner {
        padding: 15px;
        font-size: 12px;
    }
    
    .email-signup-banner input {
        font-size: 14px;
        padding: 10px;
    }
    
    .email-signup-banner button {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Links and buttons - bigger touch targets */
    a, button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 15px;
    }

    /* Link lists more tappable */
    .link-list li {
        margin-bottom: 20px;
        padding-left: 10px;
    }

    .link-list a {
        font-size: 15px;
        padding: 15px 10px;
        line-height: 1.6;
    }

    /* Blockquotes readable on mobile */
    blockquote {
        margin: 20px 0 !important;
        padding: 15px !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    /* Lists with better spacing on mobile */
    ul, ol {
        padding-left: 25px;
    }

    li {
        margin-bottom: 10px;
        line-height: 1.6;
    }
    
    /* Text sizing for readability */
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    /* Reduce animations on mobile for performance */
    * {
        animation-duration: 0.3s !important;
    }
    
    /* Better spacing throughout */
    .terminal-box + .terminal-box {
        margin-top: 20px;
    }

    /* Prevent text overflow */
    .terminal-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Tables responsive on mobile */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Flex containers stack on mobile */
    .terminal-content > div[style*="display: flex"],
    .terminal-content > div[style*="display:flex"] {
        flex-direction: column !important;
    }

    /* Better spacing for content boxes */
    .terminal-content > div {
        margin-bottom: 15px;
    }

    /* Ensure all content stays within bounds */
    * {
        max-width: 100%;
    }

    .container,
    .main-content,
    .terminal-box {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* BEHIND THE CURTAIN - MOBILE OPTIMIZED */
    /* Hide the critical alert box on mobile - it's in the way */
    .terminal-box[style*="pulse-border"] {
        display: none !important;
    }
    
    /* Make sure links are prominent and easy to click on mobile */
    .behind-curtain .terminal-content > div[style*="flex"] {
        flex-direction: column-reverse !important; /* Image comes AFTER links */
        gap: 20px !important;
    }
    
    /* Hide the second emoji on mobile - looks cleaner with just one */
    .emoji-right {
        display: none !important;
    }
    
    /* Image container on mobile */
    .behind-curtain .terminal-content > div[style*="flex"] > div:first-child {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Links container on mobile */
    .behind-curtain .terminal-content > div[style*="flex"] > div:last-child {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Make Behind The Curtain links extra prominent on mobile */
    .behind-curtain a[href*="onlyfans"],
    .behind-curtain a[href*="adultwork"] {
        padding: 30px 20px !important;
        font-size: 16px !important;
        display: block !important;
        text-align: center !important;
        margin: 15px 0 !important;
    }
    
    /* Make the "CLICK HERE" text even bigger on mobile */
    .behind-curtain a[href*="onlyfans"] > div:first-child,
    .behind-curtain a[href*="adultwork"] > div:first-child {
        font-size: 32px !important;
    }
    
    /* Make the titles bigger on mobile */
    .behind-curtain a[href*="onlyfans"] > div:nth-child(2),
    .behind-curtain a[href*="adultwork"] > div:nth-child(2) {
        font-size: 22px !important;
    }
    
    /* Dossier photo on Behind The Curtain page - mobile */
    .behind-curtain .dossier-photo {
        margin: 20px auto !important;
        max-width: 100% !important;
    }
    
    /* Hide system overload and return link on mobile */
    #btc-system-overload,
    #btc-return-link {
        display: none !important;
    }
    
    /* Hide the old message box and warning on mobile */
    #btc-main-message,
    #btc-warning-box {
        display: none !important;
    }
    
    /* Show the new mobile-only READY TO SUBMIT box */
    #btc-mobile-submit {
        display: block !important;
        border: 4px solid #ff0000 !important;
        padding: 30px !important;
        margin: 30px 0 !important;
    }
    
    /* Flashing animation for READY TO SUBMIT */
    @keyframes flash-text {
        0%, 100% { 
            opacity: 1; 
            text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
        }
        50% { 
            opacity: 0.3; 
            text-shadow: 0 0 10px #ff0000;
        }
    }
}

    /* Blog post pages - mobile optimization */
    .post-content {
        padding: 20px 15px !important;
    }

    .post-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .post-meta {
        flex-direction: column !important;
        gap: 8px !important;
        font-size: 11px !important;
    }

    .post-header {
        margin-bottom: 25px !important;
        padding-bottom: 20px !important;
    }

    .post-body {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .post-body p {
        margin-bottom: 20px !important;
    }

    .post-body h2 {
        font-size: 20px !important;
        margin: 30px 0 15px 0 !important;
    }

    .back-link {
        margin-top: 40px !important;
        width: 100%;
        text-align: center;
        padding: 15px 20px !important;
    }

    /* Confession cards on mobile */
    .confession-grid {
        gap: 25px !important;
        margin-top: 20px !important;
    }

    .confession-card {
        margin-bottom: 20px;
    }

    .confession-header {
        padding: 20px 15px !important;
    }

    .confession-title {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    .confession-meta {
        flex-direction: column !important;
        gap: 8px !important;
        font-size: 11px !important;
    }

    .confession-excerpt {
        padding: 20px 15px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .confession-footer {
        padding: 15px !important;
    }

    .read-more {
        width: 100%;
        text-align: center;
        padding: 15px 20px !important;
        font-size: 12px !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .sidebar-header h1 {
        font-size: 14px;
    }

    nav ul li {
        flex: 1 1 100%;
    }

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

    .lady-lazarus-terminal {
        width: 98% !important;
        left: 1% !important;
        right: 1% !important;
        max-height: 400px;
    }

    .ll-content {
        max-height: 240px;
    }

    #ll-user-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .post-title {
        font-size: 20px !important;
    }

    .post-body {
        font-size: 14px !important;
    }
}

/* ================================
   LADY LAZARUS EMBEDDED WIDGET & FULL INTERFACE STYLES
   ================================ */

/* Embedded Widget Container (Homepage) */
.ll-embed-container {
    padding: 20px;
    background: #000;
    position: relative;
}

.ll-embed-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: #000;
    border: 1px solid #00ff00;
    margin-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #001a00;
}

.ll-embed-messages::-webkit-scrollbar {
    width: 10px;
}

.ll-embed-messages::-webkit-scrollbar-track {
    background: #001a00;
    border-left: 1px solid #00ff00;
}

.ll-embed-messages::-webkit-scrollbar-thumb {
    background: #00ff00;
    box-shadow: inset 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Full Interface Container (Full Page) */
.ll-full-terminal {
    background: #000;
    border: 2px solid #00ff00;
    padding: 0;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

.ll-full-messages {
    height: 600px;
    overflow-y: auto;
    padding: 30px;
    background: #000;
    border-bottom: 2px solid #00ff00;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #001a00;
}

.ll-full-messages::-webkit-scrollbar {
    width: 12px;
}

.ll-full-messages::-webkit-scrollbar-track {
    background: #001a00;
    border-left: 1px solid #00ff00;
}

.ll-full-messages::-webkit-scrollbar-thumb {
    background: #00ff00;
    box-shadow: inset 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Messages */
.ll-message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

.ll-message-header {
    font-size: 10px;
    color: #00aa00;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ll-message.user .ll-message-header {
    text-align: right;
}

.ll-message.assistant .ll-message-content {
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid #00ff00;
    text-shadow: 0 0 2px #00ff00;
}

.ll-message.user .ll-message-content {
    background: rgba(0, 170, 42, 0.05);
    border-right: 3px solid #00aa2a;
    text-align: right;
}

.ll-message-content {
    padding: 12px 15px;
    color: #00ff00;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.ll-message-prefix {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 3px #00ff00;
}

/* Input Containers */
.ll-embed-input-container,
.ll-full-input-container {
    padding: 15px 20px;
    background: #001a00;
    display: flex;
    gap: 10px;
}

.ll-full-input-container {
    border-top: 2px solid #00ff00;
}

/* Input Fields */
.ll-embed-input,
.ll-full-input {
    flex: 1;
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 12px 15px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    text-shadow: 0 0 2px #00ff00;
}

.ll-embed-input:focus,
.ll-full-input:focus {
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.5),
        inset 0 0 5px rgba(0, 255, 65, 0.1);
    border-color: #00ff00;
}

.ll-embed-input::placeholder,
.ll-full-input::placeholder {
    color: #004d15;
}

/* Send Buttons */
.ll-embed-send-btn,
.ll-full-send-btn {
    background: #001a00;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 12px 25px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-shadow: 0 0 3px #00ff00;
}

.ll-embed-send-btn:hover:not(:disabled),
.ll-full-send-btn:hover:not(:disabled) {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.ll-embed-send-btn:disabled,
.ll-full-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Loading Animation */
.ll-loading {
    color: #00ff00;
    font-style: italic;
    animation: blink 1s infinite;
    text-shadow: 0 0 3px #00ff00;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Welcome Message */
.ll-welcome {
    color: #00aa2a;
    font-size: 13px;
    text-align: center;
    margin: 30px 0;
    line-height: 1.8;
    text-shadow: 0 0 2px #00aa2a;
}

/* Link to Full Interface */
.ll-link-btn {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-shadow: 0 0 3px #00ff00;
}

.ll-link-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ll-embed-messages {
        height: 300px;
    }
    
    .ll-full-messages {
        height: 400px;
    }
    
    .ll-embed-input-container,
    .ll-full-input-container {
        flex-direction: column;
    }
    
    .ll-embed-send-btn,
    .ll-full-send-btn {
        width: 100%;
    }
}

/* ============================================ */
/* LADY LAZARUS AVATAR STYLES */
/* ============================================ */

.ll-avatar-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #00ff00;
    padding: 0;
    position: relative;
    margin-bottom: 20px;
}

.ll-avatar-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1/1;
}

.ll-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) brightness(0.9);
    background: #000;
}

.ll-avatar-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    padding: 5px 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #00ff00;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.ll-status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: ll-pulse 2s infinite;
}

@keyframes ll-pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 5px #00ff00; 
    }
    50% { 
        opacity: 0.3; 
        box-shadow: 0 0 2px #00ff00; 
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ll-avatar-container {
        margin-bottom: 0 !important;
        border-bottom: 2px solid #00ff00;
    }

    .ll-avatar-wrapper {
        max-width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .ll-avatar-status {
        font-size: 9px;
        padding: 4px 10px;
    }

    /* Ensure avatar + chat terminal work well together on mobile */
    .ll-avatar-container + .lady-lazarus-terminal {
        margin-top: 0;
        border-top: none;
    }
}
