/* css/list_all_styles.css */

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

/* Body Styling */
body {
    font-family: Roboto, Arial, sans-serif; /* Body text font */
    margin: 0;
}

body.light-mode {
    background: #f0f0f0; /* Light background for light mode */
    color: #333; /* Dark text for light mode */
}

body.dark-mode {
    background: #1a1a1a; /* Dark background */
    color: #fff; /* White text */
}

/* List All Top Section */
.list_all_top {
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.light-mode .list_all_top {
    background: #f0f0f0; /* Light background for light mode */
}

.dark-mode .list_all_top {
    background: #1a1a1a; /* Dark background (from original) */
}

.list_all_top h1 {
    font-family: 'Harlow Solid', serif; /* Gaming-inspired font */
    font-size: 72px;
}

/* List All Body Section */
.list_all_body {
    height: 70%;
    display: flex;
    padding: 20px;
}

.light-mode .list_all_body {
    background: #f0f0f0; /* Light background for light mode */
}

.dark-mode .list_all_body {
    background: #1a1a1a; /* Dark background (from original) */
}

/* Alphabet Navigation */
.alphabet-nav {
    width: 10%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    position: fixed;
    top: 20%;
    left: 10px;
    height: 70%;
    overflow-y: auto;
}

.light-mode .alphabet-nav {
    background: #e0e0e0; /* Light gray for light mode */
}

.dark-mode .alphabet-nav {
    background: #2a2a2a; /* Slightly lighter dark for contrast (from original) */
}

.alphabet-button {
    padding: 12px 20px; /* Touch-friendly */
    font-size: 16px; /* Touch-friendly */
    min-width: 100px; /* Touch-friendly */
    cursor: pointer;
    border-radius: 3px;
    text-align: center;
}

.light-mode .alphabet-button {
    background: #fff; /* White background for light mode */
    color: #333; /* Dark text for light mode */
    border: 1px solid #ccc; /* Gray border for light mode */
}

.light-mode .alphabet-button:hover,
.light-mode .alphabet-button.active {
    background: #007bff; /* Blue for light mode */
    color: #fff; /* White text for contrast */
}

.dark-mode .alphabet-button {
    background: #333; /* Dark background (from original) */
    color: #fff; /* White text (from original) */
    border: 1px solid #00cc00; /* Accent border (from original) */
}

.dark-mode .alphabet-button:hover,
.dark-mode .alphabet-button.active {
    background: #00cc00; /* Accent color on hover (from original) */
    color: #1a1a1a; /* Dark text for contrast (from original) */
}

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

/* Game Entry (re-added for list_all.php) */
.game_entry {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 10px;
}

.light-mode .game_entry {
    background-color: #e0e0e0; /* Light gray for light mode */
}

.dark-mode .game_entry {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast (from original) */
}

.game_entry img,
.game_entry .game_icon {
    object-fit: cover;
}

@media screen and (min-width: 361px) {
    .game_entry img,
    .game_entry .game_icon {
        margin-right: 20px;
        width: 100px;
        height: 100px; /* From original */
    }
}

@media screen and (max-width: 720px) {
    .game_entry {
        flex-direction: column;
        height: auto;
        text-align: center; /* From original */
    }

    .game_entry img,
    .game_entry .game_icon {
        margin-right: 0;
        margin-bottom: 10px;
        width: 120px;
        height: 120px; /* From original */
    }
}

/* Game Entry Content (re-added for list_all.php) */
.game_entry_content h2 {
    font-family: 'Harlow Solid', serif; /* Gaming-inspired font */
    margin-bottom: 10px;
}

.game_entry_content h2[data-letter] {
    display: block;
}

@media screen and (min-width: 361px) {
    .game_entry_content h2 {
        font-size: 1.2em; /* Adjusted for consistency */
    }
}

@media screen and (max-width: 720px) {
    .game_entry_content h2 {
        font-size: 1em; /* Adjusted for mobile */
    }
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 5px;
}

.light-mode .pagination a {
    background: #007bff; /* Blue for light mode */
    color: #fff; /* White text for contrast */
}

.light-mode .pagination a:hover {
    background: #0056b3; /* Darker blue on hover */
}

.dark-mode .pagination a {
    background: #00cc00; /* Accent color (from original) */
    color: #1a1a1a; /* Dark text for contrast (from original) */
}

.dark-mode .pagination a:hover {
    background: #009900; /* Darker accent on hover (from original) */
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 720px) {
    .list_all_body {
        padding: 10px;
        flex-direction: column;
    }

    .alphabet-nav {
        width: 100%;
        position: static;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        padding: 5px;
        top: 0;
        left: 0;
        margin-bottom: 10px;
    }

    .alphabet-button {
        padding: 8px 15px;
        font-size: 14px;
        margin: 0 2px;
    }

    .game_list {
        width: 100%;
        margin-left: 0;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
        padding: 10px;
    }
}