/* BDM ULTIMATE CYBER-TERMINAL CSS
   Features: Neon-Glow, Responsive Grid, Highlight-Champion, WP-Title-Kill
*/

/* 1. WP-SEITENTITEL ENTFERNEN */
.page-template-default .wp-block-post-title, 
.entry-title,
.post-title {
    display: none !important;
}

:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --terminal-bg: #0a0a0b;
    --card-bg: rgba(20, 20, 22, 0.95);
}

/* 2. BASIS-CONTAINER */
.bdm-terminal, .bdm-list-container {
    background: var(--terminal-bg);
    color: #e0e0e0;
    font-family: 'Segoe UI', 'Courier New', monospace;
    padding: 30px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    overflow: visible; /* Wichtig für das überstehende Label */
    border-radius: 4px;
}

/* Scanline Effekt */
.bdm-scanline {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

/* 3. TITEL & HEADLINES */
.bdm-title {
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    font-size: clamp(28px, 6vw, 48px);
    margin: 10px 0 20px 0;
    text-shadow: 3px 3px 0px var(--neon-pink);
    line-height: 1.1;
    text-align: center;
}

.bdm-headline {
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--neon-pink);
    padding-bottom: 10px;
    margin: 60px 0 30px 0;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 4. HIGHLIGHT: AMTIERENDER BASTARD */
.bdm-highlight-zone {
    margin: 60px 0 60px 0;
    position: relative;
    padding: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-cyan));
    background-size: 200% 100%;
    animation: bdm-border-flow 3s linear infinite;
    border-radius: 4px;
}

@keyframes bdm-border-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.bdm-tag {
    position: absolute;
    top: -22px;
    left: 15px;
    background: var(--neon-pink);
    color: #fff;
    padding: 6px 20px;
    font-weight: 900;
    font-size: clamp(10px, 3vw, 14px);
    z-index: 30;
    white-space: nowrap;
    box-shadow: 4px 4px 0px #000;
    border: 1px solid #fff;
    text-transform: uppercase;
}

.bdm-hero-card {
    background: #000;
    padding: 45px 30px 30px 30px;
}

.bdm-hero-name {
    font-size: clamp(35px, 8vw, 75px) !important;
    color: #fff;
    margin: 10px 0 25px 0;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--neon-cyan);
}

.bdm-hero-crime {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    background: rgba(255, 0, 255, 0.08);
    padding: 25px;
    border-left: 5px solid var(--neon-pink);
    margin: 20px 0;
    font-style: italic;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.bdm-hero-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
}

.bdm-footer-item {
    font-size: 10px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* 5. ARCHIV-LISTE & KARTEN */
.bdm-entry-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid var(--neon-pink);
    transition: transform 0.2s ease;
}

.bdm-entry-card:hover {
    transform: translateX(5px);
    border-left-color: var(--neon-cyan);
}

.bdm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.bdm-card-header h3 {
    margin: 0;
    font-size: 28px;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.bdm-date-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bdm-date-label {
    background: var(--neon-cyan);
    color: #000;
    font-weight: bold;
    padding: 2px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.bdm-date-sub {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
}

.bdm-crime-box {
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #eee;
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 2px;
}

.bdm-meta {
    font-size: 10px;
    text-transform: uppercase;
    color: #555;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 10px;
}

/* 6. FORMULAR STYLING */
.bdm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bdm-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.bdm-field label {
    font-size: 11px;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bdm-field input, .bdm-field textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.bdm-field input:focus, .bdm-field textarea:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
    outline: none;
}

.bdm-submit-btn {
    width: 100%;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 20px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.bdm-submit-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 30px var(--neon-cyan);
}

/* Zensur-Effekt */
.bdm-censored {
    background: #555;
    color: transparent !important;
    padding: 0 5px;
    text-shadow: none;
    position: relative;
    cursor: help;
}

.bdm-censored::after {
    content: "[REDACTED]";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #fff;
    font-size: 14px;
    text-align: center;
    background: #000;
}

.bdm-encrypted {
    font-family: 'Courier New', Courier, monospace;
    color: #444;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Fix für das Header-Tag im Formular */
.bdm-terminal-header {
    background: var(--neon-cyan);
    color: #000;
    padding: 4px 15px;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
}

/* AUDIO TERMINAL PANEL */
.bdm-audio-panel {
    margin-top: 25px;
    padding: 12px;
    border-top: 1px solid rgba(0,243,255,0.2);
    border-bottom: 1px solid rgba(0,243,255,0.2);    
    background: rgba(0,0,0,0.6);
}

/* Kleine Statusmeldung */
.bdm-terminal-stream {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    opacity: 0.7;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Player Controls */
.bdm-audio-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Button Style passend zum Terminal */
#music-toggle {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s;
}

#music-toggle:hover {
    background: var(--neon-cyan);
    color: black;
}

#volume {
    flex: 1;
    accent-color: var(--neon-cyan);
}

/* Controls sind zuerst versteckt */
#audio-controls {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

/* Aktiv = sichtbar */
#audio-controls.active {
    max-height: 120px;
    opacity: 1;
    margin-top: 12px;
}

/* Streaming Header klickbar */
.bdm-terminal-stream {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s;
}

.bdm-terminal-stream:hover {
    opacity: 1;
}

/* Volume Gruppe */
.bdm-volume-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.bdm-volume-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    opacity: 0.8;
}

textarea[name="schandtat"] {
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
    max-width: 100%;
}

/* 7. RESPONSIVE MOBILE FIXES */
@media (max-width: 768px) {
    .bdm-terminal, .bdm-list-container {
        padding: 15px;
        margin: 10px;
    }
    .bdm-hero-card {
        padding: 35px 15px 20px 15px;
    }
    .bdm-card-header {
        flex-direction: column;
    }
    .bdm-date-group {
        align-items: flex-start;
        margin-top: 10px;
    }
    .bdm-hero-name {
        font-size: 32px !important;
    }
}
