/* GA4 Slider — matches existing mt-news-slider design */

.ga4-slider {
    overflow: hidden;
    position: relative;
    padding-bottom: 15px;
    background: white;
}

.ga4-slider__title-wrapper {
    padding: 10px;
    background: var(--mt-color-secondary, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ga4-slider__title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 140%;
    margin: 0;
    text-align: center;
    padding: 0 8px;
    color: white;
}

.ga4-slider__live-label {
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    background-color: #FF001D;
    padding: 1px 4px 0;
    color: white;
}

.ga4-slider__nav-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ga4-slider__nav-btn:hover {
    opacity: 1;
}

.ga4-slider__track {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    background: #1a1a2e;
}

.ga4-slider__track::-webkit-scrollbar {
    display: none;
}

/* Card — matches mt-news-card */
.ga4-slider__card {
    flex: 0 0 211px;
    height: auto;
    border-right: 1px solid white;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.ga4-slider__card a {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.ga4-slider__image-wrapper {
    background-color: #F4F4F4;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    height: 106px;
    width: 183px;
    margin: 14px 14px 12px 14px;
    overflow: hidden;
    position: relative;
}

.ga4-slider__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.ga4-slider__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ga4-slider__card-title {
    font-size: 15px;
    margin: 0 14px 10px;
    color: white;
    line-height: 1.3;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ga4-slider__number {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: auto auto 0;
    position: relative;
}

.ga4-slider__number:after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    height: 100%;
    width: 1px;
    background-color: black;
}

/* Breaking news */
.ga4-slider__card--breaking {
    background: #FFE500 !important;
}

.ga4-slider__card--breaking .ga4-slider__card-title {
    color: #000;
}

.ga4-slider__card--breaking .ga4-slider__number {
    background: #FFE500;
    color: #000;
}

/* Sidste nyt */
.ga4-slider__card--sidste-nyt {
    background: #E53E3E !important;
}

.ga4-slider__card--sidste-nyt .ga4-slider__number {
    background: #E53E3E;
}

/* FLIP animation helpers */
.ga4-slider__card--entering {
    opacity: 0;
}

.ga4-slider__card--entering.ga4-slider__card--animate {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Skeleton */
.ga4-slider__skeleton-card {
    flex: 0 0 211px;
    height: auto;
    border-right: 1px solid transparent;
}

.ga4-slider__skeleton-image {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 106px;
    width: 183px;
    margin: 14px 14px 12px 14px;
    animation: ga4-skeleton-pulse 1.5s ease-in-out infinite;
}

.ga4-slider__skeleton-title {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    height: 40px;
    margin: 0 14px 10px;
    animation: ga4-skeleton-pulse 1.5s ease-in-out infinite;
}

.ga4-slider__skeleton-number {
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

@keyframes ga4-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
