/**
 * Die Lounge — Seitenspezifisches Stylesheet für die Startseite (/assets/css/home/home.css)
 *
 * Ergänzt die globale /assets/css/core.css um das Editorial-Hero-Spotlight,
 * den filterbaren News-Stream, das Review-Showcase und die Community-Sidebar-Widgets.
 * Unterstützt sowohl Dark Mode (Standard) als auch Light Mode über die CSS-Variablen.
 */

/* ============================================================================
   1. EDITORIAL HERO SPOTLIGHT
   ============================================================================ */
.home-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.home-lead-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #090b0e;
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-md);
    min-height: 490px;
}

.home-lead-media {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 490px;
    padding: 2.25rem;
    color: #ffffff;
}

.home-lead-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease-out), opacity 0.25s ease;
}

.home-lead-card:hover .home-lead-media > img {
    transform: scale(1.03);
}

.home-lead-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9, 11, 14, 0.96) 0%,
        rgba(9, 11, 14, 0.68) 48%,
        rgba(9, 11, 14, 0.15) 100%
    );
}

.home-lead-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.home-lead-content .dl-kicker-meta {
    color: rgba(255, 255, 255, 0.75);
}

.home-lead-title {
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0.55rem 0 0.7rem;
}

.home-lead-deck {
    font-size: 0.975rem;
    line-height: 1.55;
    color: rgba(243, 245, 248, 0.84);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-lead-byline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    color: rgba(243, 245, 248, 0.7);
}
.home-lead-byline strong {
    color: #ffffff;
}

/* Rechte Spalte: Top-Story-Stack */
.home-sublead-stack {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.65rem;
    box-shadow: var(--shadow-sm);
}

.home-sublead-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-hairline);
}

.home-sublead-heading {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.home-sublead-counter {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.home-sublead-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.home-sublead-item:hover,
.home-sublead-item.is-active {
    background: var(--bg-elevated);
    border-left-color: var(--accent);
}

.home-sublead-thumb {
    width: 104px;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: var(--bg-input);
    flex-shrink: 0;
}

.home-sublead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-sublead-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.home-sublead-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-sublead-title a:hover {
    color: var(--accent);
}

.home-sublead-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 1080px) {
    .home-spotlight-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.15rem;
    }
    .home-lead-card,
    .home-lead-media {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .home-spotlight-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: 100%;
    }
    .home-lead-card {
        width: 100%;
        max-width: 100%;
        min-height: 295px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
    }
    .home-lead-media {
        min-height: 295px;
        padding: 1.25rem var(--mobile-gutter, 1rem);
        width: 100%;
    }
    .home-lead-overlay {
        background: linear-gradient(
            to top,
            rgba(9, 11, 14, 0.98) 0%,
            rgba(9, 11, 14, 0.8) 58%,
            rgba(9, 11, 14, 0.25) 100%
        );
    }
    .home-lead-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .home-lead-title {
        font-size: 1.32rem;
        line-height: 1.22;
        margin: 0.4rem 0 0.5rem;
        overflow-wrap: anywhere;
    }
    .home-lead-deck {
        font-size: 0.86rem;
        line-height: 1.48;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
    }
    .home-lead-byline {
        font-size: 0.75rem;
        gap: 0.45rem;
        flex-wrap: wrap;
    }
    .home-sublead-stack {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
        padding: 1rem var(--mobile-gutter, 1rem);
    }
    .home-sublead-item {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.55rem 0.35rem;
        width: 100%;
        min-width: 0;
    }
    .home-sublead-thumb {
        width: 84px;
    }
    .home-sublead-title {
        font-size: 0.84rem;
    }
}

/* ============================================================================
   2. NEWS-STREAM & RESSORT-FILTER
   ============================================================================ */
.home-feed-column {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.home-feed-header {
    flex-wrap: wrap;
}

.home-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}
.home-filter-bar::-webkit-scrollbar {
    display: none;
}

.home-filter-btn {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.home-filter-btn:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.home-filter-btn.is-active {
    background: var(--accent);
    color: #ffffff;
}

.home-article-list {
    display: flex;
    flex-direction: column;
}

.home-article-row {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--border-hairline);
    align-items: start;
    transition: opacity 0.2s ease;
}

.home-article-row:first-child {
    padding-top: 0.25rem;
}

.home-article-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
}

.home-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.home-article-row:hover .home-article-thumb img {
    transform: scale(1.04);
}

.home-article-score {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.home-article-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.home-article-headline {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.home-article-headline a:hover {
    color: var(--accent);
}

.home-article-excerpt {
    font-size: 0.9rem;
    line-height: 1.58;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-article-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.home-article-footer strong {
    color: var(--text-secondary);
}

.home-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.home-comment-count:hover {
    color: var(--accent);
}

.home-feed-more {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .home-feed-column {
        background: var(--bg-surface);
        border-top: 1px solid var(--border-hairline);
        border-bottom: 1px solid var(--border-hairline);
        padding: 1.15rem var(--mobile-gutter, 1rem);
    }

    .home-feed-header {
        margin-bottom: 0.85rem;
        padding-bottom: 0.7rem;
    }

    .home-filter-bar {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
    }

    .home-filter-btn {
        flex-shrink: 0;
        padding: 0.38rem 0.75rem;
        font-size: 0.78rem;
        background: var(--bg-elevated);
        border-color: var(--border-hairline);
    }

    .home-article-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        padding: 1.1rem 0;
        width: 100%;
    }

    .home-article-headline {
        font-size: 1.06rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .home-article-excerpt {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .home-article-footer {
        font-size: 0.74rem;
        gap: 0.35rem 0.45rem;
    }

    .home-feed-more {
        margin-top: 1rem;
    }
}

/* ============================================================================
   3. SIDEBAR WIDGETS (Community, Meistgelesen, Release-Radar)
   ============================================================================ */
.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    min-width: 0;
    width: 100%;
}

@media (max-width: 1080px) {
    .home-sidebar {
        position: static;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .home-sidebar {
        gap: 0.5rem;
    }
}

.home-widget-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-hairline);
}

.home-widget-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-top: 0.15rem;
}

.home-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xs);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-primary);
}

.home-widget-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}

.home-sublabel {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.home-member-strip {
    margin-bottom: 1.15rem;
}

.home-member-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.home-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-member-row:hover {
    border-color: var(--border-subtle);
    background: var(--bg-hover);
}

.home-member-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.home-member-info strong {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-member-info span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.home-member-activity {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

.home-lfg-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.home-lfg-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xs);
}
.home-lfg-item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-primary);
}
.home-lfg-item span {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.home-lfg-slots {
    font-family: var(--font-mono);
    font-size: 0.75rem !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    padding: 0.15rem 0.45rem;
    background: var(--bg-elevated);
    border-radius: 3px;
}

/* Meistgelesen Ranking */
.home-ranking-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.home-ranking-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-hairline);
}
.home-ranking-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.home-ranking-num {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 0.95;
    color: var(--accent);
}

.home-ranking-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.home-ranking-link {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}
.home-ranking-link:hover {
    color: var(--accent);
}

/* Release Radar */
.home-release-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.home-release-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.home-release-date {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    background: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    flex-shrink: 0;
}

.home-release-day {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}
.home-release-month {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.home-release-info {
    display: flex;
    flex-direction: column;
}
.home-release-info strong {
    font-size: 0.875rem;
    color: var(--text-primary);
}
.home-release-info span {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ============================================================================
   4. AKTUELLE TESTS & WERTUNGEN (4-Spalten Showcase)
   ============================================================================ */
.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
}

.home-review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}

.home-review-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.home-review-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-elevated);
    overflow: hidden;
}

.home-review-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}
.home-review-card:hover .home-review-media img {
    transform: scale(1.05);
}

.home-review-score-wrap {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
}

.home-review-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-review-platforms {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.home-review-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 0.5rem;
}
.home-review-title a:hover {
    color: var(--accent);
}

.home-review-verdict {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 0.85rem;
}

.home-review-author {
    padding-top: 0.7rem;
    border-top: 1px solid var(--border-hairline);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.home-review-author strong {
    color: var(--text-secondary);
}

@media (max-width: 1120px) {
    .home-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dl-section:has(.home-reviews-grid) {
        background: var(--bg-surface);
        border-top: 1px solid var(--border-hairline);
        border-bottom: 1px solid var(--border-hairline);
        padding: 1.15rem var(--mobile-gutter, 1rem);
    }
    .home-reviews-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}

/* ============================================================================
   5. VERIFIZIERTER AUTOR-AVATAR, EILMELDUNG-BADGE & EMPTY-STATES
   ============================================================================ */
.home-byline-avatar,
.home-lead-media .home-byline-avatar {
    position: static;
    inset: auto;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
    flex-shrink: 0;
    transform: none !important;
}

.home-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.home-breaking-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.48rem;
    border-radius: 3px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 0.35rem;
}

.home-empty-news {
    padding: 2rem;
    border: 1px dashed var(--border-strong);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-empty-news h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.home-empty-news p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
