/* ===== APP ZONE CSS ===== */

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

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f1f5f9;
    color: #0b1120;
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* ----- HEADER ----- */
.app-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}
.app-header h1 {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #0b1120, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.app-header h1 i {
    -webkit-text-fill-color: initial;
    color: #7c3aed;
}
.app-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* ----- SEARCH ----- */
.search-box {
    width: 100%;
    max-width: 500px;
    margin: 1rem auto;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    font-size: 1rem;
    transition: 0.2s;
    background: #fff;
}
.search-box input:focus {
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 0 0 4px #7c3aed20;
}
.search-box .fa-search {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* ----- CATEGORIES ----- */
.categories-scroll {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    margin-bottom: 1.5rem;
}
.categories-scroll::-webkit-scrollbar {
    height: 4px;
}
.categories-scroll::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 10px;
}
.cat-item {
    flex: 0 0 auto;
    background: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    border: 2px solid #e2e8f0;
}
.cat-item:hover {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}
.cat-item.active {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #5b21b6;
}
.cat-item i {
    margin-right: 6px;
}

/* ----- SECTION HEADERS ----- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 0.8rem;
}
.section-header h2 {
    font-size: 1.5rem;
}
.section-header a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}

/* ----- APP GRID ----- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    margin: 0.5rem 0;
}
.app-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    transition: 0.25s;
    text-align: center;
}
.app-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 30px rgba(124,58,237,0.08);
    transform: translateY(-4px);
}
.app-card .logo {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    font-size: 2.5rem;
    color: #7c3aed;
}
.app-card .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}
.app-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.app-card .rating {
    color: #f59e0b;
    font-size: 0.85rem;
}
.app-card .category {
    display: inline-block;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    margin: 0.3rem 0;
}
.app-card .platform {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin: 0.3rem 0;
}
.app-card .platform span {
    background: #f1f5f9;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}
.app-card .btn {
    display: inline-block;
    margin-top: 0.6rem;
    background: #7c3aed;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.app-card .btn:hover {
    background: #5b21b6;
}

/* ----- NO RESULTS ----- */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 1.1rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .app-header h1 { font-size: 1.8rem; }
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .app-card { padding: 0.8rem; }
    .app-card .logo { width: 55px; height: 55px; font-size: 2rem; }
    .app-card h3 { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .app-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}