/*
============================================
APERTURE SCIENCE - MODULES SPÉCIALISÉS
Fichier: aperture-modules.css
Auteur: Emile SNYERS
Date: 2025-08-16
Version: 2.0
Licence: Creative Commons BY-NC 4.0

Description: Modules spécialisés pour les fonctionnalités avancées
Console GLaDOS, chambres de test, surveillance, planificateur
============================================
*/

/* === CONSOLE GLADOS === */
.glados-console {
    background: #000;
    border: 2px solid var(--aperture-orange);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.console-header {
    background: var(--aperture-orange);
    color: var(--aperture-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-full);
    background: var(--aperture-danger);
}

.status-dot.active {
    background: var(--aperture-success);
    animation: pulse 2s ease-in-out infinite;
}

.console-controls {
    display: flex;
    gap: var(--spacing-xs);
}

.console-btn {
    width: 20px;
    height: 20px;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.console-btn.minimize { background: #ffc107; }
.console-btn.maximize { background: #28a745; }
.console-btn.close { background: #dc3545; }

.console-output {
    height: 200px;
    padding: var(--spacing-md);
    overflow-y: auto;
    background: #000;
}

.console-input-container {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #111;
    border-top: 1px solid var(--aperture-light-grey);
}

.prompt {
    color: var(--aperture-orange);
    margin-right: var(--spacing-sm);
}

.console-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--aperture-white);
    font-family: 'Courier New', monospace;
}

.console-input:focus {
    outline: none;
}

.glados-text {
    color: var(--aperture-blue);
    font-weight: bold;
}

/* === CHAMBRES DE TEST === */
.chambers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.chamber-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--aperture-light-grey);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.chamber-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--aperture-blue);
}

.chamber-card.danger {
    border-color: var(--aperture-danger);
}

.chamber-card.new {
    border-color: var(--aperture-success);
}

.chamber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.chamber-status {
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: bold;
}

.chamber-status.active {
    background: var(--aperture-success);
    color: var(--aperture-dark);
}

.chamber-status.maintenance {
    background: var(--aperture-warning);
    color: var(--aperture-dark);
}

.chamber-status.danger {
    background: var(--aperture-danger);
    color: var(--aperture-white);
}

.chamber-status.new {
    background: var(--aperture-blue);
    color: var(--aperture-dark);
}

.chamber-preview {
    height: 150px;
    background: var(--aperture-grey);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chamber-canvas, .chamber-svg {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-sm);
}

.chamber-info {
    margin-bottom: var(--spacing-md);
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.difficulty-stars {
    color: var(--aperture-orange);
}

.difficulty-stars.danger {
    color: var(--aperture-danger);
}

.success-rate {
    font-weight: bold;
    color: var(--aperture-success);
}

.success-rate.danger {
    color: var(--aperture-danger);
}

.success-rate.new {
    color: var(--aperture-blue);
}

.chamber-btn {
    width: 100%;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
}

.chamber-btn.restricted {
    background: var(--aperture-danger);
    color: var(--aperture-white);
}

.chamber-btn.new {
    background: var(--aperture-blue);
}

/* === SURVEILLANCE === */
/* Ajout au fichier CSS principal */
.surveillance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.camera-feed {
    background: #1a1a1a;
    border: 2px solid #4ecdc4;
    border-radius: 8px;
    overflow: hidden;
}


.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #2a2a2a;
    border-bottom: 1px solid #4ecdc4;
}

.camera-display {
    height: 200px;
    position: relative;
    background: #000;
    overflow: hidden;
}

.camera-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
}

.camera-viewport.zoomed {
    transform: scale(1.5);
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: #2a2a2a;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #4ecdc4;
    background: #1a1a1a;
    color: #4ecdc4;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #4ecdc4;
    color: #1a1a1a;
    transform: scale(1.1);
}

.control-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.recording-indicator {
    color: var(--aperture-danger);
    animation: pulse 1s ease-in-out infinite;
}

.feed-content {
    height: 250px;
    position: relative;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
}

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

.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
    animation: staticNoise 0.1s linear infinite;
}

.feed-data {
    position: absolute;
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    color: var(--aperture-success);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
}

.timestamp {
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
}


/*
============================================
FIN DU FICHIER: aperture-modules.css
Auteur: Emile SNYERS
Date: 2025-08-16
Version: 2.0

Modules spécialisés pour les fonctionnalités avancées
du framework Aperture Science - Console, chambres, surveillance
============================================
*/
