/* monopole.news - Deep-Sea Research Console */
/* Colors: #5B8A9A, #B0C8CF, #1A1D21, #D4956A, #2A3038, #7EC8D9, #252A30, #D8E8EC */
/* Fonts: Anybody 900, Literata 400/400i, Share Tech Mono 400 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Literata', Georgia, serif;
    font-weight: 400;
    color: #B0C8CF;
    background: #1A1D21;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Marble texture background */
#marble-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 50%, #252A30 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, #2A3038 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, #252A30 0%, transparent 45%),
        radial-gradient(ellipse at 70% 60%, #2A3038 0%, transparent 35%),
        conic-gradient(from 45deg at 30% 40%, #1A1D21, #252A30, #1A1D21, #2A3038, #1A1D21),
        conic-gradient(from 200deg at 70% 70%, #1A1D21, #2A3038, #252A30, #1A1D21, #252A30);
    background-attachment: fixed;
    filter: contrast(1.3) brightness(0.9);
}

/* Sonar canvas overlay */
#sonar-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ======== HERO SECTION ======== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Signal indicator rings */
.signal-indicator {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.signal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 1.5px solid #7EC8D9;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sonarPing 3s ease-out infinite;
}

.signal-ring--delay {
    animation-delay: 1s;
}

.signal-ring--delay2 {
    animation-delay: 2s;
}

@keyframes sonarPing {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
        border-color: #7EC8D9;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
        border-color: #5B8A9A;
    }
}

/* Hero title */
.hero-title {
    font-family: 'Anybody', Impact, sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.02em;
    line-height: 1.0;
    color: #D8E8EC;
    text-transform: none;
    min-height: 1.2em;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.hero-title .letter.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title .letter.dot {
    color: #D4956A;
}

/* Hero subtitle */
.hero-subtitle {
    overflow: hidden;
}

.subtitle-line {
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    letter-spacing: 0.3em;
    color: #5B8A9A;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.subtitle-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero status */
.hero-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.hero-status.visible {
    opacity: 1;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D4956A;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 4px #D4956A; }
    50% { opacity: 1; box-shadow: 0 0 12px #D4956A; }
}

.status-text {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #D4956A;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease 2s;
}

.scroll-indicator.visible {
    opacity: 0.6;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { cy: 12; }
    50% { cy: 28; }
}

/* ======== BULLETIN SECTIONS ======== */
.bulletin {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    z-index: 1;
}

.bulletin-inner {
    position: relative;
    padding: 2.5rem;
    border: 1px solid rgba(91, 138, 154, 0.15);
    background: rgba(26, 29, 33, 0.85);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.bulletin-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bulletin glow edge */
.bulletin-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.bulletin-inner.visible .bulletin-glow {
    animation: bulletinGlow 4s ease-in-out infinite;
}

@keyframes bulletinGlow {
    0%, 100% {
        border-color: rgba(126, 200, 217, 0.05);
        box-shadow: 0 0 15px rgba(126, 200, 217, 0.02);
    }
    50% {
        border-color: rgba(126, 200, 217, 0.2);
        box-shadow: 0 0 30px rgba(126, 200, 217, 0.05);
    }
}

/* Bulletin header */
.bulletin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(91, 138, 154, 0.15);
}

.bulletin-tag {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #7EC8D9;
    text-transform: uppercase;
}

.bulletin-date {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #5B8A9A;
}

/* Bulletin title */
.bulletin-title {
    font-family: 'Anybody', Impact, sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
    line-height: 1.0;
    color: #D8E8EC;
    margin-bottom: 1.5rem;
}

/* Bulletin body */
.bulletin-body {
    font-family: 'Literata', Georgia, serif;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.7;
    color: #B0C8CF;
    margin-bottom: 1.5rem;
}

.mono-highlight {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    color: #D4956A;
    font-size: 0.9em;
    background: rgba(212, 149, 106, 0.08);
    padding: 0.1em 0.35em;
    border-radius: 2px;
}

/* Bulletin meta */
.bulletin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(91, 138, 154, 0.1);
}

.meta-item {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: #5B8A9A;
}

.meta-label {
    color: #3A4249;
    margin-right: 0.4em;
    text-transform: uppercase;
}

/* ======== FOOTER ======== */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem 3rem;
    max-width: 680px;
    margin: 0 auto;
}

.footer-inner {
    border-top: 1px solid rgba(91, 138, 154, 0.15);
    padding-top: 2rem;
}

.footer-circuit {
    margin-bottom: 2rem;
    opacity: 0.6;
}

.circuit-svg {
    width: 100%;
    height: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-station {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.station-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: #5B8A9A;
    text-transform: uppercase;
}

.station-name {
    font-family: 'Anybody', Impact, sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #D8E8EC;
    letter-spacing: -0.02em;
}

.footer-coords {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mono-text {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #5B8A9A;
}

.footer-note {
    margin-top: 0.5rem;
}

.footer-note .mono-text {
    color: #3A4249;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    .bulletin {
        padding: 2rem 1rem;
    }

    .bulletin-inner {
        padding: 1.5rem;
    }

    .bulletin-meta {
        flex-direction: column;
        gap: 0.6rem;
    }

    .hero-inner {
        padding: 0 1rem;
    }
}

/* Hover state for bulletins */
.bulletin-inner:hover {
    border-color: rgba(138, 180, 194, 0.25);
}

.bulletin-inner:hover .bulletin-tag {
    color: #8AB4C2;
}

/* ======== SELECTION STYLE ======== */
::selection {
    background: rgba(126, 200, 217, 0.3);
    color: #D8E8EC;
}
