/* ── Bulletin Bar ─────────────────────────────────────────── style-10-bulletin.css */

/* Bar container */
.bulletin-bar {
    width: 100%;
    border-bottom: 1px solid #2d3548;
    font-size: 0.78rem;
    z-index: 100;
    position: relative;
}

/* ── Ticker row ──────────────────────────────────────────────────────────── */
.bulletin-ticker-row {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #0f3460;
    height: 36px;
    overflow: hidden;
    gap: 8px;
}

/* Category tag (left of ticker) */
.bulletin-category-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.bulletin-category-tag--release {
    background: #e8734a;
    color: #fff;
}
.bulletin-category-tag--fleet {
    background: #8a5a00;
    color: #ffc04d;
}

/* Scrolling text */
.bulletin-ticker-text {
    flex: 1;
    min-width: 0;          /* BUG-030: prevent flex item from expanding to text width;
                              without this, white-space:nowrap causes the span to grow
                              beyond its allocated flex space, pushing the ▾/▲ chevron
                              button off its correct position and making it appear
                              visually adjacent to the scrolling text ("word-wrap▲"). */
    white-space: nowrap;
    overflow: hidden;
    color: #e0e0e0;
    animation: bulletin-scroll 40s linear infinite;
}

@keyframes bulletin-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* +N more badge */
.bulletin-more-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #1a4a7a;
    border: 1px solid #2a6aaa;
    color: #7eb8f7;
    font-size: 10px;
    padding: 2px 9px;
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}
.bulletin-more-btn:hover {
    background: #2a6aaa;
    color: #fff;
}
.bulletin-more-count  { font-size: 10px; }
.bulletin-more-chevron { font-size: 10px; }

/* Dismiss button */
.bulletin-dismiss-btn {
    background: none;
    border: none;
    color: #8892a4;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
    padding: 0 4px;
}
.bulletin-dismiss-btn:hover { color: #e8734a; }

/* ── History panel ───────────────────────────────────────────────────────── */
.bulletin-panel {
    background: #0d1f35;
    border-bottom: 2px solid #1a4a7a;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Individual panel rows */
.bulletin-panel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: #162447;
    border-radius: 4px;
    border-left: 3px solid transparent;
}
.bulletin-panel-row--dimmed {
    opacity: 0.65;
    background: #151a24;
    border-left-color: #444;
}

/* Row tag (same shape as ticker tag but smaller) */
.bulletin-row-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.bulletin-row-tag--release {
    background: #e8734a;
    color: #fff;
}
.bulletin-row-tag--fleet {
    background: #8a5a00;
    color: #ffc04d;
}

/* Row message */
.bulletin-row-msg {
    flex: 1;
    color: #c5cad6;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Row age label */
.bulletin-row-age {
    color: #556070;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Row dismiss × */
.bulletin-row-dismiss {
    color: #556070;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 4px;
    line-height: 1;
}
.bulletin-row-dismiss:hover { color: #e8734a; }

/* BUG-033: Separate panel from ticker bar — creates a clear visual break so the
   "live" age label on the fleet row does not bleed into the ticker area above */
body[data-theme="dark"]  .bulletin-panel { border-top: 1px solid rgba(255,255,255,0.15); }
body[data-theme="light"] .bulletin-panel { border-top: 1px solid rgba(0,0,0,0.12); }

/* BUG-034: fleet row is a link to /fleet-status */
.bulletin-panel-row--fleet-link {
    cursor: pointer;
    text-decoration: none !important;
    display: flex;          /* restore flex layout that html.Div had */
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: #162447;
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: background 0.15s;
}
.bulletin-panel-row--fleet-link:hover {
    background: #1e2f5a;
    border-left-color: #ffc04d;
}
body[data-theme="light"] .bulletin-panel-row--fleet-link {
    background: #f0f2f7;
}
body[data-theme="light"] .bulletin-panel-row--fleet-link:hover {
    background: #e0e4f0;
    border-left-color: #8a5a00;
}

/* ── Light theme overrides ───────────────────────────────────────────────── */
body[data-theme="light"] .bulletin-bar         { border-color: #dde1eb; }
body[data-theme="light"] .bulletin-ticker-row  { background: #e8eaf0; }
body[data-theme="light"] .bulletin-ticker-text { color: #1a1f2e; }
body[data-theme="light"] .bulletin-more-btn    { background: #d0d7e8; border-color: #aab5cf; color: #2a4a8a; }
body[data-theme="light"] .bulletin-more-btn:hover { background: #aab5cf; color: #fff; }
body[data-theme="light"] .bulletin-dismiss-btn { color: #8892a4; }
body[data-theme="light"] .bulletin-panel       { background: #e4e7f0; border-color: #aab5cf; }
body[data-theme="light"] .bulletin-panel-row   { background: #f0f2f7; }
body[data-theme="light"] .bulletin-panel-row--dimmed { background: #e8eaf0; }
body[data-theme="light"] .bulletin-row-msg     { color: #1a1f2e; }
body[data-theme="light"] .bulletin-row-age     { color: #8892a4; }
body[data-theme="light"] .bulletin-row-dismiss { color: #8892a4; }
