/* monopole.city - Dark-mode Neon City Blueprint */
/* Colors: #8098B0, #60B8D0, #E04040, #142030, #0C1424, #1A3050, #40F0E0, #C8D8E8 */
/* Fonts: DM Serif Display, Inter, IBM Plex Mono */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0C1424;
    font-family: 'Inter', sans-serif;
}

/* Opening Blueprint Grid */
#opening-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #0C1424;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s ease 2s;
}

#opening-grid.done {
    opacity: 0;
}

#opening-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(96, 184, 208, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 184, 208, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridDraw 1.5s ease forwards;
}

@keyframes gridDraw {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Horizontal Scroll Container */
#city-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100vh;
    scrollbar-width: none;
}

#city-scroll::-webkit-scrollbar {
    display: none;
}

/* District Panels */
.district {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: grid;
    grid-template-rows: 35% 2px 1fr 1fr;
    background: #0C1424;
    background-image:
        linear-gradient(rgba(96, 184, 208, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 184, 208, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
}

/* Skyline */
.skyline {
    position: relative;
    grid-row: 1;
    width: 100%;
    height: 100%;
}

.building {
    position: absolute;
    bottom: 0;
    background: #142030;
    border: 1px solid rgba(96, 184, 208, 0.15);
    border-bottom: none;
}

.building::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 2px;
    height: 2px;
    background: rgba(64, 240, 224, 0.3);
    box-shadow:
        8px 0 0 rgba(64, 240, 224, 0.2),
        0 12px 0 rgba(64, 240, 224, 0.25),
        8px 12px 0 rgba(64, 240, 224, 0.15),
        0 24px 0 rgba(64, 240, 224, 0.2),
        8px 24px 0 rgba(64, 240, 224, 0.3);
}

/* Street Level */
.street-level {
    grid-row: 2;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60B8D0, transparent);
    box-shadow: 0 0 10px rgba(96, 184, 208, 0.3);
}

/* District Content */
.district-content {
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sky-layer {
    grid-row: 3;
}

.underground-layer {
    grid-row: 4;
    opacity: 0.7;
    position: relative;
}

/* Typography */
.district-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.02em;
    color: #C8D8E8;
    margin-bottom: 1rem;
}

#district-origin .district-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
}

#district-origin .district-subtitle {
    text-align: center;
}

.district-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #8098B0;
    letter-spacing: 0.05em;
}

.district-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.75;
    font-weight: 400;
    color: #8098B0;
    max-width: 520px;
}

.blueprint-annotation {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #60B8D0;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Field Lines */
.field-line {
    position: absolute;
    background: rgba(64, 240, 224, 0.15);
}

.field-line.horizontal {
    width: 60%;
    height: 1px;
    top: 50%;
    left: 20%;
}

.field-line.diagonal {
    width: 40%;
    height: 1px;
    top: 30%;
    left: 30%;
    transform: rotate(25deg);
}

/* Detector Icon */
.detector-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #60B8D0;
    border-radius: 50%;
    margin-top: 1rem;
    position: relative;
    animation: detectorPulse 3s ease-in-out infinite;
}

.detector-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #40F0E0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes detectorPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(96, 184, 208, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(96, 184, 208, 0); }
}

/* Monopole Signal */
.monopole-signal {
    width: 100%;
    height: 30px;
    margin-top: 1rem;
    position: relative;
    border-bottom: 1px solid rgba(96, 184, 208, 0.2);
}

.signal-blip {
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E04040;
    box-shadow: 0 0 10px #E04040, 0 0 20px rgba(224, 64, 64, 0.5);
    animation: blipGlow 2s ease-in-out infinite;
}

@keyframes blipGlow {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Watercolor Spills */
.watercolor-spill {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.08;
    pointer-events: none;
}

.spill-1 {
    width: 300px;
    height: 300px;
    background: #60B8D0;
    bottom: 10%;
    right: 10%;
}

.spill-2 {
    width: 250px;
    height: 250px;
    background: #40F0E0;
    top: 20%;
    left: 60%;
}

.spill-3 {
    width: 280px;
    height: 280px;
    background: #E04040;
    bottom: 15%;
    left: 15%;
}

.spill-4 {
    width: 320px;
    height: 320px;
    background: #60B8D0;
    top: 15%;
    right: 20%;
}

/* Navigation Indicator */
#nav-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 50;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1A3050;
    border: 1px solid #60B8D0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-dot.active {
    background: #60B8D0;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .district-content {
        padding: 1.5rem 2rem;
    }

    .district-body {
        max-width: 100%;
    }
}
