/*
 * Flamenet Headlines — Frontend Styles
 * Flamenet aesthetic: dark blue (#003399), red (#CC0000), yellow (#FFCC00)
 */

/* =======================================================
   Scrolling Ticker
   ======================================================= */

.fnn-ticker-wrap {
    display: flex;
    align-items: stretch;
    background: #003399;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    height: 28px;
    overflow: hidden;
    margin: 0 0 8px;
    box-sizing: border-box;
}

/* Red "HEADLINES" badge on the left */
.fnn-ticker-label {
    flex-shrink: 0;
    background: #CC0000;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 0 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    user-select: none;
}

/* Scrolling area */
.fnn-ticker-outer {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* The moving track — holds two copies for seamless loop */
.fnn-ticker-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: fnn-scroll var(--fnn-dur, 40s) linear infinite;
}

/* Pause on hover */
.fnn-ticker-wrap:hover .fnn-ticker-track {
    animation-play-state: paused;
}

/* Each content copy has a right-side gap to separate loops */
.fnn-ticker-content {
    display: inline-block;
    padding: 0 32px 0 12px;
    line-height: 28px;
}

/* Links inside ticker */
.fnn-ticker-content a {
    color: #fff !important;
    text-decoration: none !important;
}

.fnn-ticker-content a:hover {
    color: #FFCC00;
    text-decoration: underline;
}

.fnn-ticker-content span {
    color: #fff;
}

/* Separator glyph */
.fnn-sep {
    color: #FFCC00;
    margin: 0 1px;
}

/* Keyframe: translate one full copy width to the left */
@keyframes fnn-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =======================================================
   Headlines List  ([fnn_headlines] shortcode)
   ======================================================= */

.fnn-headlines-box {
    border: 1px solid #c0c0c0;
    background: #fff;
    margin: 0 0 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.fnn-headlines-header {
    background: #003399;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 5px 10px;
}

.fnn-headlines-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.fnn-headline-item {
    padding: 5px 10px 5px 8px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

.fnn-headline-item:last-child {
    border-bottom: none;
}

.fnn-headline-item::before {
    content: "►";
    color: #CC0000;
    font-size: 9px;
    margin-right: 5px;
    vertical-align: 1px;
}

.fnn-headline-item a {
    color: #0000CC;
    text-decoration: none;
}

.fnn-headline-item a:hover {
    color: #CC0000;
    text-decoration: underline;
}

.fnn-source {
    color: #888;
    font-size: 11px;
    margin-left: 4px;
    font-style: italic;
}

/* =======================================================
   Sidebar Widget
   ======================================================= */

.fnn-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fnn-widget-item {
    padding: 4px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 12px;
    line-height: 1.35;
}

.fnn-widget-item:last-child {
    border-bottom: none;
}

.fnn-widget-item a {
    color: #0000CC;
    text-decoration: none;
}

.fnn-widget-item a:hover {
    color: #CC0000;
    text-decoration: underline;
}

.fnn-widget-item .fnn-source {
    font-size: 10px;
    color: #666666;
}
