.heading-content h1 {
    color: black;
    font-size: 40px;
    padding-top: 50px;
    padding-left: 20px;
}

.heading-content p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 20px;
    padding-left: 20px;
}

/* search section */
.search-section {
    padding-left: 20px;
}

.search-section input {
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    width: 300px;
    margin-top: 30px;
    width: 85%;
}

.search-section select {
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    margin-top: 30px;
    width: 10%;
    margin-left: 10px;
}

/* Pokemon Grid */
.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Pokemon Card */
.pokemon-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 100;
    font-size: 20px;
    color: #ccc;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ff4400;
}

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

.card-id {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(0, 0, 0, 0.3);
    font-weight: 800;
    font-size: 24px;
}

.card-image {
    width: 150px;
    height: 150px;
    margin: 10px auto;
    position: relative;
    z-index: 2;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}

.card-info h3 {
    margin: 15px 0 10px;
    text-transform: capitalize;
    font-size: 22px;
    color: #333;
}

.types {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.type {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

/* Loading & Error States */
.loading,
.error,
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 20px;
    color: #666;
}

.loading {
    color: #ff4400;
}

.error {
    color: #e74c3c;
}

/* Pokemon Types Colors */
.normal {
    background-color: #A8A878;
}

.fire {
    background-color: #F08030;
}

.water {
    background-color: #6890F0;
}

.grass {
    background-color: #78C850;
}

.electric {
    background-color: #F8D030;
}

.ice {
    background-color: #98D8D8;
}

.fighting {
    background-color: #C03028;
}

.poison {
    background-color: #A040A0;
}

.ground {
    background-color: #E0C068;
}

.flying {
    background-color: #A890F0;
}

.psychic {
    background-color: #F85888;
}

.bug {
    background-color: #A8B820;
}

.rock {
    background-color: #B8A038;
}

.ghost {
    background-color: #705898;
}

.dragon {
    background-color: #7038F8;
}

.steel {
    background-color: #B8B8D0;
}

.fairy {
    background-color: #EE99AC;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: 10;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
    text-decoration: none;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

/* Modal Content Layout */
.modal-header-bg {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    color: white;
}

.modal-pokemon-image {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.modal-pokemon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-info {
    width: 100%;
    padding: 30px;
    background: white;
    border-radius: 24px 24px 0 0;
    margin-top: -30px;
}

.modal-title {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title h2 {
    font-size: 36px;
    text-transform: capitalize;
    margin-bottom: 10px;
    color: #333;
}

.modal-title .id {
    font-size: 20px;
    color: #888;
    font-weight: 600;
}

/* Stats Grid */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stat-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item label {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

/* Base Stats Bars */
.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.stat-label {
    width: 80px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.stat-value {
    width: 40px;
    text-align: right;
    font-weight: bold;
    color: #333;
    margin-right: 15px;
}

.stat-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    /* Default color, will be overridden by JS likely or inline style */
}

/* Type Colors for Modal BG - matching existing vars but making dynamic classes */
.bg-normal {
    background-color: #A8A878;
}

.bg-fire {
    background-color: #F08030;
}

.bg-water {
    background-color: #6890F0;
}

.bg-grass {
    background-color: #78C850;
}

.bg-electric {
    background-color: #F8D030;
}

.bg-ice {
    background-color: #98D8D8;
}

.bg-fighting {
    background-color: #C03028;
}

.bg-poison {
    background-color: #A040A0;
}

.bg-ground {
    background-color: #E0C068;
}

.bg-flying {
    background-color: #A890F0;
}

.bg-psychic {
    background-color: #F85888;
}

.bg-bug {
    background-color: #A8B820;
}

.bg-rock {
    background-color: #B8A038;
}

.bg-ghost {
    background-color: #705898;
}

.bg-dragon {
    background-color: #7038F8;
}

.bg-steel {
    background-color: #B8B8D0;
}

.bg-fairy {
    background-color: #EE99AC;
}