.ability-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.ability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.ability-card-header {
    padding: 15px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    overflow: hidden;
    min-height: 60px;
}

.ability-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.ability-card-header > * {
    position: relative;
    z-index: 2;
}

.ability-card-header[data-type] {
    background: var(--type-background);
}

.ability-type-icons {
    display: flex;
    gap: 5px;
}

.ability-type-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

.card-title {
    font-weight: 600;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 10px;
}

.ability-card-body {
    padding: 15px;
    flex-grow: 1;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.effect-display {
    margin-top: 10px;
    flex-grow: 1;
}

.effect-change {
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.effect-single {
    background-color: #f8f9fa;
}

.move-requirements {
    margin-top: 15px;
}

.move-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.move-type-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.move-type-badge .move-type-icon {
    width: 16px;
    height: 16px;
}

.ability-card-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    min-height: 45px;
}

.ability-badges {
    display: flex;
    gap: 5px;
}

.ability-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-passive {
    background-color: #0d6efd;
    color: white;
}

.badge-party {
    background-color: #6f42c1;
    color: white;
}

.badge-persistent {
    background-color: #20c997;
    color: white;
}

.badge-keepsake {
    background-color: #ffc107;
    color: black;
}

/* Type Colors */
.type-normal { --type-background: linear-gradient(135deg, #C6C6A7 0%, #A8A878 50%, #8D8D5C 100%); }
.type-fire { --type-background: linear-gradient(135deg, #F5AC78 0%, #F08030 50%, #C25D2C 100%); }
.type-water { --type-background: linear-gradient(135deg, #9DB7F5 0%, #6890F0 50%, #4B7ABF 100%); }
.type-electric { --type-background: linear-gradient(135deg, #FAE078 0%, #F8D030 50%, #C6A82C 100%); }
.type-grass { --type-background: linear-gradient(135deg, #A7DB8D 0%, #78C850 50%, #5C9D2C 100%); }
.type-ice { --type-background: linear-gradient(135deg, #BCE6E6 0%, #98D8D8 50%, #7ABFBF 100%); }
.type-fighting { --type-background: linear-gradient(135deg, #D67873 0%, #C03028 50%, #9D2720 100%); }
.type-poison { --type-background: linear-gradient(135deg, #C183C1 0%, #A040A0 50%, #7D2C7D 100%); }
.type-ground { --type-background: linear-gradient(135deg, #EBD69D 0%, #E0C068 50%, #B3A03F 100%); }
.type-flying { --type-background: linear-gradient(135deg, #C6B7F5 0%, #A890F0 50%, #8D7AC2 100%); }
.type-psychic { --type-background: linear-gradient(135deg, #FA92B2 0%, #F85888 50%, #C44A6D 100%); }
.type-bug { --type-background: linear-gradient(135deg, #C6D16E 0%, #A8B820 50%, #8D932C 100%); }
.type-rock { --type-background: linear-gradient(135deg, #D1C17D 0%, #B8A038 50%, #93802C 100%); }
.type-ghost { --type-background: linear-gradient(135deg, #A292BC 0%, #705898 50%, #5A4A7D 100%); }
.type-dragon { --type-background: linear-gradient(135deg, #A27DFA 0%, #7038F8 50%, #5A2CBF 100%); }
.type-dark { --type-background: linear-gradient(135deg, #A29288 0%, #705848 50%, #5A4639 100%); }
.type-steel { --type-background: linear-gradient(135deg, #D1D1E0 0%, #B8B8D0 50%, #9393A2 100%); }
.type-fairy { --type-background: linear-gradient(135deg, #F4BDC9 0%, #EE99AC 50%, #C77A8A 100%); }
.type-typeless { --type-background: linear-gradient(135deg, #D3D3D3 0%, #A8A8A8 50%, #8D8D8D 100%); }
.type-terastal { --type-background: linear-gradient(135deg, #B5A5D5 0%, #9B7CB6 50%, #7D6392 100%); }

.effect-update {
    margin-top: 10px;
    flex-grow: 1;
}

.old-effect {
    background-color: rgba(220, 53, 69, 0.1);
    color: #842029;
    border-left: 3px solid #dc3545;
}

.new-effect {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
    border-left: 3px solid #198754;
}

.updated-badge {
    background-color: #ff9800;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Show all cards by default */
.ability-card {
    display: flex;
}

.ability-card.hide {
    display: none;
}

.ability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .ability-grid {
        grid-template-columns: repeat(4, 1fr);
    }
} 