/* Base Styles */
body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    max-width: 600px;
    margin: -24px auto 40px; /* Negative margin to pull up into header space slightly if needed, or adjusted */
    margin-top: 40px;
    z-index: 20;
}

.search-input {
    width: 100%;
    padding: 16px 24px 16px 56px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01), 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #22c55e;
}

/* Category Chips */
.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    margin-bottom: 32px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.category-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.category-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

.category-chip {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-chip:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.category-chip.active {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

/* App Card Styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
}

.app-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border-color: #bbf7d0;
}

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.app-info h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.app-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #16a34a;
}

.app-description {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    font-weight: 500;
}

.launch-btn {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.launch-btn:hover {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

/* Verified Badge */
.verified-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #3b82f6;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    .search-input {
        font-size: 1rem;
    }
}