/* Pokemon Gallery Styles - PlaySync Theme */
:root {
    /* Type Colors */
    --normal-color: #A8A878;
    --fire-color: #F08030;
    --water-color: #6890F0;
    --electric-color: #F8D030;
    --grass-color: #78C850;
    --ice-color: #98D8D8;
    --fighting-color: #C03028;
    --poison-color: #A040A0;
    --ground-color: #E0C068;
    --flying-color: #A890F0;
    --psychic-color: #F85888;
    --bug-color: #A8B820;
    --rock-color: #B8A038;
    --ghost-color: #705898;
    --dragon-color: #7038F8;
    --dark-color: #705848;
    --steel-color: #B8B8D0;
    --fairy-color: #EE99AC;
    
    /*!* PlaySync UI Colors *!*/
    /*--primary-color: #00ff8c;*/
    /*--secondary-color: #6c63ff;*/
    /*--background-dark: #0a0a0a;*/
    /*--background-light: #1a1a1a;*/
    /*--text-primary: #ffffff;*/
    /*--text-secondary: #b3b3b3;*/
    /*--accent-color: #8a2be2; !* Using PlaySync purple *!*/
}

/* Hero Section Styles - Matches Dota 2 */
.pokemon-hero-section {
    position: relative;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 2rem;
    margin-top: 60px; /* Added margin to push it down from navbar */
    background: linear-gradient(to bottom, var(--background-dark), rgba(10, 10, 10, 0.9));
    overflow: hidden;
    text-align: center;
}

.pokemon-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://assets.pokemon.com/assets/cms2/img/misc/virtual-backgrounds/sword-shield/pokemon-in-the-wild.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}

.dota-hero-content {
    max-width: 1200px;
    width: 95%;
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 140, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dota-hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
    font-family: 'Orbitron', sans-serif;
}

.dota-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-container .logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.logo-container h1 {
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--fire-color), var(--water-color), var(--grass-color), var(--electric-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--fire-color), var(--water-color), var(--grass-color), var(--electric-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-text-color);
    font-size: 1.1rem;
}

/* Search and Filter Section */
.search-filter {
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

#search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s;
}

#search-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-container {
    text-align: center;
}

.filter-container h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--secondary-text-color);
    letter-spacing: 1px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: var(--button-hover-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
}

/* Type-specific button colors */
.filter-btn[data-type="normal"] { border: 1px solid var(--normal-color); }
.filter-btn[data-type="fire"] { border: 1px solid var(--fire-color); }
.filter-btn[data-type="water"] { border: 1px solid var(--water-color); }
.filter-btn[data-type="electric"] { border: 1px solid var(--electric-color); }
.filter-btn[data-type="grass"] { border: 1px solid var(--grass-color); }
.filter-btn[data-type="ice"] { border: 1px solid var(--ice-color); }
.filter-btn[data-type="fighting"] { border: 1px solid var(--fighting-color); }
.filter-btn[data-type="poison"] { border: 1px solid var(--poison-color); }
.filter-btn[data-type="ground"] { border: 1px solid var(--ground-color); }
.filter-btn[data-type="flying"] { border: 1px solid var(--flying-color); }
.filter-btn[data-type="psychic"] { border: 1px solid var(--psychic-color); }
.filter-btn[data-type="bug"] { border: 1px solid var(--bug-color); }
.filter-btn[data-type="rock"] { border: 1px solid var(--rock-color); }
.filter-btn[data-type="ghost"] { border: 1px solid var(--ghost-color); }
.filter-btn[data-type="dragon"] { border: 1px solid var(--dragon-color); }
.filter-btn[data-type="dark"] { border: 1px solid var(--dark-color); }
.filter-btn[data-type="steel"] { border: 1px solid var(--steel-color); }
.filter-btn[data-type="fairy"] { border: 1px solid var(--fairy-color); }

/* Pokémon Grid */
.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pokemon-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(243, 236, 236, 0.3);
}

.pokemon-card-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: rgba(68, 67, 67, 0.2);
    padding: 1rem;
}

.pokemon-card-name {
    padding: 0.8rem;
    text-align: center;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.3);
}

.type-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

/* Type indicator colors */
.type-normal { background-color: var(--normal-color); }
.type-fire { background-color: var(--fire-color); }
.type-water { background-color: var(--water-color); }
.type-electric { background-color: var(--electric-color); }
.type-grass { background-color: var(--grass-color); }
.type-ice { background-color: var(--ice-color); }
.type-fighting { background-color: var(--fighting-color); }
.type-poison { background-color: var(--poison-color); }
.type-ground { background-color: var(--ground-color); }
.type-flying { background-color: var(--flying-color); }
.type-psychic { background-color: var(--psychic-color); }
.type-bug { background-color: var(--bug-color); }
.type-rock { background-color: var(--rock-color); }
.type-ghost { background-color: var(--ghost-color); }
.type-dragon { background-color: var(--dragon-color); }
.type-dark { background-color: var(--dark-color); }
.type-steel { background-color: var(--steel-color); }
.type-fairy { background-color: var(--fairy-color); }

/* Lore Modal */
.lore-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
}

.lore-modal-content {
    background: rgba(26, 26, 36, 0.95);
    margin: 0 auto;
    max-width: 1200px;
    width: 95%;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lore-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.lore-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Lore Header */
.lore-header {
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    position: relative;
    border-bottom: 1px solid rgba(0, 255, 140, 0.2);
}

.lore-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://assets.pokemon.com/assets/cms2/img/misc/virtual-backgrounds/sword-shield/pokemon-in-the-wild.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.lore-pokemon-portrait {
    flex-shrink: 0;
}

.lore-pokemon-portrait img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
    background-color: rgba(26, 26, 36, 0.5);
}

.lore-pokemon-info {
    flex-grow: 1;
}

.lore-pokemon-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
    text-transform: capitalize;
}

.pokemon-types {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.type-badge {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: capitalize;
    color: white;
}

#modal-pokemon-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--secondary-text-color);
}

/* Lore Tabs */
.lore-tabs {
    display: flex;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.lore-tab {
    padding: 1rem 1.5rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Orbitron', sans-serif;
}

.lore-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lore-tab:hover {
    color: var(--text-primary);
}

.lore-tab.active {
    color: var(--primary-color);
}

.lore-tab.active::after {
    transform: scaleX(1);
}

.lore-tab-content {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease forwards;
}

.lore-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Pokemon Stats */
.pokemon-stats-container {
    margin-bottom: 2rem;
}

.pokemon-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: bold;
}

.stat-bar {
    height: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    flex-grow: 1;
    margin: 0 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-fill {
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
}

.pokemon-abilities h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Pokemon Abilities and Description */
.pokemon-abilities ul {
    list-style: none;
    padding: 0;
}

.pokemon-abilities li {
    padding: 0.8rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pokemon-abilities li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.pokemon-description p {
    line-height: 1.8;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

/* Pokemon Types */
.pokemon-types {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pokemon-type {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.pokemon-id {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

#modal-pokemon-abilities li {
    margin-bottom: 0.3rem;
}

/* Footer styles adjustment to match Dota 2 exactly */
.footer {
    padding: 3rem 5rem 1rem;
    background: var(--background-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }
    
    #modal-pokemon-name {
        font-size: 1.5rem;
    }
}

/* Pokemon Catching Game Styles */
.captured-pokemon {
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), var(--background-dark));
    border-top: 1px solid rgba(0, 255, 140, 0.1);
}

.captured-header {
    text-align: center;
    margin-bottom: 2rem;
}

.captured-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

.captured-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.game-container {
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(108, 99, 255, 0.1);
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    transform: translateY(0%);
    max-width: 1000px;
}

.empty-message, .empty-pokedex-message {
    color: var(--text-secondary);
    text-align: center;
    padding: 0;
    font-size: 0.8rem;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wild-pokemon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    gap: 0;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.wild-pokemon img {
    height: clamp(60px, 10vh, 80px);
    max-width: 100%;
    filter: drop-shadow(0 0 8px rgba(0, 255, 140, 0.4));
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.wild-pokemon .pokemon-name {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.wild-pokemon .pokemon-rarity {
    color: #4CD964;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 255, 140, 0.3);
}

.pokeball {
    position: relative;
    width: clamp(30px, 5vw, 36px);
    height: clamp(30px, 5vw, 36px);
    background-image: url('https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/items/poke-ball.png');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 5px rgba(255, 60, 0, 0.7));
    z-index: 10;
    margin: 20px auto 0;
}

.pokeball:hover {
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7));
}

.pokeball.throwing {
    animation: throwBall 0.8s forwards;
}

.capture-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    z-index: 10;
    border: 1px solid;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capture-message.success {
    border-color: var(--grass-color);
    animation: fadeInOut 2s forwards;
}

.capture-message.fail {
    border-color: var(--fire-color);
    animation: fadeInOut 2s forwards;
}

.captured-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.captured-pokemon-card {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(108, 99, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.captured-pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 255, 140, 0.2);
}

.captured-pokemon-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background-color: rgba(68, 67, 67, 0.2);
    padding: 0.8rem;
}

.captured-pokemon-card .captured-name {
    padding: 0.6rem;
    text-align: center;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
}

.captured-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.3rem;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes throwBall {
    0% {
        transform: scale(1);
    }
    50% {
        transform: translateY(-50px) scale(0.8);
    }
    100% {
        transform: translateY(-100px) scale(0.6);
        opacity: 0.8;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    20%, 80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Pokemon Catching Overlay Styles */
.pokemon-catching-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background-color: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(0, 255, 140, 0.2);
    border-radius: 30px;
    z-index: 900;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    max-width: 95vw;
}

.pokemon-catching-overlay.minimized {
    height: 32px;
    width: auto;
    overflow: hidden;
    max-width: 300px;
}

.pokemon-catching-overlay.minimized .game-container {
    display: none;
}

.pokemon-catching-overlay:hover {
    box-shadow: 0 6px 16px rgba(0, 255, 140, 0.2);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    cursor: pointer;
    height: 32px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom: 1px solid rgba(0, 255, 140, 0.1);
    background-color: rgba(10, 10, 10, 0.95);
    width: 100%;
    box-sizing: border-box;
}

.overlay-header h3 {
    margin: 0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 8px rgba(0, 255, 140, 0.3);
    white-space: nowrap;
}

.overlay-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pokeball-indicator {
    width: 18px;
    height: 18px;
    background-image: url('https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/items/poke-ball.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(0.5);
    margin-top: 1px;
}

.pokeball-indicator.active {
    filter: none;
    animation: pokeball-pulse 2s infinite;
}

.minimize-button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.minimize-button:hover {
    background-color: rgba(0, 255, 140, 0.1);
    color: var(--primary-color);
}

.minimize-button:hover {
    color: #fff;
}

.pokemon-catching-overlay .game-container {
    height: clamp(200px, 25vh, 250px);
    padding: 15px 20px;
    margin: 0;
    width: calc(110%);
    border-radius: 0 0 30px 30px;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    position: relative;
    background-color: rgba(10, 10, 10, 0.95);
    overflow: hidden;
}

@keyframes pokeball-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Collection Button */
/* Hide the collection button as requested */
.collection-button-container {
    display: none;
}

.view-collection-btn {
    background-color: rgba(10, 10, 10, 0.8);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 255, 140, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.view-collection-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.pokeball-icon {
    width: 18px;
    height: 18px;
    background-image: url('https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/items/poke-ball.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Collection Modal */
.collection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.collection-modal-content {
    background-color: #1a1a1a;
    margin: 2% auto;
    padding: 25px;
    width: 85%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    position: relative;
}

.collection-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.collection-close:hover {
    color: #fff;
}

.collection-modal h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 5px;
    color: #fff;
}

.collection-stats {
    text-align: center;
    color: #aaa;
    margin-bottom: 20px;
    font-size: 1rem;
}

.collection-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.collection-filters .filter-btn,
.collection-filters .collection-filter-btn {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.collection-filters .filter-btn:first-child,
.collection-filters .collection-filter-btn:first-child {
    background-color: #ff4081;
}

.collection-filters .filter-btn.active,
.collection-filters .collection-filter-btn.active {
    background-color: #ff4081;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.collection-card {
    position: relative;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-5px);
}

.collection-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
}

.collection-name {
    padding: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.rarity-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rarity-common { background-color: #91c49f; }
.rarity-uncommon { background-color: #54a0ff; }
.rarity-rare { background-color: #a55eea; }
.rarity-legendary { background-color: #ff9f43; }

@media (max-width: 480px) {
    .pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .filter-buttons {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .collection-button-container {
        right: 15px;
        bottom: 120px;
    }
    
    .view-collection-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .collection-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .collection-filters {
        flex-wrap: wrap;
    }
}
