/**
 * Version Notes:
 * File: assets/css/pokedex.css
 * Version: 1.9.0
 * Last Modified: 2025-11-22 14:55 PM
 * Changes:
 * - Extracted from inline HTML in pokedex-plugin.php
 * - Added dark mode variables integration
 */

body.dark {
    --bs-body-bg:      var(--bg-color);
    --bs-body-color:   var(--text-color);
    --bs-border-color: var(--border-color);
}

.autocomplete-container { 
    position: relative; 
}

#dropdownList {
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    z-index: 1000;
    max-height: 400px !important; 
    overflow-y: auto !important;
    display: none;
    background: var(--bs-body-bg) !important;
    color:      var(--bs-body-color) !important;
    border: 1px solid var(--bs-border-color) !important;
    border-radius: 0 0 .25rem .25rem !important;
}

#dropdownList .list-group-item {
    cursor: pointer;
    background: transparent;
    color: var(--bs-body-color) !important;
}

body.dark #dropdownList .list-group-item:hover,
body.dark #dropdownList .list-group-item.active {
    background-color: var(--box-color) !important;
    color:            var(--text-color) !important;
}

#searchInput {
    height: 3.5rem;
    font-size: 1.25rem;
    padding: .75rem 1rem;
    background: var(--bs-body-bg) !important;
    color:      var(--bs-body-color) !important;
}

.pokedex-card {
    background: var(--bs-body-bg) !important;
    color:      var(--bs-body-color) !important;
}

body.dark .pokedex-card .list-group-item {
    background: var(--bs-body-bg) !important;
    color:      var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}

body.dark .pokedex-card .small {
    color: var(--bs-body-color) !important;
}

.img-thumbnail {
    width: 192px !important;
    height: 192px !important;
    object-fit: contain !important;
    cursor: default !important;
    background-color: transparent !important;
    border: none !important;
}

.pokedex-card .mt-3.d-flex {
    justify-content: center !important;
}

.pokedex-card .btn-outline-custom {
    background: transparent !important;
    border: 1px solid var(--bs-body-color) !important;
    color: var(--bs-body-color) !important;
}

.pokedex-card .btn-outline-custom:hover {
    background: var(--bs-body-color) !important;
    color: var(--bs-body-bg) !important;
}

/* Evolves methods: inline button then text on same line, no comma */
.pokedex-card .list-group-item .evolve-line {
    display: flex;
    align-items: center;
    margin-bottom: .25rem;
}

.pokedex-card .list-group-item .evolve-line a.btn-outline-custom {
    margin-right: .5rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .img-thumbnail {
        width: 100px !important;
        height: auto !important;
    }
    .pokedex-card .d-flex.justify-content-between.align-items-center {
        flex-wrap: nowrap !important;
    }
    .pokedex-card .btn-outline-custom {
        flex: 0 0 auto !important;
        padding: .25rem .5rem !important;
    }
    .pokedex-card h2.flex-grow-1 {
        flex: 1 1 auto !important;
        font-size: 1.25rem !important;
        margin: 0 .5rem !important;
    }
}