/* ===== 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;
}

/* ===== SLIDER SECTION ===== */

.slider-section {
    margin: 1.5rem 0 2rem;
}

.slider-container {
    position: relative;
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    border-radius: 24px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.12);
}

/* Slides */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.2rem;
    align-items: center;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.slider-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Image */
.slider-image {
    width: 100%;
    height: 140px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 3.5rem;
    color: #7c3aed;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.slider-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.slider-content p {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.slider-badge {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 0.15rem 0.7rem;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.slider-btn {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: 0.2s;
    border: 2px solid #7c3aed;
}

.slider-btn:hover {
    background: transparent;
    color: #7c3aed;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.85);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: 0.2s;
}

.slider-arrow:hover {
    background: #7c3aed;
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.3);
    cursor: pointer;
    transition: 0.2s;
}

.slider-dot.active {
    background: #7c3aed;
    width: 20px;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 600px) {
    .slider-container {
        height: 200px;
    }
    .slider-slide {
        grid-template-columns: 100px 1fr;
        padding: 0.8rem 3rem 0.8rem 1rem;
        gap: 0.8rem;
    }
    .slider-image {
        height: 90px;
        font-size: 2.5rem;
    }
    .slider-content h3 {
        font-size: 0.95rem;
    }
    .slider-content p {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    .slider-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.9rem;
    }
    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .slider-prev { left: 4px; }
    .slider-next { right: 4px; }
}

/* ----- 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; }
}