
/* =========================================
   AKARI//01
   Akari Labs - Experimental Unit 01
   Build 0.0.1
   ========================================= */

/* BRAND COLOURS */

:root {
    --charcoal: #1C1F24;
    --sage: #8FAEA1;
    --off-white: #FAFAF7;
    --deep-charcoal: #111419;
    --violet: #9980C9;
    --alert-red: #E34234;
    --border: #38443F;
    --muted: #92999F;
}

/* GLOBAL SETTINGS */

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

[hidden] {
    display: none !important;
}

body {
    background: var(--charcoal);
    color: var(--off-white);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* TYPOGRAPHY */

.wordmark {
    font-family: "Courier New", monospace;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: -2px;
}

.wordmark span {
    color: var(--sage);
}

.system-label,
.module-label {
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--sage);
}

/* BOOT SEQUENCE */

#boot-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--deep-charcoal);
}

#boot-screen .wordmark {
    font-size: 64px;
    margin: 25px 0 10px;
}

#boot-screen p {
    font-family: "Courier New", monospace;
    color: var(--sage);
    letter-spacing: 4px;
    font-size: 12px;
    text-align: center;
}

#boot-log {
    width: 100%;
    max-width: 500px;
    min-height: 180px;
    margin-top: 40px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    line-height: 2.2;
    color: var(--muted);
}

.boot-entry {
    display: flex;
    justify-content: space-between;
}

.boot-entry span {
    color: var(--sage);
}

.progress-track {
    width: 100%;
    max-width: 500px;
    height: 8px;
    background: var(--charcoal);
    border: 1px solid var(--border);
    overflow: hidden;
}

#boot-progress {
    width: 0%;
    height: 100%;
    background: var(--sage);
    transition: width 0.4s ease;
}

#boot-status {
    margin-top: 20px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--sage);
    text-align: center;
}

/* MAIN DASHBOARD */

#dashboard {
    max-width: 1200px;
    margin: auto;
    padding: 28px;
    animation: fade-in 0.8s ease;
}

.system-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.system-status {
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: var(--sage);
    letter-spacing: 1px;
}

/* ENVIRONMENT MODULE */

.environment {
    position: relative;
    height: 260px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--border);
    background-color: var(--deep-charcoal);
    background-image:
        linear-gradient(rgba(143, 174, 161, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 174, 161, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.environment-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 2;
    letter-spacing: 3px;
    color: var(--violet);
}

/* CLOCK */

.time-panel {
    padding: 25px 0;
}

#clock {
    font-family: "Courier New", monospace;
    font-size: 84px;
    font-weight: bold;
    letter-spacing: -5px;
    line-height: 1;
}

#date {
    margin-top: 10px;
    color: var(--sage);
    font-family: "Courier New", monospace;
    font-size: 13px;
    letter-spacing: 2px;
}

/* DASHBOARD MODULES */

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.module {
    background: var(--deep-charcoal);
    border: 1px solid var(--border);
    border-left: 3px solid var(--sage);
    padding: 22px;
    min-height: 135px;
}

.module h2 {
    margin: 15px 0 8px;
    font-size: 22px;
    font-weight: normal;
}

.module p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* FOOTER */

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-family: "Courier New", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--sage);
}

footer div:last-child {
    color: var(--violet);
}

/* ANIMATIONS */

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* SMALLER SCREENS */

@media (max-width: 600px) {

    #dashboard {
        padding: 18px;
    }

    .wordmark {
        font-size: 28px;
    }

    #boot-screen .wordmark {
        font-size: 48px;
    }

    .system-status {
        font-size: 9px;
    }

    #clock {
        font-size: 64px;
    }

    .environment {
        height: 200px;
    }

    .module {
        padding: 15px;
    }

    .module h2 {
        font-size: 18px;
    }

    footer {
        font-size: 8px;
    }
}

/* LANDSCAPE DISPLAY */

@media (orientation: landscape) and (min-width: 800px) {

    .environment {
        height: 220px;
    }

    .module-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================
   SECTOR 01 // WORLD MODULE
   ========================================= */

   .environment {
    height: 320px;
    background-image: url("assets/sector-01-master.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.environment .system-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(17, 20, 25, 0.8);
    padding: 10px 14px;
    z-index: 2;
}

.environment-message {
    display: none;
}

@media (orientation: landscape) {
    .environment {
        height: 300px;
    }
}

/* =========================================
   AMBIENT MODE
   Build 0.0.3
   ========================================= */

   .environment {
    cursor: pointer;
}

#ambient-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow: hidden;
    background-color: var(--deep-charcoal);
    background-image: url("assets/sector-01-master.png");
    background-size: cover;
    background-position: center;
    cursor: pointer;
    font-family: "Courier New", monospace;
    animation: fade-in 1.2s ease;
}

.ambient-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(17, 20, 25, 0.55),
        transparent 30%,
        transparent 45%,
        rgba(17, 20, 25, 0.8)
    );
    pointer-events: none;
}

.ambient-header {
    position: absolute;
    top: 35px;
    left: 35px;
    right: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--sage);
    font-size: 13px;
    letter-spacing: 2px;
}

.ambient-header div:first-child {
    font-size: 24px;
    font-weight: bold;
    color: var(--off-white);
}

.ambient-time {
    position: absolute;
    left: 40px;
    bottom: 100px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

#ambient-clock {
    font-size: clamp(80px, 13vw, 160px);
    font-weight: bold;
    letter-spacing: -6px;
    line-height: 1;
    color: var(--off-white);
}

#ambient-date {
    margin-top: 15px;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--sage);
}

.ambient-footer {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--sage);
}

.ambient-hint {
    opacity: 0.6;
}

@media (max-width: 600px) {

    .ambient-header {
        left: 20px;
        right: 20px;
        font-size: 10px;
    }

    .ambient-time {
        left: 20px;
    }

    .ambient-footer {
        left: 20px;
        right: 20px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    #ambient-date {
        font-size: 11px;
    }
}

/* =========================================
   PRIORITY INTERRUPTION PROTOCOL
   Build 0.0.4
   ========================================= */

   #alert-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: radial-gradient(
        ellipse at center,
        #351215,
        #14090B 75%
    );
    color: #F04D4D;
    font-family: "Courier New", monospace;
    overflow: hidden;
}

#alert-screen[hidden] {
    display: none !important;
}

.alert-hazard {
    position: absolute;
    left: 0;
    right: 0;
    height: 25px;
    background: repeating-linear-gradient(
        -45deg,
        #D83C3C,
        #D83C3C 20px,
        #180C0E 20px,
        #180C0E 40px
    );
}

.alert-hazard-top {
    top: 0;
}

.alert-hazard-bottom {
    bottom: 0;
}

.alert-content {
    position: absolute;
    inset: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.alert-brand {
    font-size: 16px;
    letter-spacing: 6px;
}

.alert-warning {
    font-size: clamp(48px, 12vw, 140px);
    font-weight: bold;
    letter-spacing: 8px;
    line-height: 1;
    margin: 20px 0;
    animation: warning-pulse 3s ease-in-out infinite;
}

.alert-protocol {
    width: 100%;
    max-width: 750px;
    padding: 15px 0;
    border-top: 2px solid #D83C3C;
    border-bottom: 2px solid #D83C3C;
    font-size: clamp(14px, 2.5vw, 24px);
    letter-spacing: 4px;
}

.alert-category {
    margin-top: 35px;
    font-size: 13px;
    letter-spacing: 3px;
}

#alert-message {
    color: #FAFAF7;
    font-size: clamp(24px, 4vw, 42px);
    margin: 20px 0;
}

#alert-details {
    font-size: 12px;
    letter-spacing: 2px;
}

.alert-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 35px;
}

.alert-actions button {
    padding: 18px 25px;
    min-width: 180px;
    border: 2px solid #D83C3C;
    font-family: "Courier New", monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}

#alert-confirm {
    background: #D83C3C;
    color: #FAFAF7;
}

#alert-snooze {
    background: transparent;
    color: #F04D4D;
}

@keyframes warning-pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 25px #D83C3C;
    }

    50% {
        opacity: 0.75;
        text-shadow: 0 0 5px #D83C3C;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alert-warning {
        animation: none;
    }
}
