@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --bg-body: #f8fafc;
    --primary: #2563eb;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --bar-bg: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    transition: background 0.3s;
}

body.dark-mode {
    --bg-body: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --bar-bg: #334155;
}

.main-header {
    padding: 4rem 1rem;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.logo-pinap {
    width: 55px;
    height: 55px;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-pinap {
    transform: scale(1.1) rotate(-5deg);
}

body.dark-mode .logo-pinap {
    filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.3));
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0;
}

.logo-alt {
    color: var(--primary);
}

.tagline {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: 0.2s;
}

.theme-btn:hover {
    background: var(--primary);
    color: white;
}

.search-box {
    margin: 2rem auto 0;
    max-width: 500px;
    width: 95%;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1.25rem;
    padding-right: 4.5rem;
    border-radius: 1.2rem;
    border: 2px solid #e2e8f0;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
    color: var(--text-main);
}

.search-input:focus {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(37, 99, 235, 0.2);
}

.clear-btn {
    position: absolute;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 20;
    line-height: 1;
    display: none;
    pointer-events: auto;
}

.search-hint {
    display: block;
    margin-top: 1.8rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.pokemon-card {
    background: var(--card-bg);
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid #facc15;
    animation: pop 0.4s ease-out;
}

.card-banner {
    padding: 3rem;
    display: flex;
    justify-content: center;
}

.pokemon-sprite {
    width: 280px;
    height: 280px;
    filter: drop-shadow(0 20px 10px rgba(0, 0, 0, 0.2));
}

.card-info {
    padding: 2.5rem;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 15px;
}

.name {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: capitalize;
    line-height: 1.1;
}

.bst-num {
    display: inline-block;
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 0.8rem;
    border-radius: 0.8rem;
    font-size: 1.2rem !important;
    font-weight: 900;
    margin-bottom: 4px;
    line-height: 1;
}

.go-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    background: var(--bar-bg);
    padding: 1.5rem;
    border-radius: 1.5rem;
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-item strong {
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-top: 2px solid var(--bar-bg);
}

.stats-row p {
    font-size: 0.85rem;
    font-weight: 700;
}

.stats-row strong {
    color: var(--primary);
    margin-right: 5px;
}

.data-source {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--text-muted);
    opacity: 0.6;
}

.data-source small {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.suggestions-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    max-height: 160px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 3px solid #e2e8f0;
    padding: 0.6rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.suggestions-list::-webkit-scrollbar {
    display: none;
}

.suggestion-item {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border-radius: 0.8rem;
    text-transform: capitalize;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.2s;
}

.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    margin-right: 4px;
    margin-bottom: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-item div {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 4px;
}

.type-header {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 4px;
}

.suggestion-item:hover {
    background: var(--bar-bg);
    color: var(--primary);
    padding-left: 1.5rem;
}

.main-footer {
    margin-top: 4rem;
    padding: 2rem 1rem;
    border-top: 1px solid var(--bar-bg);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.site-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bar-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-green {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-yellow {
    background: #eab308;
    box-shadow: 0 0 8px #eab308;
}

.status-red {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.copyright {
    font-size: 0.7rem;
    color: var(--text-muted);
}

body.dark-mode .suggestions-list {
    border-color: #334155;
}

.name {
    position: relative;
}

body.dark-mode .name {
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

@keyframes jump-once {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    30% {
        transform: translateY(-20px) scale(1.1);
    }

    50% {
        transform: translateY(0) scale(0.9);
    }
}

.animate-jump {
    animation: jump-once 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .go-details-grid {
        grid-template-columns: 1fr;
    }

    .name {
        font-size: 2rem;
    }
}
