@import url('../style.css');


/* -------------------------
    POST STYLES
------------------------- */

.blog-post-card {
    display: flex;
    background-color: var(--low-light-orange);
    overflow: hidden;
    margin: 5rem 0;
    min-height: 25rem;
}

.post-card-image {
    margin: 2rem 0;
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.post-card-image img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}

.post-card-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.post-date {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
    color: var(--green-aso);
    padding-bottom: 1rem;
}

.post-category:hover {
    background-color: #e67e3a;
}

.entry-title {
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 2rem;
    word-break: break-word;
}

.entry-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
    color: var(--dark-oranje-aso);
}

.entry-title a:hover {
    color: #ff914d;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .blog-post-card {
        flex-direction: column;
    }

    .post-card-image {
        flex: none;
        width: 100%;
        height: 17.5rem;
        padding: 1.25rem;
    }

    .post-card-content {
        margin-top: 3.125rem;
        padding: 1.875rem 1.5625rem;
    }
}

@media (max-width: 576px) {
    .blog-post-card {
        margin-bottom: 1.25rem;
    }
    .post-card-image {
        height: 12.5rem;
        padding: 0.9375rem;
    }
    .post-card-content {
        padding: 1.25rem;
    }
    .post-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3125rem;
    }
}

.navigation.pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9375rem;
    border: 0.0625rem solid #ddd;
    border-radius: 0.3125rem;
    text-decoration: none;
    color: #007bff;
}

.page-numbers.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
}

/* High Contrast Mode for Posts */
body.high-contrast .blog-post-card {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    box-shadow: none !important;
}

body.high-contrast .post-card-image img {
    box-shadow: none !important;
    filter: grayscale(100%) brightness(1.5); /* Adjust image for high contrast */
}

body.high-contrast .post-card-content {
    color: #FFF !important;
}

body.high-contrast .post-date {
    color: #BDF24B !important; /* Light green for date */
}

body.high-contrast .post-category {
    background-color: #BDF24B !important;
    color: #000 !important;
}

body.high-contrast .post-category:hover {
    background-color: #FFF !important;
    color: #000 !important;
}

body.high-contrast .entry-title {
    color: #BDF24B !important;
}

body.high-contrast .entry-title a {
    color: #BDF24B !important;
}

body.high-contrast .entry-title a:hover {
    color: #FFF !important;
}

body.high-contrast .post-excerpt {
    color: #FFF !important;
}

body.high-contrast .navigation.pagination .page-numbers {
    border-color: #BDF24B !important;
    color: #BDF24B !important;
    background-color: #000 !important;
}

body.high-contrast .navigation.pagination .page-numbers.current {
    background-color: #BDF24B !important;
    color: #000 !important;
    border-color: #BDF24B !important;
}

body.high-contrast .navigation.pagination .page-numbers:hover:not(.current) {
    background-color: #333 !important;
    color: #BDF24B !important;
}


/* White Text Mode for Posts */
body.white-text-mode .blog-post-card {
    background-color: #111 !important;
    border: 1px solid #333 !important;
    box-shadow: none !important;
}

body.white-text-mode .post-card-image img {
    box-shadow: none !important;
    filter: grayscale(100%); /* Desaturate image for white text mode */
}

body.white-text-mode .post-card-content {
    color: #FFF !important;
}

body.white-text-mode .post-date {
    color: #AAA !important;
}

body.white-text-mode .post-category {
    background-color: #444 !important;
    color: #FFF !important;
}

body.white-text-mode .post-category:hover {
    background-color: #666 !important;
    color: #FFF !important;
}

body.white-text-mode .entry-title {
    color: #FFF !important;
}

body.white-text-mode .entry-title a {
    color: #FFF !important;
}

body.white-text-mode .entry-title a:hover {
    color: #AAA !important;
}

body.white-text-mode .post-excerpt {
    color: #CCC !important;
}

body.white-text-mode .navigation.pagination .page-numbers {
    border-color: #FFF !important;
    color: #FFF !important;
    background-color: #000 !important;
}

body.white-text-mode .navigation.pagination .page-numbers.current {
    background-color: #FFF !important;
    color: #000 !important;
    border-color: #FFF !important;
}

body.white-text-mode .navigation.pagination .page-numbers:hover:not(.current) {
    background-color: #333 !important;
    color: #FFF !important;
}