:root {
    --primary-gradient: linear-gradient(135deg, #6e8efb, #a777e3);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
    background: var(--primary-gradient);
    color: #333;
    min-height: 100vh;
    padding-top: 20px;
}

.hero-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container {
    background: white;
    border-radius: 50px;
    padding: 12px 25px;
    box-shadow: var(--card-shadow);
    margin: 0 auto 2rem;
    max-width: 600px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.search-icon {
    font-size: 1.3rem;
    margin-right: 12px;
    color: #a777e3;
}

#search-input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    width: 100%;
    padding: 8px 0;
    background: transparent;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.emoji-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.emoji-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.emoji-card:hover::before {
    left: 100%;
}

.emoji-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.emoji-card:active {
    transform: translateY(-2px);
}

.emoji {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    display: block;
    transition: transform 0.2s ease;
}

.emoji-card:hover .emoji {
    transform: scale(1.1);
}

.emoji-name {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.emoji-category {
    font-size: 0.75rem;
    color: #888;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.loading-container {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #a777e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.stats-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #6e8efb;
}

.toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1050;
}

.emoji-toast {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.8rem;
    }

    .emoji {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 1.5rem;
    }

    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
    }
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    margin-top: 2rem;
}