/*TAB REGION STYLE*/
.regionFilters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl, 40px);
    padding: 0 var(--spacing-md);
}
.regionBtn {
    font-family: var(--clean-font);
    background: rgba(30, 30, 30, 0.6);
    color: var(--gray-medium);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast, 0.3s) ease;
}
.regionBtn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-2px);
}
.regionBtn.active {
    background: var(--pikachu-yellow);
    color: var(--black);
    border-color: var(--pikachu-yellow);
    box-shadow: 0 4px 15px rgba(248, 208, 48, 0.4);
}
/*GRID STYLE*/
.pokemonGrid, .gymsGridContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch;
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: 40dvh;
}
/*GYM LEADER CARD STYLES*/
.gymCard {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    font-family: var(--clean-font);
}
.gymCity {
    font-size: 0.85rem;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}
.leaderImageContainer {
    height: 140px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.leaderImg {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}
.gymCard:hover .leaderImg {
    transform: scale(1.1) translateY(-5px);
}
.leaderName {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}
.badgeContainer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    width: 100%;
}
.badgeIcon { font-size: 1.2rem; }
.badgeName {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}
/*MODAL STYLE (gym-battle-info)*/
.modalHeader {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}
.modalTitle {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--white);
}
.modalGymBadge {
    color: var(--pikachu-yellow);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.leaderTeamList {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}
.teamMemberCard {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-fast);
}
.teamMemberCard:hover {
    background: rgba(255, 255, 255, 0.1);
}
.teamMemberImg {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}
.teamMemberInfo { flex: 1; }
.teamMemberName {
    text-transform: capitalize;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--white);
}
.teamMemberStats {
    text-align: right;
    font-size: 0.85rem;
    color: var(--gray-medium);
}
.statLine { margin-bottom: 3px; }
.statHpValue { color: var(--hp); font-weight: bold; }
.statAtkValue { color: var(--atk); font-weight: bold; }
/*ERROR MESSAGE STYLES*/
.errorConnectionBox {
    text-align: center;
    padding: 20px;
}
.errorConnectionTitle {
    color: var(--charmander-red);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.errorConnectionText {
    color: var(--gray-medium);
    font-size: 0.9rem;
}
/*MEDIA QUERIES(tablet and desktop)*/
@media screen and (min-width: 641px) {
    .gymCard { padding: 24px; }
    .leaderImageContainer { height: 180px; }
    .leaderName { font-size: 1.8rem; }
}
@media screen and (min-width: 1025px) {
    .gymCard { padding: 32px; }
    .leaderImageContainer { height: 220px; }
    .leaderName { font-size: 2rem; }
}