/* Pokemon List Page Styles */
.cards-header {
    background-image: linear-gradient(to bottom right, var(--scarlet-500), var(--violet-700));
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
}

.cards-title {
    font-family: 'LaOriental', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--pokemon-accent);
    margin-bottom: 1rem;
}

.cards-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Pokemon Card Grid */
.pokemon-item {
    transition: transform 0.2s ease-in-out;
}

.pokemon-item:hover {
    transform: translateY(-5px);
}

/* Filter Section */
#advancedFilters {
    transition: all 0.3s ease-in-out;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-select {
    border-color: var(--border-color);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* Search Input */
.input-group-text {
    border-color: var(--border-color);
}

#searchInput {
    border-color: var(--border-color);
}

#searchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* Results Count */
#resultsCount {
    color: var(--primary);
    font-weight: bold;
}

/* Type Icons */
.pokemon-type-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cards-title {
        font-size: 2rem;
    }
    
    .cards-description {
        font-size: 1rem;
    }
    
    .pokemon-item {
        margin-bottom: 1rem;
    }
}

/* Pokemon Type Colors - Base colors */
.type-normal { background-color: #A8A878; }
.type-fire { background-color: #F08030; }
.type-water { background-color: #6890F0; }
.type-grass { background-color: #78C850; }
.type-electric { background-color: #F8D030; }
.type-ice { background-color: #98D8D8; }
.type-fighting { background-color: #C03028; }
.type-poison { background-color: #A040A0; }
.type-ground { background-color: #E0C068; }
.type-flying { background-color: #A890F0; }
.type-psychic { background-color: #F85888; }
.type-bug { background-color: #A8B820; }
.type-rock { background-color: #B8A038; }
.type-ghost { background-color: #705898; }
.type-dragon { background-color: #7038F8; }
.type-dark { background-color: #705848; }
.type-steel { background-color: #B8B8D0; }
.type-fairy { background-color: #EE99AC; }

/* Pokemon Card Base Styling */
.pokemon-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    background-color: rgba(245, 245, 245, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Card Header styling */
.pokemon-card-header {
    padding: 8px 12px;
    color: white;
    flex-shrink: 0;
}

.pokemon-type-icons {
    display: flex;
    gap: 4px;
}

.type-icon-header {
    width: 18px !important;
    height: 18px !important;
}

.pokemon-card-name {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Image section */
.pokemon-image-section {
    position: relative;
    padding: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

/* Image container */
.pokemon-image-container {
    position: relative;
    height: 130px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
}

/* Pokemon image styling */
.pokemon-image-frame {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pokemon-sprite {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 5;
}

/* Form badge styling */
.form-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.base-form-badge {
    background-color: rgba(120, 200, 80, 0.85);
    color: #fff;
}

.alt-form-badge {
    background-color: rgba(248, 88, 136, 0.85);
    color: #fff;
}

/* Pokemon description overlay */
.pokemon-description-overlay {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #333;
    z-index: 15;
    text-align: center;
    font-size: 0.75rem;
    font-style: italic;
    white-space: normal;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 80%;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Move type indicators */
.move-type-indicators {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 5px;
    left: 5px;
    gap: 4px;
    z-index: 10;
}

.move-type-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.move-type-indicator img {
    width: 18px;
    height: 18px;
}

/* Encounter tier indicator (top right) */
.encounter-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.encounter-indicator img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Habitat indicator (bottom right) */
.habitat-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.habitat-indicator img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Stats row layout - For Health, Initiative, Evolution Cost */
.pokemon-stats-row {
    display: flex;
    background-color: #e0e0e0;
    gap: 1px;
    flex-shrink: 0;
}

.pokemon-stats-row .stat-cell {
    flex: 1;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    min-height: 42px;
}

.stat-icon {
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Evolution icon in stats row */
.evolution-cell .stat-icon {
    width: 22px;
    height: 22px;
}

.evolution-cell .stat-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin: auto;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

/* Health cell */
.health-cell {
    background-color: rgba(152, 203, 152, 0.3);
}

.health-cell .stat-value {
    color: #4A4A4A;
}

/* Initiative cell */
.initiative-cell {
    background-color: rgba(229, 153, 153, 0.3);
}

.initiative-cell .stat-value {
    color: #4A4A4A;
}

/* Evolution cost cell */
.evolution-cell {
    background-color: rgba(168, 144, 240, 0.3);
}

.evolution-cell .stat-value {
    color: #4A4A4A;
}

/* Evolution info styling */
.evolution-info {
    padding: 8px 10px;
    background-color: rgba(168, 144, 240, 0.1);
    border-top: 1px solid rgba(168, 144, 240, 0.2);
    border-bottom: 1px solid rgba(168, 144, 240, 0.2);
    flex-shrink: 0;
}

.evolution-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6D5E9C;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.evolution-header-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.evolution-header-icon {
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.evolution-header-icon img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.evolution-count {
    font-size: 0.7rem;
    color: #8A79B8;
    font-weight: 400;
    background-color: rgba(168, 144, 240, 0.2);
    padding: 1px 5px;
    border-radius: 8px;
}

.evolution-chain {
    display: flex;
    flex-direction: column;
}

.multiple-evolutions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

/* Special styling for cards with many evolutions */
.multiple-evolutions.many-evolutions .evolution-item {
    padding: 2px 6px;
}

.multiple-evolutions.many-evolutions .evolution-name {
    font-size: 0.75rem;
}

.evolution-item {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background-color: rgba(168, 144, 240, 0.2);
    border-radius: 12px;
    max-width: fit-content;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
    margin-bottom: 0;
}

.evolution-item:hover {
    background-color: rgba(168, 144, 240, 0.4);
}

.evolution-name {
    font-size: 0.8rem;
    color: #6D5E9C;
    font-weight: 500;
}

/* Ability section */
.pokemon-ability {
    padding: 8px 10px;
    background-color: rgba(255, 193, 7, 0.1);
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    flex-shrink: 0;
}

.ability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ability-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ability-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #856404;
}

.ability-types {
    display: flex;
    gap: 4px;
}

.ability-effect {
    font-size: 0.8rem;
    color: #856404;
    opacity: 0.9;
}

/* Signature Move */
.signature-move {
    padding: 8px 10px;
    background-color: #e0e0e0;
    border-top: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    flex-shrink: 0;
}

/* Type-specific power badges */
.move-power-normal { background-color: #A8A878; color: white; }
.move-power-fire { background-color: #F08030; color: white; }
.move-power-water { background-color: #6890F0; color: white; }
.move-power-electric { background-color: #F8D030; color: black; }
.move-power-grass { background-color: #78C850; color: white; }
.move-power-ice { background-color: #98D8D8; color: black; }
.move-power-fighting { background-color: #C03028; color: white; }
.move-power-poison { background-color: #A040A0; color: white; }
.move-power-ground { background-color: #E0C068; color: black; }
.move-power-flying { background-color: #A890F0; color: white; }
.move-power-psychic { background-color: #F85888; color: white; }
.move-power-bug { background-color: #A8B820; color: white; }
.move-power-rock { background-color: #B8A038; color: white; }
.move-power-ghost { background-color: #705898; color: white; }
.move-power-dragon { background-color: #7038F8; color: white; }
.move-power-dark { background-color: #705848; color: white; }
.move-power-steel { background-color: #B8B8D0; color: black; }
.move-power-fairy { background-color: #EE99AC; color: black; }

/* Move header styling */
.move-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.move-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.move-type-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.move-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4A4A4A;
}

.move-power {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    margin-left: 8px;
    position: relative;
    padding: 0 6px;
}

.move-effect {
    font-size: 0.8rem;
    color: #4A4A4A;
    opacity: 0.9;
}

.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Updated breakpoints - 2 columns at tablet (768px) instead of desktop (992px) */
@media (min-width: 768px) {
    .pokemon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .pokemon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Show all pokemon by default */
.pokemon-item {
    display: block;
}

.pokemon-item.hide {
    display: none;
} 