/* Article Cards - DK Avisen editorial design */

/* Shared card styles */
.sa-card {
    background: var(--sa-bg-card);
    border-radius: var(--sa-radius);
    overflow: hidden;
    transition: transform var(--sa-transition), box-shadow var(--sa-transition);
    position: relative;
    box-shadow: var(--sa-shadow);
}

.sa-card:hover {
    box-shadow: var(--sa-shadow-hover);
    transform: translateY(-2px);
}

.sa-card__image-wrap {
    position: relative;
    overflow: hidden;
}

.sa-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sa-card:hover .sa-card__image-wrap img {
    transform: scale(1.04);
}

.sa-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    z-index: 2;
    border-radius: 3px;
}

.sa-card__badge--category { background: var(--sa-accent); }
.sa-card__badge--breaking { background: var(--sa-breaking); animation: pulse-text 2s infinite; }
.sa-card__badge--live { background: var(--sa-live); }
.sa-card__badge--lige-nu { background: var(--sa-accent); }
.sa-card__badge--eksklusiv { background: var(--sa-eksklusiv); color: var(--sa-primary); }

.sa-card__badge--source {
    position: absolute;
    bottom: 8px;
    right: 8px;
    top: auto;
    left: auto;
    background: rgba(0,0,0,0.65);
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 3px;
}

.sa-card__body { padding: var(--sa-gap); }

.sa-card__category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sa-accent);
    margin-bottom: 6px;
    display: inline-block;
}

.sa-card__title {
    font-family: var(--sa-font-headline);
    font-weight: 400;
    line-height: 1.2;
    color: var(--sa-text);
    margin: 0;
}

.sa-card__title a { color: inherit; }
.sa-card__title a:hover { color: var(--sa-accent); }

.sa-card__excerpt {
    font-size: 14px;
    color: var(--sa-text-secondary);
    line-height: 1.6;
    margin-top: 8px;
}

.sa-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--sa-text-muted);
    margin-top: 12px;
}

.sa-card__meta-divider {
    width: 3px;
    height: 3px;
    background: var(--sa-text-muted);
    display: inline-block;
    border-radius: 50%;
}

/* Card sizes */
.sa-card--hero .sa-card__image-wrap { height: 420px; }
.sa-card--hero .sa-card__title { font-size: 2rem; }
.sa-card--hero .sa-card__body { padding: var(--sa-gap-lg); }
.sa-card--hero .sa-card__excerpt { font-size: 16px; margin-top: 10px; }

.sa-card--large .sa-card__image-wrap { height: 300px; }
.sa-card--large .sa-card__title { font-size: 1.5rem; }

.sa-card--medium .sa-card__image-wrap { height: 200px; }
.sa-card--medium .sa-card__title { font-size: 1.25rem; }

.sa-card--small .sa-card__image-wrap { height: 160px; }
.sa-card--small .sa-card__title { font-size: 1.05rem; }
.sa-card--small .sa-card__body { padding: 12px 14px; }

/* Horizontal card */
.sa-card--horizontal { display: flex; }
.sa-card--horizontal .sa-card__image-wrap { width: 220px; min-height: 140px; flex-shrink: 0; }
.sa-card--horizontal .sa-card__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sa-card--horizontal .sa-card__title { font-size: 1.1rem; }

/* Feed item card */
.sa-card--feed { border-left: none; }
.sa-card--feed .sa-card__source { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--sa-accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.sa-card--feed .sa-card__source-icon { width: 12px; height: 12px; }
.sa-card--feed .sa-card__external-icon { display: inline-block; width: 12px; height: 12px; margin-left: 4px; opacity: 0.5; vertical-align: middle; }

/* Placeholder image */
.sa-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sa-primary-light) 0%, var(--sa-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 40px;
}

/* List style */
.sa-card--list {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sa-border);
    box-shadow: none;
    border-radius: 0;
}
.sa-card--list:hover { box-shadow: none; transform: none; }
.sa-card--list .sa-card__image-wrap { width: 80px; height: 55px; flex-shrink: 0; border-radius: var(--sa-radius); overflow: hidden; }
.sa-card--list .sa-card__body { padding: 0; flex: 1; }
.sa-card--list .sa-card__title { font-size: 0.9rem; }

/* ============================================================
   BLOCK ARTICLES
   ============================================================ */

.sa-block {
    background: var(--sa-bg-card);
    position: relative;
    border-radius: var(--sa-radius);
    overflow: hidden;
    box-shadow: var(--sa-shadow);
    transition: box-shadow var(--sa-transition);
}

.sa-block:hover { box-shadow: var(--sa-shadow-md); }

.sa-block__link { display: block; color: inherit; text-decoration: none; }
.sa-block__link:hover .sa-block__title { color: var(--sa-accent); }
.sa-block__link:hover .sa-block__image img { transform: scale(1.03); }

.sa-block__image { position: relative; overflow: hidden; }
.sa-block__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }

.sa-block__content { padding: 20px 24px; }

.sa-block__meta-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.sa-block__cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--sa-font-ui);
}

.sa-block__badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    color: #fff;
    border-radius: 3px;
}

.sa-block__badge--breaking { background: var(--sa-breaking); animation: pulse-text 2s infinite; }
.sa-block__badge--live { background: var(--sa-live); }
.sa-block__badge--eksklusiv { background: var(--sa-eksklusiv); color: var(--sa-primary); }

.sa-block__title {
    font-family: var(--sa-font-headline);
    font-weight: 400;
    color: var(--sa-text);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    transition: color var(--sa-transition);
}

.sa-block__meta-bottom { margin-top: 12px; font-size: 13px; color: var(--sa-text-muted); }
.sa-block__time { font-size: 12px; color: var(--sa-text-muted); margin-top: 6px; display: block; }
.sa-highlight { display: inline; }

/* Hero block */
.sa-block--hero .sa-block__image { height: 440px; }
.sa-block__title--hero { font-size: 2.8rem; line-height: 1.1; }
.sa-block--hero .sa-block__content { padding: 24px 28px; }

/* Horizontal block */
.sa-block--horizontal .sa-block__link { display: flex; }
.sa-block--horizontal .sa-block__image { width: 40%; min-height: 220px; flex-shrink: 0; }
.sa-block--horizontal .sa-block__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }
.sa-block__title--horizontal { font-size: 2rem; line-height: 1.12; }
.sa-block--img-right .sa-block__link { flex-direction: row-reverse; }

/* Text-only block */
.sa-block--text-only .sa-block__content { padding: 24px 28px; }
.sa-block__title--text { font-size: 1.75rem; line-height: 1.15; }

/* Compact block */
.sa-block--compact .sa-block__link { display: flex; align-items: center; }
.sa-block--compact .sa-block__image { width: 200px; height: 130px; flex-shrink: 0; }
.sa-block--compact .sa-block__content { flex: 1; padding: 14px 18px; }
.sa-block__title--compact { font-size: 1.25rem; line-height: 1.25; }

/* Block grid */
.sa-block-row { display: grid; gap: var(--sa-gap); }
.sa-block-row--2 { grid-template-columns: 1fr 1fr; }
.sa-block-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.sa-block-row .sa-block__image { height: 200px; }
.sa-block-row .sa-block__title { font-size: 1.5rem; line-height: 1.12; }

/* Feed stack */
.sa-feed-stack { display: flex; flex-direction: column; gap: var(--sa-gap); }

/* Section divider */
.sa-block-divider { height: 3px; background: var(--sa-accent); border-radius: 2px; }

/* Dark variant */
.sa-block--dark { background: var(--sa-primary); }
.sa-block--dark .sa-block__title { color: #fff; }
.sa-block--dark .sa-block__cat { color: rgba(255,255,255,0.6); }
.sa-block--dark .sa-block__meta-bottom, .sa-block--dark .sa-block__time { color: rgba(255,255,255,0.4); }
.sa-block--dark .sa-block__link:hover .sa-block__title { color: rgba(255,255,255,0.75); }

/* Per-line headline spans */
.sa-headline-line { display: block; line-height: 1.15; white-space: nowrap; overflow: visible; }


/* ============================================================
   HERO OVERLAY - image background with text on top
   ============================================================ */
.sa-hero-overlay {
    display: block;
    position: relative;
    border-radius: var(--sa-radius-lg);
    overflow: hidden;
    min-height: 480px;
    background: var(--sa-primary);
    color: #fff;
    text-decoration: none;
}

.sa-hero-overlay__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sa-hero-overlay:hover .sa-hero-overlay__img {
    transform: scale(1.03);
}

.sa-hero-overlay__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 22, 40, 0.95) 0%,
        rgba(10, 22, 40, 0.6) 40%,
        rgba(10, 22, 40, 0.1) 70%,
        transparent 100%
    );
    z-index: 1;
}

.sa-hero-overlay__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 32px;
    z-index: 2;
}

.sa-hero-overlay__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.sa-hero-overlay__cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
}

.sa-hero-overlay__badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    background: var(--sa-breaking);
    color: #fff;
    border-radius: 3px;
    animation: pulse-text 2s infinite;
}

.sa-hero-overlay__badge--ek {
    background: var(--sa-eksklusiv);
    color: var(--sa-primary);
    animation: none;
}

.sa-hero-overlay__title {
    font-family: var(--sa-font-headline);
    font-weight: 400;
    font-size: 2.6rem;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sa-hero-overlay__excerpt {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255,255,255,0.75);
    margin: 0 0 12px;
    max-width: 520px;
}

.sa-hero-overlay__bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}


/* ============================================================
   HERO ZONE - hero + side panel
   ============================================================ */
.sa-hero-zone {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--sa-gap);
}

.sa-hero-zone__side {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sa-side-headline {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--sa-border);
    text-decoration: none;
    transition: background var(--sa-transition);
    flex: 1;
    background: var(--sa-bg-card);
    box-shadow: var(--sa-shadow);
}

.sa-hero-zone__side .sa-side-headline:first-child {
    border-radius: var(--sa-radius-lg) var(--sa-radius-lg) 0 0;
}

.sa-hero-zone__side .sa-side-headline:last-child {
    border-radius: 0 0 var(--sa-radius-lg) var(--sa-radius-lg);
    border-bottom: 0;
}

.sa-side-headline:hover {
    background: var(--sa-bg);
}

.sa-side-headline__cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.sa-side-headline__title {
    font-family: var(--sa-font-headline);
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--sa-text);
    margin: 0;
    transition: color var(--sa-transition);
}

.sa-side-headline:hover .sa-side-headline__title {
    color: var(--sa-accent);
}

.sa-side-headline__time {
    font-size: 12px;
    color: var(--sa-text-muted);
    margin-top: auto;
    padding-top: 8px;
}


/* ============================================================
   TRIPLE GRID - 3 equal columns
   ============================================================ */
.sa-triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sa-gap);
}

.sa-triple-grid .sa-block--hero .sa-block__image { height: 180px; }
.sa-triple-grid .sa-block__title--hero { font-size: 1.25rem; line-height: 1.2; }
.sa-triple-grid .sa-block--hero .sa-block__content { padding: 16px 18px; }

.sa-triple-grid--compact .sa-block--hero .sa-block__image { height: 150px; }
.sa-triple-grid--compact .sa-block__title--hero { font-size: 1.1rem; }


/* ============================================================
   ASYMMETRIC LAYOUT - featured left + list right
   ============================================================ */
.sa-asymmetric {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--sa-gap);
    align-items: start;
}

.sa-asymmetric__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sa-asymmetric__list .sa-block--compact {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--sa-border);
}

.sa-asymmetric__list .sa-block--compact:last-child {
    border-bottom: 0;
}


/* ============================================================
   POPULAR STRIP - dark horizontal numbered grid
   ============================================================ */
.sa-popular-strip {
    background: var(--sa-primary);
    border-radius: var(--sa-radius-lg);
    overflow: hidden;
}

.sa-popular-strip__header {
    padding: 18px 24px 0;
    font-family: var(--sa-font-ui);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
}

.sa-popular-strip__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 12px 12px;
}

.sa-popular-strip__item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 12px;
    text-decoration: none;
    border-radius: var(--sa-radius);
    transition: background var(--sa-transition);
}

.sa-popular-strip__item:hover {
    background: rgba(255,255,255,0.06);
}

.sa-popular-strip__num {
    font-family: var(--sa-font-headline);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--sa-accent);
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
}

.sa-popular-strip__title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.35;
    transition: color var(--sa-transition);
}

.sa-popular-strip__item:hover .sa-popular-strip__title {
    color: #fff;
}


/* ============================================================
   FEED SCROLL - horizontal scrollable feed cards
   ============================================================ */
.sa-feed-scroll {
    display: flex;
    gap: var(--sa-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--sa-border) transparent;
}

.sa-feed-scroll::-webkit-scrollbar { height: 6px; }
.sa-feed-scroll::-webkit-scrollbar-track { background: transparent; }
.sa-feed-scroll::-webkit-scrollbar-thumb { background: var(--sa-border); border-radius: 3px; }

.sa-feed-scroll__card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    background: var(--sa-bg-card);
    border-radius: var(--sa-radius);
    overflow: hidden;
    box-shadow: var(--sa-shadow);
    text-decoration: none;
    transition: transform var(--sa-transition), box-shadow var(--sa-transition);
}

.sa-feed-scroll__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sa-shadow-hover);
}

.sa-feed-scroll__img {
    height: 140px;
    overflow: hidden;
}

.sa-feed-scroll__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sa-feed-scroll__card:hover .sa-feed-scroll__img img {
    transform: scale(1.05);
}

.sa-feed-scroll__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sa-primary-light), var(--sa-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 32px;
    font-weight: 800;
}

.sa-feed-scroll__body {
    padding: 14px 16px;
}

.sa-feed-scroll__source {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sa-accent);
    display: block;
    margin-bottom: 4px;
}

.sa-feed-scroll__title {
    font-family: var(--sa-font-headline);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--sa-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sa-feed-scroll__time {
    font-size: 12px;
    color: var(--sa-text-muted);
    display: block;
    margin-top: 8px;
}


/* ============================================================
   DUAL SECTIONS - two category columns side by side
   ============================================================ */
.sa-dual-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sa-gap-lg);
}

.sa-dual-sections__col {
    display: flex;
    flex-direction: column;
    gap: var(--sa-gap);
}

.sa-dual-sections .sa-block--hero .sa-block__image { height: 180px; }
.sa-dual-sections .sa-block__title--hero { font-size: 1.2rem; line-height: 1.2; }
.sa-dual-sections .sa-block--hero .sa-block__content { padding: 14px 16px; }

.sa-dual-sections .sa-block--compact .sa-block__image { width: 120px; height: 80px; }
.sa-dual-sections .sa-block__title--compact { font-size: 1rem; }


/* ============================================================
   WEATHER STRIP - compact inline
   ============================================================ */
.sa-weather-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sa-bg-card);
    border-radius: var(--sa-radius-lg);
    padding: 18px 24px;
    box-shadow: var(--sa-shadow);
    gap: var(--sa-gap-lg);
}

.sa-weather-strip__current {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sa-weather-strip__icon { font-size: 28px; }

.sa-weather-strip__temp {
    font-family: var(--sa-font-headline);
    font-size: 2rem;
    font-weight: 400;
    color: var(--sa-text);
    line-height: 1;
}

.sa-weather-strip__desc {
    font-size: 14px;
    color: var(--sa-text-secondary);
    text-transform: capitalize;
}

.sa-weather-strip__loc {
    font-size: 12px;
    color: var(--sa-text-muted);
    padding-left: 12px;
    border-left: 1px solid var(--sa-border);
}

.sa-weather-strip__forecast {
    display: flex;
    gap: 20px;
}

.sa-weather-strip__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 13px;
}

.sa-weather-strip__day-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sa-text-muted);
}

.sa-weather-strip__day-temp {
    font-weight: 700;
    color: var(--sa-text);
}
