/* AOT Tactical Case Study Theme */

:root {
    --aot-black: #050505;
    --aot-darker: #0a0a0a;
    --aot-gray: #1a1a1a;
    --aot-light-gray: #808080;
    --aot-white: #f0f0f0;
    --aot-gold: #b39147;
    --aot-crimson: #8a1e20;
    --aot-purple: #86188e;
    /* Armin color from screenshot */

    --hud-font: 'Iceland', monospace, sans-serif;
}

/* Base Overrides for AOT Theme */
body.aot-theme {
    background-color: var(--aot-black);
    color: var(--aot-white);
    font-family: var(--sans-font);
}

.bg-black {
    background-color: var(--aot-black);
}

.bg-darker {
    background-color: var(--aot-darker);
}

.text-white {
    color: var(--aot-white) !important;
}

.text-gold {
    color: var(--aot-gold) !important;
}

.text-gray {
    color: var(--aot-light-gray) !important;
}

.text-light {
    color: #d0d0d0;
}

/* Grid Overlay */
.hud-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* Typography */
.case-headline,
.hud-title {
    font-family: var(--hud-font);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.case-headline {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--aot-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.case-subtitle {
    font-family: var(--hud-font);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--aot-white);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.section-title.hud-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.case-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(240, 240, 240, 0.7);
    font-weight: 300;
}

.mb-small {
    margin-bottom: 1.5rem;
}

.mt-small {
    margin-top: 1.5rem;
}

.mt-large {
    margin-top: 4rem;
}

/* HUD Accents & Backgrounds */
.hud-line {
    width: 60px;
    height: 2px;
    background-color: var(--aot-white);
    margin-bottom: 2rem;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.kanji-background {
    position: absolute;
    top: 10%;
    left: 45%;
    font-size: 40vw;
    font-family: "MS Gothic", sans-serif;
    color: var(--aot-purple);
    opacity: 0.08;
    z-index: 0;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
}

.kanji-side-accent {
    position: absolute;
    top: -10%;
    right: -5%;
    font-size: 30vw;
    font-family: "MS Gothic", sans-serif;
    color: var(--aot-gold);
    opacity: 0.05;
    z-index: 0;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
}

.hud-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hud-top-right {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
}

.hud-bottom-left {
    width: 800px;
    height: 800px;
    bottom: -200px;
    left: -300px;
    border-style: dashed;
    opacity: 0.3;
}

.hud-overlay-circle {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    border-color: var(--aot-gold);
    opacity: 0.2;
    z-index: -1;
}

.tech-box-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border-right: 2px solid var(--aot-white);
    border-bottom: 2px solid var(--aot-white);
    opacity: 0.3;
    pointer-events: none;
}

.hud-target-bracket {
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--aot-white);
    border-left: 2px solid var(--aot-white);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hud-directional-arrows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    font-family: var(--hud-font);
    font-size: 1.5rem;
    color: var(--aot-white);
}

.hud-directional-arrows span {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.hud-directional-arrows span:hover {
    opacity: 1;
}

.hud-bracket-wrap {
    position: relative;
    padding: 3rem 0;
    display: inline-block;
}

.hud-bracket-wrap::before,
.hud-bracket-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--aot-gold);
    opacity: 0.3;
}

.hud-bracket-wrap::before {
    top: 0;
}

.hud-bracket-wrap::after {
    bottom: 0;
}

/* Layout Structures */
.case-hero {
    min-height: 100vh;
    padding-top: 6rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.case-hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.case-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.case-main-mockup {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sections */
.case-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 2;
}

.narrow-container {
    max-width: 800px;
    margin: 0 auto;
}

.center-text {
    text-align: center;
}

.relative-container {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

/* Grids */
.grid-2-col {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.reverse-layout {
    flex-direction: column-reverse;
}

.text-block {
    flex: 1;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.visual-block {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* Details Panel */
.summary-details.aot-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    padding-top: 2rem;
    padding-left: 0;
    width: 100%;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-family: var(--hud-font);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--aot-light-gray);
}

.detail-value {
    font-family: var(--hud-font);
    font-size: 1.8rem;
    color: var(--aot-white);
    letter-spacing: 0.05em;
}

/* Lists */
.aot-list {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.aot-list li {
    font-family: var(--hud-font);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 0;
    letter-spacing: 0.05em;
}

/* Dark UI Frames */
.mockup-frame.dark-frame {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

.ui-screen {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-screen {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Adjustments */
.footer.hud-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-small {
    font-family: var(--hud-font);
    font-size: 0.8rem;
    color: var(--aot-crimson);
    letter-spacing: 0.1em;
    margin-left: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
    .case-headline {
        font-size: 4.5rem;
        margin-top: -0.25rem;
    }

    .section-title.hud-title {
        font-size: 2.75rem;
    }

    .case-section {
        padding: 6rem 3rem;
    }

    .hud-bracket-wrap::before,
    .hud-bracket-wrap::after {
        width: 80px;
    }

    .detail-value {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .case-headline {
        font-size: 6rem;
        line-height: 1;
        margin-top: -0.5rem;
    }

    .case-subtitle {
        font-size: 1.5rem;
        letter-spacing: 0.2em;
        margin-bottom: 2rem;
    }

    .section-title.hud-title {
        font-size: 3.5rem;
    }

    .case-body {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .hud-bracket-wrap::before,
    .hud-bracket-wrap::after {
        width: 100px;
    }

    .case-hero {
        padding-top: 10rem;
    }

    .case-hero-content {
        display: grid;
        grid-template-columns: 1fr 1.3fr;
        gap: 4rem;
    }

    .case-description {
        max-width: 90%;
        transform: translateY(-4%);
    }

    .case-section {
        padding: 8rem 4rem;
    }

    .grid-2-col {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 6rem;
    }

    .align-center {
        flex-direction: row;
        justify-content: space-between;
        gap: 6rem;
    }

    .reverse-layout {
        flex-direction: row-reverse;
    }

    .text-block {
        max-width: 500px;
    }

    .visual-block {
        flex: 1.2;
    }

    .summary-details.aot-details {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        padding-left: 3rem;
        padding-top: 0;
        width: auto;
    }

    .detail-label {
        font-size: 1rem;
    }

    .detail-value {
        font-size: 1.8rem;
    }

    .aot-list li {
        font-size: 1.25rem;
    }
}