/* ============================================================================
   MASUGOMI.COM - CSS STYLES
   Art-Deco Broadcast Control Room Interface
   ============================================================================ */

/* ============================================================================
   CUSTOM PROPERTIES & PALETTE
   ============================================================================ */

:root {
    /* Colors */
    --color-bg-deep: #1A1718;
    --color-bg-panel: #242022;
    --color-gold-primary: #C9A84C;
    --color-gold-muted: #8B7A3E;
    --color-text-primary: #E8E0D4;
    --color-text-secondary: #C4BAB0;
    --color-accent-red: #C94C4C;
    --color-duotone-highlight: #D4A56A;

    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-mono: 'Overpass Mono', monospace;

    /* Sizes */
    --broadcast-top-height: 40px;
    --broadcast-bottom-height: 32px;
    --broadcast-side-width: 16px;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg-deep);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(201, 168, 76, 0.03) 2px, transparent 2px);
    background-size: 8px 8px;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-gold-primary);
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-primary);
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-secondary);
}

.zone-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    margin-top: 0.5rem;
}

/* ============================================================================
   BROADCAST FRAME OVERLAY
   ============================================================================ */

.broadcast-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    animation: frameIn 800ms ease-out forwards;
}

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

.broadcast-frame > div {
    pointer-events: auto;
}

/* ============================================================================
   BROADCAST TOP BAR
   ============================================================================ */

.broadcast-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--broadcast-top-height);
    background: var(--color-bg-deep);
    border-bottom: 1px solid var(--color-gold-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-family: var(--font-display);
    z-index: 101;
}

.broadcast-label {
    font-size: clamp(0.6rem, 0.7rem, 1rem);
    font-weight: 900;
    color: var(--color-text-primary);
    letter-spacing: 0.15em;
}

.broadcast-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-accent-red);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent-red);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.broadcast-viewer-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-gold-primary);
    opacity: 0.7;
}

.viewer-label {
    font-weight: 500;
}

/* ============================================================================
   BROADCAST LEFT TICKER
   ============================================================================ */

.broadcast-left-ticker {
    position: fixed;
    top: var(--broadcast-top-height);
    left: 0;
    width: 12px;
    height: calc(100% - var(--broadcast-top-height) - var(--broadcast-bottom-height));
    background: var(--color-bg-panel);
    overflow: hidden;
    z-index: 101;
}

.ticker-content {
    animation: tickerScroll 20s linear infinite;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

@keyframes tickerScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.ticker-item {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-gold-primary);
    opacity: 0.6;
    text-transform: uppercase;
}

/* ============================================================================
   BROADCAST RIGHT METRICS
   ============================================================================ */

.broadcast-right-metrics {
    position: fixed;
    top: var(--broadcast-top-height);
    right: 0;
    width: 16px;
    height: calc(100% - var(--broadcast-top-height) - var(--broadcast-bottom-height));
    background: var(--color-bg-panel);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 4px;
    z-index: 101;
}

.metric-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--color-gold-primary) 0%, var(--color-gold-muted) 100%);
    border: 1px solid var(--color-gold-primary);
    opacity: 0.5;
}

.metric-1 {
    animation: metricBounce1 3s ease-in-out infinite;
}

.metric-2 {
    animation: metricBounce2 4s ease-in-out infinite;
}

.metric-3 {
    animation: metricBounce3 3.5s ease-in-out infinite;
}

.metric-4 {
    animation: metricBounce4 4.5s ease-in-out infinite;
}

@keyframes metricBounce1 {
    0%, 100% { height: 40%; }
    50% { height: 100%; }
}

@keyframes metricBounce2 {
    0%, 100% { height: 60%; }
    50% { height: 30%; }
}

@keyframes metricBounce3 {
    0%, 100% { height: 50%; }
    50% { height: 80%; }
}

@keyframes metricBounce4 {
    0%, 100% { height: 35%; }
    50% { height: 90%; }
}

/* ============================================================================
   BROADCAST BOTTOM CRAWL
   ============================================================================ */

.broadcast-bottom-crawl {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--broadcast-bottom-height);
    background: var(--color-bg-deep);
    border-top: 1px solid var(--color-gold-primary);
    overflow: hidden;
    z-index: 101;
}

.crawl-container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    overflow: hidden;
}

.crawl-text {
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: clamp(0.55rem, 0.65rem, 0.8rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    animation: crawlScroll 120s linear infinite;
}

@keyframes crawlScroll {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ============================================================================
   MAIN CONTENT AREA
   ============================================================================ */

main.main-content {
    margin-top: var(--broadcast-top-height);
    margin-bottom: var(--broadcast-bottom-height);
    margin-left: 12px;
    margin-right: 16px;
    position: relative;
    z-index: 2;
}

/* ============================================================================
   CONTENT ZONES - STRUCTURE & PROGRESSIVE DISCLOSURE
   ============================================================================ */

.content-zone {
    min-height: 100vh;
    background: var(--color-bg-panel);
    border: 1px solid rgba(201, 168, 76, 0.2);
    margin-bottom: 0;
}

.zone-title-bar {
    padding: 60px 40px 40px;
    text-align: center;
    border-bottom: 2px solid var(--color-gold-primary);
    cursor: pointer;
    transition: border-color 300ms ease;
    background: var(--color-bg-deep);
}

.zone-title-bar:hover {
    border-bottom-color: var(--color-gold-primary);
}

.zone-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 8px;
}

.zone-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 600ms ease-out;
}

.content-zone.expanded .zone-content {
    opacity: 1;
}

.content-zone.expanded.zone-1 .zone-content {
    max-height: 200vh;
}

.content-zone.expanded.zone-2 .zone-content {
    max-height: 250vh;
}

.content-zone.expanded.zone-3 .zone-content {
    max-height: 200vh;
}

.content-zone.expanded.zone-4 .zone-content {
    max-height: 100vh;
}

/* ============================================================================
   ZONE 1: TODAY'S GARBAGE (HERO)
   ============================================================================ */

.zone-1-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.zone-ornament {
    width: 100%;
    max-width: 600px;
    height: auto;
    opacity: 0;
    animation: ornamentDraw 1000ms ease-out 200ms forwards;
}

@keyframes ornamentDraw {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 0.8;
        transform: scaleY(1);
    }
}

.zone-ornament-top {
    animation-delay: 400ms;
}

.zone-ornament-bottom {
    animation-delay: 600ms;
}

.headline-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.headline-card {
    background: var(--color-bg-deep);
    border: 2px solid rgba(201, 168, 76, 0.3);
    padding: 30px;
    opacity: 0;
    animation: cardEnter 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.headline-card.card-left {
    animation-delay: 800ms;
    transform: translateY(30px);
}

.headline-card.card-center {
    animation-delay: 1000ms;
    transform: translateY(0);
}

.headline-card.card-right {
    animation-delay: 1200ms;
    transform: translateY(30px);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #D4A56A 0%, #1A1718 100%);
    position: relative;
    margin-bottom: 20px;
    border: 1px solid var(--color-gold-primary);
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 1px,
        rgba(201, 168, 76, 0.05) 1px,
        rgba(201, 168, 76, 0.05) 3px
    );
}

.duotone-cool {
    background: linear-gradient(135deg, #C4BAB0 0%, #1A1718 100%) !important;
}

.card-headline {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.card-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ============================================================================
   ZONE 2: ANATOMY OF REPORTING
   ============================================================================ */

.zone-2-content {
    padding: 60px 40px;
}

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.newspaper-column {
    background: linear-gradient(135deg, rgba(26, 23, 24, 0.8), rgba(36, 32, 34, 0.8));
    border: 2px solid var(--color-gold-primary);
    padding: 20px;
    position: relative;
}

.newspaper-header {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gold-primary);
    letter-spacing: 0.1em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-gold-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.newspaper-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #D4A56A 0%, #1A1718 100%);
    margin-bottom: 15px;
    border: 1px solid rgba(201, 168, 76, 0.5);
    position: relative;
}

.newspaper-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 1px,
        rgba(201, 168, 76, 0.05) 1px,
        rgba(201, 168, 76, 0.05) 3px
    );
}

.newspaper-headline {
    font-size: 1rem;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.newspaper-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.newspaper-grid-lines {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 40px;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 8px,
        rgba(201, 168, 76, 0.15) 8px,
        rgba(201, 168, 76, 0.15) 9px
    );
}

/* ============================================================================
   ZONE 3: MEDIA'S GOLD VEIN
   ============================================================================ */

.zone-3-content {
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.flow-chart {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    position: relative;
}

.flow-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.node-badge {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3));
}

.node-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-gold-primary);
    text-transform: uppercase;
    text-align: center;
}

.flow-connector {
    font-size: 1.8rem;
    color: var(--color-gold-primary);
    opacity: 0.6;
    font-weight: 300;
}

.flow-connector-up {
    transform: rotate(90deg);
}

/* ============================================================================
   ZONE 4: SILENCE
   ============================================================================ */

.zone-4-content {
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.silence-text {
    text-align: center;
    max-width: 600px;
}

.silence-question {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0;
    animation: fadeInExpand 3000ms ease-out forwards;
    letter-spacing: 0.1em;
}

@keyframes fadeInExpand {
    from {
        opacity: 0;
        letter-spacing: 0.1em;
    }
    to {
        opacity: 1;
        letter-spacing: 0.2em;
    }
}

.silence-english {
    font-size: 1.4rem;
    color: var(--color-gold-primary);
    font-family: var(--font-display);
    opacity: 0;
    animation: fadeIn 3500ms ease-out forwards;
}

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

/* ============================================================================
   RESPONSIVE BEHAVIOR
   ============================================================================ */

@media (max-width: 768px) {
    /* Hide side elements */
    .broadcast-left-ticker,
    .broadcast-right-metrics {
        display: none;
    }

    main.main-content {
        margin-left: 0;
        margin-right: 0;
    }

    /* Adjust headline cards */
    .headline-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .headline-card {
        padding: 20px;
    }

    /* Stack newspaper columns */
    .newspaper-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Adjust flow chart */
    .flow-row {
        gap: 10px;
        flex-direction: column;
    }

    .flow-connector {
        transform: rotate(180deg);
    }

    .flow-connector-up {
        transform: rotate(180deg);
    }

    /* Adjust zones */
    .zone-1-content,
    .zone-2-content,
    .zone-3-content,
    .zone-4-content {
        padding: 40px 20px;
    }

    .zone-title-bar {
        padding: 30px 20px 20px;
    }

    /* Adjust broadcast elements */
    .broadcast-label {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }

    .broadcast-viewer-count {
        display: none;
    }
}

@media (max-width: 480px) {
    .zone-ornament {
        display: none;
    }

    .broadcast-label {
        font-size: 0.45rem;
    }

    .broadcast-live-indicator {
        font-size: 0.55rem;
    }

    .zone-1-content,
    .zone-2-content,
    .zone-3-content,
    .zone-4-content {
        padding: 30px 15px;
        gap: 20px;
    }

    .card-image {
        height: 150px;
    }

    .silence-question {
        font-size: 1.4rem;
    }

    .silence-english {
        font-size: 1rem;
    }
}

/* ============================================================================
   PRINT PATTERNS & TEXTURES
   ============================================================================ */

.zone-1 {
    background-image: radial-gradient(circle, rgba(201, 168, 76, 0.02) 1px, transparent 1px);
    background-size: 8px 8px;
}

.zone-2 {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(201, 168, 76, 0.03) 4px,
        rgba(201, 168, 76, 0.03) 5px
    );
}

.zone-3 {
    background: var(--color-bg-panel);
}

.zone-4 {
    background: var(--color-bg-deep);
}
