/* css/guides_styles.css */

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

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

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

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

/* Guides Body Section */
.guides_body {
    height: 70%;
    display: flex;
    padding: 20px;
    background: #fff; /* Light mode */
}

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

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

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

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

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

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

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

body.dark-mode .guide_entry_content h2 {
    color: #fff; /* White text in dark mode */
}
.guides_search_container {
    margin: 20px 0;
    position: relative;
}
.guides_search_input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.guides_search_suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
body.dark-mode .guides_search_suggestions {
    background: #333;
    border-color: #00cc00;
    color: #fff;
}
.guides_search_suggestions div {
    padding: 10px;
    cursor: pointer;
}
.guides_search_suggestions div:hover {
    background: #f0f0f0;
}
body.dark-mode .guides_search_suggestions div:hover {
    background: #444;
}
.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) {
    .guides_body {
        padding: 10px;
    }

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

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

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

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

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