/* =========================================================================
 * 🦾 AI BOTS DIRECTORY CYBERPUNK CSS (`aibotsdirectory.css`)
 * ========================================================================= */

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

body {
    background: #030308;
    font-family: 'Courier New', Consolas, monospace;
    color: #00FF66;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 🌌 HOOFDVENSTER: Transparantie verhoogd naar 0.75 zodat de AI-bots er prachtig doorheen schijnen */
#directory-wrapper {
    max-width: 1000px;
    width: 95vw;
    margin: 40px auto;
    background: rgba(5, 5, 12, 0.75) !important; /* Gecorrigeerd naar doorschijnend cyber-zwart */
    border: 2px solid #FF0055;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.2);
    padding: 30px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px); /* Geeft een super cool 'frosted glass' Matrix-effect aan de bots */
}

header { text-align: center; margin-bottom: 40px; }
.glitch-title {
    font-size: 28px;
    font-weight: bold;
    color: #00FFFF;
    text-shadow: 0 0 10px #00FFFF;
    position: relative;
}
.glitch-title::before, .glitch-title::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent;
}
.glitch-title::before { color: #FF0055; text-shadow: -2px 0 #FF0055; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim 5s infinite linear alternate-reverse; }
.glitch-title::after { color: #00FF66; text-shadow: 2px 0 #00FF66; clip: rect(85px, 450px, 140px, 0); animation: glitch-anim2 5s infinite linear alternate-reverse; }

.matrix-sub { color: #FFFF00; font-size: 13px; margin-top: 8px; }

/* 🖼️ AFBEELDING ABSOLUUT GECENTREERD EN RESPONSIVE MET GLOW EFFECT */
.media-container {
    width: 100%;
    max-width: 280px; 
    margin: 0 auto 35px !important; /* Forceert de container exact naar het midden */
    position: relative;
    border: 2px solid #00FFFF;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    display: block; 
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.centered-art {
    width: 100%;
    height: auto;
    display: block !important;
    margin: 0 auto !important; /* Forceert de afbeelding zelf ook naar het absolute midden */
    object-fit: cover;
    filter: grayscale(20%) brightness(95%);
    transition: transform 0.5s ease;
}

/* 💥 DE INTERACTIEVE HOVERGLOED */
.media-container:hover {
    border-color: #FF0055;
    transform: scale(1.03);
    box-shadow: 0 0 25px #00FFFF, 0 0 15px #FF0055, inset 0 0 15px rgba(0, 255, 255, 0.5);
}

.media-container:hover .centered-art {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(110%);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.info-card {
    background: rgba(10, 10, 25, 0.6); /* Ook hier de infokaarten iets transparanter gemaakt */
    border: 1px solid #FF0055;
    padding: 20px;
    border-radius: 4px;
}
.info-card h2 { font-size: 16px; color: #FF0055; margin-bottom: 12px; border-bottom: 1px dashed #FF0055; padding-bottom: 5px; }
.info-card p { font-size: 14px; color: #ffffff; line-height: 1.6; margin-bottom: 10px; }

.puzzle-box {
    background: rgba(0, 0, 0, 0.7); border: 1px solid #00FFFF; padding: 20px; text-align: center; margin-bottom: 30px;
}
.puzzle-box h2 { font-size: 15px; color: #00FFFF; margin-bottom: 10px; }
.puzzle-box p { color: #fff; font-size: 13px; }
.binary-code {
    background: #080815; color: #FFFF00; padding: 15px; font-weight: bold; margin: 15px 0; font-size: 13px; letter-spacing: 1px; word-break: break-all;
}
.hint { color: #888 !important; font-size: 11px !important; }

.nav-control-panel { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.nav-cyber-btn {
    height: 45px; padding: 0 20px; font-family: inherit; font-weight: bold; font-size: 13px; border: none; cursor: pointer; text-transform: uppercase; transition: all 0.3s;
}
.nav-cyber-btn.back { background: transparent; border: 1px solid #00FFFF; color: #00FFFF; }
.nav-cyber-btn.back:hover { background: #00FFFF; color: #000; box-shadow: 0 0 15px #00FFFF; }
.nav-cyber-btn.hub { background: #FF0055; color: #fff; }
.nav-cyber-btn.hub:hover { background: #00FF66; color: #000; box-shadow: 0 0 15px #00FF66; }

/* 🦾 DE AI BACKGROUND LAYER */
#robot-stream-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; overflow: hidden; opacity: 0.25; } /* Opacity verhoogd van 0.15 naar 0.25 voor betere zichtbaarheid */
.floating-bot { position: absolute; font-size: 24px; animation: floatUp 8s linear infinite; }

@keyframes floatUp {
    0% { transform: translateY(105vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}
@keyframes glitch-anim { 0% { clip: rect(31px, 9999px, 94px, 0); } 50% { clip: rect(80px, 9999px, 5px, 0); } 100% { clip: rect(12px, 9999px, 85px, 0); } }
@keyframes glitch-anim2 { 0% { clip: rect(70px, 9999px, 120px, 0); } 50% { clip: rect(15px, 9999px, 55px, 0); } 100% { clip: rect(95px, 9999px, 33px, 0); } }

@media (max-width: 768px) {
    #directory-wrapper { padding: 15px; margin: 15px auto; }
    .glitch-title { font-size: 20px; }
    .info-grid { grid-template-columns: 1fr; }
    .media-container { max-width: 220px; }
    .nav-control-panel { flex-direction: column; width: 100%; }
    .nav-cyber-btn { width: 100%; text-align: center; }
}

/* Keep the original floating robot background, but respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .floating-bot, .glitch-title::before, .glitch-title::after { animation: none !important; }
  .media-container, .centered-art { transition: none; }
}
