/* ============================================
   ROLLUP.REPORT - PIXEL-ART BLOCKCHAIN NEWS
   Chrome-Metallic Palette + Press Start 2P
   ============================================ */

/* === COLOR PALETTE === */
:root {
    --deep-chrome: #1A1A24;
    --steel-shadow: #2A2A38;
    --polished-silver: #C0C0D0;
    --chrome-highlight: #E8E8F0;
    --gunmetal: #7B7B8E;
    --circuit-blue: #4A9EDB;
    --pixel-green: #45E89D;
    --alert-pink: #FF6B7D;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--deep-chrome);
    color: var(--polished-silver);
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle, #3A3A4A 1px, transparent 1px);
    background-size: 8px 8px;
    background-attachment: fixed;
    background-color: var(--deep-chrome);
}

/* === BOOT SCREEN === */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: 'Press Start 2P', cursive;
}

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

.boot-text {
    color: var(--polished-silver);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 24px;
    min-height: 32px;
}

.boot-progress {
    width: 320px;
    height: 4px;
    background-color: var(--steel-shadow);
    border: 2px solid var(--polished-silver);
}

.boot-progress-bar {
    height: 100%;
    background-color: var(--pixel-green);
    width: 0%;
    transition: width 0.05s linear;
}

.boot-screen.hidden {
    display: none;
}

/* === MAIN CONTENT === */
.main-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
    opacity: 1;
    animation: fadeIn 0.3s ease-in;
}

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

/* === DATA TICKER === */
.data-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background-color: var(--steel-shadow);
    border-bottom: 2px solid var(--polished-silver);
    overflow: hidden;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--polished-silver);
    z-index: 100;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
    padding-left: 100%;
}

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

.ticker-item {
    margin: 0 8px;
    letter-spacing: 1px;
}

.ticker-divider {
    margin: 0 4px;
    color: var(--circuit-blue);
}

/* === MASTHEAD === */
.masthead {
    margin-top: 48px;
    margin-bottom: 32px;
    text-align: center;
    padding: 24px 0;
    border-top: 4px solid var(--polished-silver);
    border-bottom: 4px solid var(--polished-silver);
}

.masthead-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: var(--chrome-highlight);
    letter-spacing: 2px;
    margin-bottom: 12px;
    animation: masterheadDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes masterheadDrop {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.masthead-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--polished-silver);
    letter-spacing: 1px;
}

.masthead-date,
.masthead-edition {
    text-align: center;
}

/* === ARTICLE SECTIONS === */
.article-section {
    margin-bottom: 48px;
}

.article-frame {
    border: 4px solid var(--polished-silver);
    padding: 16px;
    background-color: var(--steel-shadow);
    position: relative;
    animation: frameDrawIn 0.6s steps(20, end) forwards;
}

@keyframes frameDrawIn {
    0% {
        border-color: transparent;
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        border-color: var(--polished-silver);
        opacity: 1;
    }
}

/* Corner decorations */
.article-frame::before,
.article-frame::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--polished-silver);
}

.article-frame::before {
    top: -4px;
    left: -4px;
}

.article-frame::after {
    top: -4px;
    right: -4px;
}

/* === ARTICLE HEADLINE === */
.article-headline {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--chrome-highlight);
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.4;
    word-break: break-word;
}

.article-headline {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

/* Character animation for headlines */
.article-headline::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

/* === ARTICLE BODY === */
.article-body {
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--polished-silver);
}

.article-body p {
    margin-bottom: 12px;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-highlight {
    color: var(--pixel-green);
    font-weight: 700;
    padding: 8px;
    background-color: rgba(69, 232, 157, 0.1);
    border-left: 4px solid var(--pixel-green);
}

/* === DATA DISPLAY === */
.data-display {
    font-family: 'Victor Mono', monospace;
    font-size: 14px;
    color: var(--circuit-blue);
    margin-top: 12px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted var(--gunmetal);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    color: var(--polished-silver);
}

.data-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.data-value.positive {
    color: var(--pixel-green);
}

.data-value.alert {
    color: var(--alert-pink);
    font-weight: 700;
}

/* === PIXEL VIGNETTES === */
.vignette-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 48px 0;
    gap: 12px;
}

.pixel-vignette {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    width: 256px;
    height: 256px;
    border: 2px solid var(--gunmetal);
    background-color: rgba(42, 42, 56, 0.5);
}

.vignette-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--gunmetal);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* === FOOTER === */
.footer {
    margin-top: 64px;
    padding: 24px;
    border-top: 4px solid var(--polished-silver);
    text-align: center;
}

.footer-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--gunmetal);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-text:last-child {
    margin-bottom: 0;
}

.footer-meta {
    font-family: 'Victor Mono', monospace;
    font-size: 12px;
    color: var(--gunmetal);
    margin-top: 12px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 640px) {
    .main-content {
        padding: 0 12px;
    }
    
    .masthead-title {
        font-size: 24px;
    }
    
    .masthead-meta {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .article-headline {
        font-size: 12px;
    }
    
    .article-body {
        font-size: 14px;
    }
    
    .pixel-vignette {
        width: 192px;
        height: 192px;
    }
    
    .data-ticker {
        height: 28px;
    }
    
    .boot-text {
        font-size: 12px;
    }
    
    .boot-progress {
        width: 240px;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STYLES === */
@media print {
    .boot-screen,
    .data-ticker {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .article-frame {
        border-color: black;
    }
}
