﻿h1 {
    text-align: center;
    font-weight: 300;
    margin: 75px 0 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Empty‑state wrapper ----------------------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    border-radius: 1rem; /* 16px */
    background: #f8f9fa; /* subtle grey‑blue */
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    text-align: center;
    color: #6c757d; /* muted text */
}

    /* --- Illustration -------------------------------------------------- */
    .empty-state svg {
        width: 4rem; /* 64px */
        height: 4rem;
        margin-bottom: 1rem;
        fill: #adb5bd; /* light grey */
    }

    /* --- Headline & copy ---------------------------------------------- */
    .empty-state h2 {
        margin: 0 0 .5rem 0;
        font-size: 1.5rem; /* 24px */
        font-weight: 600;
        color: #343a40; /* dark grey */
    }

    .empty-state p {
        margin: 0 0 1.5rem 0;
        max-width: 28rem; /* 448px */
    }

    /* --- Action button ------------------------------------------------- */
    .empty-state .btn {
        display: inline-block;
        padding: .5rem 1rem;
        border-radius: .5rem; /* 8px */

        background-color: #0d6efd; /* bootstrap primary */
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        transition: background-color .2s ease;
    }

        .empty-state .btn:hover {
            background-color: #0b5ed7; /* darker on hover */
        }

/* Wrapping card ----------------------------------------------------*/
.all-posts {
    background: var(--secondary-bg-color);
    color: var(--secondary-font-color);
    border-radius: 1rem; /* 16px – softer */
    box-shadow: 0 4px 12px rgba(0,0,0,.04); /* larger, softer shadow */
    padding: 2rem; /* 32px breathing space */
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* space between header & list */
}

    /* Header -----------------------------------------------------------*/
    .all-posts h3 {
        margin: 0;
        font-size: 1.375rem; /* 22px */
        font-weight: 600;
        color: #343a40; /* darker for header */
        border-bottom: 1px solid rgba(0,0,0,.06);
        padding-bottom: .75rem; /* 12px */
    }

    /* List reset + layout ---------------------------------------------*/
    .all-posts ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: .75rem; /* 12px between items */
    }

    /* Item card --------------------------------------------------------*/
    .all-posts li {
        display: flex;
        align-items: flex-start;
        gap: 1rem; /* 16px between title & excerpt */
        padding: .75rem 0; /* 12px vertical rhythm */
        border-bottom: 1px solid rgba(0,0,0,.06);
    }

        .all-posts li:last-child {
            border-bottom: none;
        }

    /* Title link -------------------------------------------------------*/
    .all-posts a {
        color: var(--secondary-link-color);
        font-weight: 600;
        text-decoration: none;
        flex-shrink: 0; /* keeps title & excerpt separated */
        transition: color .15s ease;
    }

        .all-posts a:hover {
            color: #0b5ed7;
        }

    /* Excerpt ----------------------------------------------------------*/
    .all-posts .excerpt {
        font-size: .9375rem; /* 15px */
        line-height: 1.5;
        color: var(--secondary-font-color);
    }

/* Card header + utility links -------------------------------------*/
.card-header {
    color: var(--secondary-font-color);
}

.return-link {
    color: var(--secondary-link-color);
}

/* Card wrapper */
/* Card wrapper */
.tag-card {
    background: var(--secondary-bg-color, #f8f9fa);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom:40px
}

    /* Heading */
    .tag-card h4 {
        margin: 0;
        font-size: 1.125rem; /* 18px */
        font-weight: 600;
        color: #343a40;
    }

/* Tag list */
.tag-cloud {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem; /* 8px between pills */
}

    .tag-cloud li {
        margin: 0;
    }

    /* Tag pill */
    .tag-cloud a {
        display: inline-block;
        padding: .35rem .75rem; /* 6x12 */
        font-size: .8125rem; /* 13px */
        line-height: 1.25;
        background: #e9ecef;
        color: var(--secondary-link-color, #0d6efd);
        border-radius: 9999px;
        text-decoration: none;
        transition: background-color .15s ease, color .15s ease;
    }

        .tag-cloud a:hover {
            background: var(--secondary-link-color, #0d6efd);
            color: #fff;
        }

/* Responsive tweaks ------------------------------------------------*/
@media (max-width: 600px) {
    .all-posts li {
        flex-direction: column;
        gap: .5rem; /* smaller gap on mobile */
    }

    .all-posts a {
        font-size: 1rem;
    }

    .all-posts .excerpt {
        margin-left: 0;
    }
}
