* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.filter-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select, .filter-input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select:hover, .filter-input:hover {
    border-color: #cbd5e0;
}

.legendary-toggle {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.toggle-option {
    flex: 1;
    /* padding: 10px; */
    max-width: 600px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px;
    margin-bottom: 4px;
}

.toggle-option.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.toggle-option:hover:not(.active) {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.clear-filters {
    padding: 12px 24px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: end;
    margin-bottom: 4px;
}

.clear-filters:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pokemon-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    padding-top: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pokemon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pokemon-name {
    text-align: center;
    font-size: 21px;
    height: 50px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.pokemon-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.stats-gauche, .stats-droite {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 60px;
}

.stat {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 10px;
  color: #666;
  margin-bottom: 2px;
}

.stat-value {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.pokemon-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pokemon-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #718096;
}

.pokemon-types {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: -8px;
}

.type {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  /* text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; */
  text-shadow: #000 0px 0px 4px;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
}

.type-fire { background-color: #ff6b6b; }
.type-water { background-color: #4ecdc4; }
.type-grass { background-color: #95e1d3; }
.type-electric { background-color: #f9ca24; }
.type-normal { background-color: #a4a4a4; }
.type-ice { background-color: #98D8D8; }
.type-fighting { background-color: #C03028; }
.type-poison { background-color: #A040A0; }
.type-ground { background-color: #E0C068; }
.type-flying { background-color: #A890F0; }
.type-psychic { background-color: #F85888; }
.type-bug { background-color: #A8B820; }
.type-rock { background-color: #B8A038; }
.type-ghost { background-color: #705898; }
.type-dragon { background-color: #7038F8; }
.type-dark { background-color: #705848; }
.type-steel { background-color: #B8B8D0; }
.type-fairy { background-color: #EE99AC; }

.legendary-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #744210;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
    
    .pokemon-grid {
        grid-template-columns: 1fr;
    }
}

/* NAVBAR */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #667eea;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* FOOTER */
footer {
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section p {
    line-height: 1.6;
    color: #cbd5e0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
    margin-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    footer {
        padding: 2rem 1rem;
    }
}