/* ===== Pokédex Lazy Block ===== */
.poke-block-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.poke-card {
    background: #ffffff;
    border: 2px solid #2563eb;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 360px;
    width: 100%;
    color: #1f2937;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.18);
    position: relative;
    overflow: hidden;
}

.poke-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(230, 57, 70, 0.08);
    border-radius: 50%;
}

.poke-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.poke-sprite {
    width: 110px;
    height: 110px;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 12px rgba(230, 57, 70, 0.4));
    transition: transform 0.3s ease;
}

.poke-sprite:hover {
    transform: scale(1.08) rotate(-2deg);
}

.poke-title {
    flex: 1;
}

.poke-number {
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.poke-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0.15rem 0 0.5rem;
    text-transform: capitalize;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.poke-types {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.poke-type-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Typ-Farben */
.type-fire     { background: #e25822; color: #fff; }
.type-water    { background: #3a86ff; color: #fff; }
.type-grass    { background: #2dc653; color: #fff; }
.type-electric { background: #f4c430; color: #1a1a2e; }
.type-psychic  { background: #d63384; color: #fff; }
.type-ice      { background: #74c7ec; color: #1a1a2e; }
.type-dragon   { background: #6a0dad; color: #fff; }
.type-dark     { background: #3d2b1f; color: #e0c8b0; }
.type-fairy    { background: #ff85a1; color: #fff; }
.type-normal   { background: #8d8d8d; color: #fff; }
.type-fighting { background: #c84b31; color: #fff; }
.type-poison   { background: #7b2d8b; color: #fff; }
.type-ground   { background: #c09552; color: #fff; }
.type-flying   { background: #89a0d6; color: #fff; }
.type-bug      { background: #8db600; color: #fff; }
.type-rock     { background: #a0785a; color: #fff; }
.type-ghost    { background: #463677; color: #fff; }
.type-steel    { background: #4a7c8e; color: #fff; }

/* Stats */
.poke-stats {
    display: grid;
    gap: 0.45rem;
}

.stat-row {
    display: grid;
    grid-template-columns: 90px 32px 1fr;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.stat-label {
    color: #a8a8c0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.68rem;
    font-weight: 600;
}

.stat-value {
    color: #1f2937;
    font-weight: 700;
    text-align: right;
}

.stat-bar-bg {
    background: #e5e7eb;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #2563eb;
    transition: width 0.6s ease;
}

.stat-bar-fill.high  { background: #2dc653; }
.stat-bar-fill.mid   { background: #f4c430; }
.stat-bar-fill.low   { background: #2563eb; }

.poke-error {
    color: #2563eb;
    text-align: center;
    font-weight: 600;
    margin: 0;
}

/* Loading shimmer */
.poke-card.loading .poke-sprite {
    background: #e5e7eb;
    border-radius: 8px;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* ===== Suchfeld ===== */
.poke-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.poke-search-input {
    flex: 1;
    background: #e5e7eb;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: #1f2937;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.poke-search-input::placeholder {
    color: #64748b;
}

.poke-search-input:focus {
    border-color: #2563eb;
}

.poke-search-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.poke-search-btn:hover {
    background: #1d4ed8;
}

.poke-search-btn:active {
    transform: scale(0.96);
}

/* White/blue theme overrides */
.poke-block-wrapper { font-family: inherit; flex-direction: column; align-items:center; }
.poke-search { max-width:360px; width:100%; }
.poke-search-input { background:#fff; color:#111827; }
.poke-card { box-shadow:0 10px 30px rgba(37,99,235,.12); }
