:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
    --radius: 16px;
    --font: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Gradients */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, #dbeafe, transparent),
        radial-gradient(circle at bottom left, #ede9fe, transparent);
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.c1 {
    width: 400px;
    height: 400px;
    background: #93c5fd;
    top: -100px;
    right: -100px;
}

.c2 {
    width: 300px;
    height: 300px;
    background: #c4b5fd;
    bottom: 10%;
    left: -50px;
}

/* Layout Header */
.app-shell {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
}

header h1 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Search UI */
.search-container {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.search-bar-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

#searchBtn {
    width: 60px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#searchBtn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Filters */
.filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-wrap label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 5px;
}

select {
    padding: 12px 18px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    background: white;
}

/* Results Area */
#resultsArea {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    animation: fadeIn 0.5s ease-out;
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
}

.store-rank {
    width: 38px;
    height: 38px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.store-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .app-shell {
        padding: 20px 15px;
    }

    .logo {
        font-size: 2rem;
    }

    .search-container {
        padding: 20px;
    }

    input[type="text"] {
        padding: 14px 18px;
    }
}