/* Header-Filter */
.form-inline {
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    width: auto;
    font-family: sans-serif;
    font-size: 0.9rem;
}

.empty-filter {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    padding: 40px 0;
}

/* Tabs */
.tabs {
    flex-wrap: wrap;
    row-gap: 8px;
}

.section-loading {
    opacity: 0.6;
}

.scroll-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Info-Tab */
.pokemon-description {
    font-style: italic;
    margin-bottom: 15px;
}

.rarity-badge {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-weight: bold;
    color: #fff;
}

.rarity-badge.legendary {
    background: linear-gradient(90deg, #FFCB05, #E0B004);
}

.rarity-badge.mythical {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.mini-bar {
    display: inline-flex;
    width: 120px;
    height: 10px;
    margin: 0 8px;
    vertical-align: middle;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.mini-bar-fill.capture {
    background-color: #e3350d;
}

.mini-bar-fill.male {
    background-color: #6890F0;
}

.mini-bar-fill.female {
    background-color: #EE99AC;
}

.mini-bar-text {
    font-size: 0.9em;
}

/* Schwächen */
.weakness-group {
    margin-bottom: 12px;
}

.weakness-label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.type-badge {
    margin-right: 5px;
}

/* Attacken & Fundorte */
.move-row,
.location-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.location-row {
    flex-direction: column;
    gap: 4px;
}

.move-level {
    min-width: 60px;
    font-weight: bold;
    color: #3b4cca;
}

.game-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 10px;
    background-color: #FFCB05;
}

/* Evolution mit Bedingungen */
.evolution-images {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.evolution-stage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.evolution-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.evolution-entry:hover {
    transform: scale(1.08);
}

.evolution-name {
    font-weight: bold;
    font-size: 0.9em;
}

.evolution-condition {
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: #3b4cca;
    color: #fff;
}

.evolution-arrow {
    font-size: 1.5rem;
    color: #3b4cca;
}

/* Karten: animiertes Sprite & Legendär-Rahmen */
.card-img.animated-sprite {
    image-rendering: pixelated;
    object-fit: contain;
}

.card.legendary,
.card.mythical {
    border: 3px solid transparent;
    animation: rarity-glow 2s ease-in-out infinite alternate;
}

.card.legendary {
    border-color: #FFCB05;
}

.card.mythical {
    border-color: #ec4899;
}

@keyframes rarity-glow {
    from {
        box-shadow: 0 0 6px rgba(255, 203, 5, 0.4);
    }
    to {
        box-shadow: 0 0 18px rgba(255, 203, 5, 0.9);
    }
}

/* Formen */
.pokemon-forms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.form-chip {
    padding: 2px 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
}

.form-chip.active,
.form-chip:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Gefangen-Markierung auf der Karte */
.card.caught::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 3;
    width: 22px;
    height: 22px;
    border: 2px solid #222;
    border-radius: 50%;
    background: linear-gradient(#e3350d 45%, #222 45% 55%, #fff 55%);
}
