/* 
 * Zusätzliche Styles für Tag-Sektionen
 * Diese Styles passen die Darstellung der Tag-Sektionen auf der Hauptseite an
 */

/* Hauptcontainer für alle Tag-Sektionen */
.gh-tag-sections {
    margin-bottom: 0px;
    max-width: var(--container-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 64px;
}

/* Einzelne Tag-Sektion */
.gh-tag-section {
    margin-bottom: 40px;
}

/* Container-Titel mit "Alle anzeigen" Link */
.gh-tag-section .gh-container-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-border);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: calc(var(--grid-gap)/2);
    padding-bottom: 16px;
    text-transform: uppercase;
    grid-column: 1 / -1;
    color: var(--ghost-accent-color);
}

/* Link zum Anzeigen aller Artikel */
.gh-tag-section-link {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gh-tag-section-link svg {
    height: 16px;
    width: 16px;
}

/* Feed für die Tag-Sektionen - zwei Spalten */
.gh-tag-section .gh-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

/* Wrapper für den gesamten Tag-Bereich, entsprechend gh-container-inner */
.gh-tag-section-inner {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    column-gap: var(--grid-gap);
}

/* Content-Bereich für den Tag-Feed */
.gh-tag-section-content {
    grid-column: 3 / span 12;
}

/* Für bessere Anpassung an das bestehende Theme */
.gh-tag-section .gh-feed .gh-card-title {
    font-size: calc(1.9rem * var(--factor, 1));
    font-weight: 725;
    letter-spacing: -0.014em;
    line-height: 1.3;
}

/* Meldung wenn keine Beiträge gefunden wurden */
.gh-tag-section-empty {
    color: var(--color-secondary-text);
    font-size: 1.5rem;
    padding: 20px 0;
    grid-column: 1 / -1;
}

/* Responsive Anpassungen */
@media (max-width: 1199px) {
    .gh-tag-section-inner {
        display: block;
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .gh-tag-section .gh-feed {
        grid-template-columns: 1fr;
    }
    
    .gh-tag-sections {
        padding-left: max(4vmin, 20px);
        padding-right: max(4vmin, 20px);
    }
}

/* Spezifische Anpassungen für den List-Style */
.gh-tag-section .gh-feed.is-list {
    display: flex;
    flex-direction: column;
}

/* Konsistenz mit dem bestehenden Theme */
.gh-tag-section .gh-feed .gh-card:before {
    background-color: var(--color-border);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: calc(var(--grid-gap)/-2);
    width: 100%;
}

/* Grid-Style Anpassungen, entsprechend gh-container.is-grid */
.gh-tag-section .gh-feed.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    row-gap: calc(var(--grid-gap) * 1.5);
    overflow: hidden;
}

.gh-tag-section .gh-feed.is-grid .gh-card::before {
    position: absolute;
    top: calc(var(--grid-gap) / -2);
    right: calc(var(--grid-gap) / -2);
    left: calc(var(--grid-gap) / -2);
    content: "";
    height: 1px;
    background-color: var(--color-border);
}

.gh-tag-section .gh-feed.is-grid .gh-card::after {
    position: absolute;
    top: 0;
    left: calc(var(--grid-gap) / -2);
    content: "";
    width: 1px;
    height: 100%;
    background-color: var(--color-border);
}

/* Erstes Element sollte keinen Border haben */
.gh-tag-section .gh-feed .gh-card:first-child:before {
    display: none;
}
