/* =====================================================
   UNIVERSAL COMBAT DISPLAY — OceanWar
   Newspaper summary + per-battle breakdowns
   Reuses combat-anim-* classes for overlays/buttons/stats
   Adds ucd-* classes for newspaper-specific styling
   ===================================================== */

/* ─── Container override ─── */
.ucd-container {
    width: 900px;
}

/* ═══════════════════════════════════════════════════
   NEWSPAPER SUMMARY
   ═══════════════════════════════════════════════════ */

.ucd-newspaper {
    font-family: Georgia, 'Times New Roman', serif;
}

/* ─── Masthead ─── */
.ucd-news-masthead {
    text-align: center;
    padding: 16px 24px 12px;
    border-bottom: 3px double #5c4a2a;
    background: linear-gradient(180deg, #1a1608 0%, #12100a 100%);
    border-radius: 4px 4px 0 0;
}
.ucd-news-stars {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: #7a6a4a;
    margin-bottom: 4px;
}
.ucd-news-title {
    font-size: 28px;
    font-weight: bold;
    color: #e8d8a8;
    letter-spacing: 4px;
    font-variant: small-caps;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    border-bottom: 2px solid #5c4a2a;
    border-top: 2px solid #5c4a2a;
    padding: 6px 0;
    margin: 0 20px;
}
.ucd-news-dateline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: #7a6a4a;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 6px;
    font-family: Georgia, 'Times New Roman', serif;
}

/* ─── Headline + subhead ─── */
.ucd-news-headline {
    font-size: 22px;
    font-weight: bold;
    color: #f0e0b0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    text-align: center;
    padding: 16px 24px 6px;
}
.ucd-news-subhead {
    font-size: 13px;
    color: #c0a870;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
    padding: 0 24px 12px;
}
.ucd-news-divider {
    border-top: 2px solid #5c4a2a;
    margin: 0 24px;
}

/* ─── Narrative paragraph ─── */
.ucd-news-narrative {
    padding: 16px 32px 14px;
    font-size: 13px;
    line-height: 1.8;
    color: #d0c090;
    text-align: justify;
    letter-spacing: 0.15px;
    font-family: Georgia, 'Times New Roman', serif;
    position: relative;
}
.ucd-news-narrative::before {
    content: '\201C';
    position: absolute;
    top: 6px;
    left: 16px;
    font-size: 48px;
    color: #5c4a2a;
    font-family: Georgia, serif;
    line-height: 1;
}
.ucd-news-byline {
    display: block;
    font-size: 9px;
    color: #7a6a4a;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 8px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}
.ucd-news-narrative .ucd-drop-cap {
    float: left;
    font-size: 42px;
    line-height: 0.8;
    padding: 4px 6px 0 0;
    color: #e8d8a8;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: bold;
}

/* ─── Totals bar ─── */
.ucd-news-totals {
    display: flex;
    gap: 0;
    padding: 12px 24px;
}
.ucd-news-total {
    flex: 1;
    text-align: center;
    border-right: 1px solid #3a2a10;
}
.ucd-news-total:last-child { border-right: none; }
.ucd-news-total-val {
    display: block;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}
.ucd-news-total-val.dealt { color: #4caf50; }
.ucd-news-total-val.received { color: #ff5252; }
.ucd-news-total-val.neutral { color: #c0b080; }
.ucd-news-total-lbl {
    display: block;
    font-size: 9px;
    color: #7a6a4a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* ─── Article groups ─── */
.ucd-news-group {
    padding: 10px 24px;
    border-bottom: 1px solid #3a2a10;
}
.ucd-news-group:last-child { border-bottom: none; }
.ucd-news-group-header {
    font-size: 12px;
    font-weight: 700;
    color: #e8d8a8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dotted #5a4a2a;
}

/* ─── Individual battle item ─── */
.ucd-news-item {
    padding: 6px 0;
    border-bottom: 1px dotted #2a2010;
}
.ucd-news-item:last-child { border-bottom: none; }
.ucd-news-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ucd-news-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #d0c090;
}
.ucd-news-vs {
    font-size: 10px;
    color: #7a6a4a;
    font-style: italic;
}
.ucd-news-item-detail {
    font-size: 10px;
    color: #8a7a5a;
    margin-top: 2px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* ─── Outcome badges ─── */
.ucd-outcome {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: auto;
    flex-shrink: 0;
}
.ucd-outcome.ucd-win {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}
.ucd-outcome.ucd-loss {
    background: rgba(255, 23, 68, 0.15);
    color: #ff5252;
    border: 1px solid rgba(255, 23, 68, 0.3);
}
.ucd-outcome.ucd-draw {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
    .ucd-container { max-width: 98vw; }
    .ucd-news-totals { flex-wrap: wrap; }
    .ucd-news-total { min-width: 45%; }
    .ucd-news-headline { font-size: 16px; }
    .ucd-news-title { font-size: 20px; }
}
