/* ═══════════════════ Hero ═══════════════════ */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -1px;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 2rem;
}
.hero-sub strong {
    color: var(--accent);
    font-weight: 700;
}

/* ═══════════════════ Search ═══════════════════ */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper #search {
    width: 100%;
    height: auto;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    line-height: 1.5;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-alt);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 0;
}
.search-wrapper #search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 0, 139, 0.15);
}
.search-wrapper #search::placeholder {
    color: var(--text-muted);
}

.search-wrapper #suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
}

/* ═══════════════════ Category Grid ═══════════════════ */
.categories {
    padding: 0.5rem 0 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-radius: 14px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 100px;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    text-decoration: none;
}
.category-card:active {
    transform: scale(0.97);
}

.cat-emoji {
    font-size: 2rem;
    line-height: 1;
}

.cat-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.cat-desc {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 500;
}

/* ═══════════════════ Responsive ═══════════════════ */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 2rem 0 1.5rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .category-card { min-height: 90px; padding: 1rem 0.5rem; border-radius: 12px; }
    .cat-emoji { font-size: 1.75rem; }
    .cat-name { font-size: 0.85rem; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 0.85rem; }
    .search-wrapper #search { padding: 0.75rem 1rem; font-size: 1rem; }
    .category-grid { gap: 0.5rem; }
    .category-card { min-height: 80px; padding: 0.75rem 0.5rem; }
    .cat-emoji { font-size: 1.5rem; }
    .cat-name { font-size: 0.8rem; }
    .cat-desc { font-size: 0.65rem; }
}
