/* css/blog_styles.css */

/* Fonts */
@font-face {
    font-family: 'Harlow Solid';
    src: url('../media/harlow-solid.ttf') format('truetype');
}

/* Blog Top Section */
.blog_top {
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0; /* Light mode */
    margin-top: 5vh;
}

body.dark-mode .blog_top {
    background: #1a1a1a; /* Dark mode */
}

.blog_top h1 {
    font-family: 'Harlow Solid', serif;
    font-size: 72px;
}

/* Blog Body Section */
.blog_body {
    height: 70%;
    display: flex;
    padding: 20px;
    background: #fff; /* Light mode */
}
.blog_content {
  	display: block;
}
.blog_image_full {
  max-width: 10vh;
}

body.dark-mode .blog_body {
    background: #1a1a1a; /* Dark mode */
}

/* Blog List (Grid Layout) */
.blog_list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    max-height: 100%;
}

.blog_entry {
    display: flex;
    align-items: center;
    background-color: #f5f5f5; /* Light mode */
    border-radius: 8px;
    padding: 10px;
}

body.dark-mode .blog_entry {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast */
}

.blog_image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
    border: 1px solid #ccc; /* Light mode border */
}

body.dark-mode .blog_image {
    border-color: #00cc00; /* Accent border in dark mode */
}

.blog_entry_content h2 {
    font-family: 'Harlow Solid', serif;
    margin-bottom: 10px;
    color: #000; /* Light mode */
}

body.dark-mode .blog_entry_content h2 {
    color: #fff; /* White text in dark mode */
}
.pagination {
    display: flex;
    margin: 20px 0;
    flex-direction: column;
    align-items: center;
}
.pagination button {
    padding: 10px 20px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 5px;
    max-height: fit-content;
}
.pagination button:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
}
body.dark-mode .pagination button {
    background: #333;
    border-color: #00cc00;
    color: #fff;
}
body.dark-mode .pagination button:disabled {
    background: #555;
}
.pagination a {
    padding: 10px 20px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
    border-radius: 5px;
    max-height: fit-content;
}
.pagination a.current {
    background: #f0f0f0;
    font-weight: bold;
    max-height: fit-content;
}
body.dark-mode .pagination a {
    background: #333;
    border-color: #00cc00;
    color: #fff;
}
body.dark-mode .pagination a.current {
    background: #555;
}
/* Responsive adjustments for smaller screens */
@media screen and (max-width: 720px) {
    .blog_body {
        padding: 10px;
    }

    .blog_list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .blog_entry {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .blog_image {
        margin-right: 0;
        margin-bottom: 10px;
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 360px) {
    .blog_entry {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .blog_image {
        margin-right: 0;
        margin-bottom: 10px;
    }
}