:root {
    --primary-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #fff;
    --border-color: #e0e0e0;
    --success: #10b981;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-grad);
    min-height: 100vh;
    padding: 2rem;
    color: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title {
    color: var(--primary-end);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -0.5rem;
}

.btn-home {
    padding: 0.8rem 1.8rem;
    background: var(--primary-grad);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(118, 75, 162, 0.5);
}

.search-container {
    position: relative;
    margin-top: 1.5rem;
}

#searchInput {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-end);
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary-end);
    background: var(--white);
    color: var(--primary-end);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-grad);
    color: var(--white);
    border-color: transparent;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    background: var(--primary-grad);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
}

.stat span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.icon-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: var(--primary-end);
}

.icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.icon-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.icon-card:hover .icon-wrapper img {
    transform: scale(1.05);
}

.icon-name {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1rem;
    word-break: break-word;
}

.copy-btn {
    padding: 0.6rem 1rem;
    background: var(--primary-grad);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.copy-btn.copied {
    background: var(--success);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.no-results h2 {
    color: var(--primary-end);
    margin-bottom: 1rem;
}

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--white);
    margin-top: 2rem;
}

.footer p {
    opacity: 0.9;
    margin: 0.2rem 0;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .header-title {
        font-size: 1.8rem;
    }
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-home {
        width: 100%;
        justify-content: center;
    }
}
