/**
Author : Nova | Lysandre PB
Date : 29-11-2025
Last Modified : 02-12-2025
Description : Main CSS File for MiyabiCorp Website
*/

/* --- Layout Principal --- */
.mission-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.mission-header {
    border-left: 5px solid var(--primary-blue);
    padding-left: 20px;
    margin-bottom: 40px;
}

.mission-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--text-white);
}

.mission-meta {
    margin-top: 10px;
    color: var(--ice-blue);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}


/* --- Sidebar --- */
.sidebar-data {
    background: var(--accent-dark);
    border: 1px solid var(--border-subtle);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.data-block { margin-bottom: 30px; }

.data-block h3 {
    color: var(--primary-blue);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 5px;
}

.specs-list { list-style: none; }
.specs-list li { margin-bottom: 10px; display: flex; justify-content: space-between; }
.specs-list span:first-child { color: #888; }

.status-success { color: #4ade80; }
.status-inprogress { color: #fbbf24; }
.status-failed { color: #f87171; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    border: 1px solid var(--ice-blue);
    color: var(--ice-blue);
    padding: 5px 10px;
    font-size: 0.8rem;
    background: rgba(174, 238, 255, 0.05);
}

.actions { display: flex; flex-direction: column; gap: 10px; }

.btn-action {
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-action.primary { background: var(--primary-blue); color: #000; }
.btn-action.primary:hover { background: var(--ice-blue); box-shadow: 0 0 15px var(--primary-blue); }

.btn-action.secondary { border: 1px solid var(--border-subtle); color: #fff; }
.btn-action.secondary:hover { border-color: var(--primary-blue); color: var(--primary-blue); }


/* --- Contenu Principal --- */
.project-hero-img {
    position: relative;
    margin-bottom: 40px;
    border: 1px solid var(--primary-blue);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.project-hero-img img { width: 100%; display: block; }

/* Default Hero Visual (When No Image) */
.default-hero-visual {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.default-hero-visual i {
    font-size: 4rem;
    color: var(--primary-blue);
    filter: drop-shadow(0 0 15px var(--primary-blue));
    animation: float-icon 3s ease-in-out infinite;
}

.visual-text { text-align: center; }

.visual-text span {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.visual-text small {
    color: var(--ice-blue);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    opacity: 0.7;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}


/* Scanline Effect */
.scan-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px var(--primary-blue);
    animation: scan 3s linear infinite;
    opacity: 0.6;
}

@keyframes scan { 0% { top: -10%; } 100% { top: 110%; } }

.content-text h2 {
    color: var(--ice-blue);
    margin: 30px 0 15px 0;
    font-family: 'Orbitron', sans-serif;
}

.content-text p, .content-text ul {
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.content-text ul { padding-left: 20px; }

/* --- Galerie --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: 0.3s;
}

.gallery-item-wrapper:hover {
    border-color: var(--primary-blue);
    transform: scale(1.02);
}

.gallery-item {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: 0.3s;
}

/* Confidential Mode */
.confidential-warning {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
    100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
}

.gallery-item-wrapper.confidential .gallery-item {
    filter: blur(10px) grayscale(100%);
    opacity: 0.5;
}

.gallery-item-wrapper.confidential:hover .gallery-item {
    filter: blur(5px) grayscale(50%);
    opacity: 0.8;
}

.overlay-confidential {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 5px 15px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 10;
}


/* --- Modal (Lightbox) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 200; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.9); 
}

.modal.open {
    display: block;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 20px var(--primary-blue);
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* --- Responsive --- */
@media (max-width: 900px) {
    .mission-grid { grid-template-columns: 1fr; }
    .sidebar-data { position: static; margin-bottom: 40px; }
}