/* ==================================================
   RADIO SAMOS - BREAKING NEWS TICKER
   Clean / compact newsroom version
   ================================================== */


/* ==================================================
   ΚΥΡΙΟ CONTAINER
   ================================================== */

.view.view-break-news.view-display-id-block_1 {
    position: relative;

    width: 100%;
    height: 40px;

    overflow: hidden;

    color: #fff;
    background: linear-gradient(
        90deg,
        #b30000 0%,
        #8f0000 45%,
        #650000 100%
    );

    border-radius: 6px;

    box-shadow: 0 3px 10px rgba(120, 0, 0, 0.18);

    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        sans-serif;
}


/* ==================================================
   BREAKING NEWS LABEL
   ================================================== */

/* ==================================================
   BREAKING NEWS LABEL
   Soft pulse
   ================================================== */

.view.view-break-news.view-display-id-block_1::before {
    content: "BREAKING NEWS";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 150px;

    padding: 0 14px;

    box-sizing: border-box;

    color: #b30000;

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f4f4f4 100%
    );

    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;

    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;

    border-radius: 6px 0 0 6px;

    box-shadow:
        5px 0 12px rgba(80, 0, 0, 0.15),
        0 0 8px rgba(255, 0, 0, 0.16);

    animation: rsBreakingPulse 2.4s ease-in-out infinite;
}


/* Απαλό pulse — όχι έντονο flashing */

@keyframes rsBreakingPulse {

    0%,
    100% {
        color: #b30000;

        background: linear-gradient(
            180deg,
            #ffffff 0%,
            #f4f4f4 100%
        );

        box-shadow:
            5px 0 12px rgba(80, 0, 0, 0.15),
            0 0 6px rgba(255, 0, 0, 0.12);

        text-shadow: none;
    }

    50% {
        color: #e00000;

        background: linear-gradient(
            180deg,
            #fff7f7 0%,
            #f7dddd 100%
        );

        box-shadow:
            5px 0 12px rgba(80, 0, 0, 0.15),
            0 0 12px rgba(255, 0, 0, 0.30);

        text-shadow: 0 0 5px rgba(255, 0, 0, 0.20);
    }
}


/* ==================================================
   ΔΕΞΙ FADE
   ================================================== */

.view.view-break-news.view-display-id-block_1::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    z-index: 10;

    width: 65px;

    pointer-events: none;

    background: linear-gradient(
        to left,
        #650000 0%,
        rgba(101, 0, 0, 0) 100%
    );
}


/* ==================================================
   ΚΥΛΙΟΜΕΝΟ ΠΕΡΙΕΧΟΜΕΝΟ
   ================================================== */

.view.view-break-news.view-display-id-block_1 .view-content {
    display: flex !important;

    flex-direction: row;
    flex-wrap: nowrap !important;

    align-items: center;

    width: max-content !important;
    max-width: none !important;

    height: 100%;

    margin: 0 !important;

    /*
     * Το πρώτο item ξεκινά μετά από το label.
     */
    padding: 0 0 0 165px !important;

    white-space: nowrap;

    animation: rsTickerScroll 85s linear infinite;

    will-change: transform;
}


/* ==================================================
   ΚΑΘΕ ΕΙΔΗΣΗ
   Bootstrap / Views reset
   ================================================== */

.view.view-break-news.view-display-id-block_1 .views-row {
    display: inline-flex !important;

    align-items: center;

    width: auto !important;
    max-width: none !important;
    min-width: max-content;

    height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 auto !important;
}


/* ==================================================
   ΤΙΤΛΟΣ
   ================================================== */

.view.view-break-news.view-display-id-block_1
.views-field-title {
    margin: 0;
    padding: 0;
}

.view.view-break-news.view-display-id-block_1
.views-field-title a {
    display: inline-flex;

    align-items: center;

    height: 40px;

    color: #fff !important;

    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;

    text-decoration: none !important;

    white-space: nowrap;
}

.view.view-break-news.view-display-id-block_1
.views-field-title a:hover {
    color: #fff !important;

    text-decoration: underline !important;
}


/* ==================================================
   ΔΙΑΧΩΡΙΣΤΙΚΟ ΜΕΤΑΞΥ ΕΙΔΗΣΕΩΝ
   ================================================== */

.view.view-break-news.view-display-id-block_1
.views-row::after {
    content: "❯";

    display: inline-block;

    margin: 0 18px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}


/* Δεν χρειάζεται separator μετά την τελευταία είδηση */

.view.view-break-news.view-display-id-block_1
.views-row:last-child::after {
    margin-right: 40px;
}


/* ==================================================
   PAUSE ΣΤΟ HOVER
   ================================================== */

.view.view-break-news.view-display-id-block_1:hover
.view-content {
    animation-play-state: paused;
}


/* ==================================================
   ANIMATION
   ================================================== */

@keyframes rsTickerScroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-85%);
    }
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 767px) {

    .view.view-break-news.view-display-id-block_1 {
        height: 36px;

        border-radius: 5px;
    }


    /* Label */

    .view.view-break-news.view-display-id-block_1::before {
        width: 112px;

        padding: 0 8px;

        font-size: 0.62rem;
        letter-spacing: 0.04em;

        border-radius: 5px 0 0 5px;
    }


    /* Scrolling area */

    .view.view-break-news.view-display-id-block_1
    .view-content {
        padding-left: 122px !important;

        animation-duration: 65s;
    }


    /* Titles */

    .view.view-break-news.view-display-id-block_1
    .views-field-title a {
        height: 36px;

        font-size: 0.75rem;
    }


    /* Separator */

    .view.view-break-news.view-display-id-block_1
    .views-row::after {
        margin: 0 13px;

        font-size: 0.8rem;
    }


    /* Fade */

    .view.view-break-news.view-display-id-block_1::after {
        width: 35px;
    }
}