/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Header Navigation */
.app-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.app-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-back {
    color: #0071e3;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    white-space: nowrap;
}

.nav-search {
    flex: 1;
    max-width: 600px;
    background-color: rgba(142, 142, 147, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 17px;
    color: #1d1d1f;
}

.nav-search input::placeholder {
    color: #8e8e93;
}

.nav-account {
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 980px;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.nav-account:hover {
    background-color: #0077ed;
}

/* Main Content */
.app-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers */
.section-header {
    margin: 40px 0 20px;
}

.section-eyebrow {
    color: #0071e3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
}

.section-header-inline h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.see-all {
    color: #0071e3;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
}

.see-all:hover {
    text-decoration: underline;
}

/* Featured Today Section */
.featured-today {
    margin-top: 20px;
}

.featured-large {
    margin: 20px 0 16px;
}

.featured-card-large {
    background: #0071e3;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    min-height: 280px;
}

.featured-info {
    max-width: 50%;
}

.featured-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
}

.featured-card-large h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.featured-description {
    font-size: 19px;
    line-height: 1.4;
    opacity: 0.95;
    margin-bottom: 24px;
}

.btn-download {
    background-color: white;
    color: #0071e3;
    border: none;
    border-radius: 980px;
    padding: 10px 32px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-download:hover {
    opacity: 0.9;
}

.featured-icon-large {
    font-size: 120px;
    line-height: 1;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.featured-card-small {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.featured-card-small:hover {
    background-color: #e8e8ed;
}

.featured-icon-small {
    font-size: 48px;
    flex-shrink: 0;
}

.featured-mini-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8e8e93;
    margin-bottom: 4px;
}

.featured-card-small h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.featured-mini-desc {
    font-size: 13px;
    color: #8e8e93;
}

/* Category Sections */
.category-section {
    margin: 40px 0;
    padding: 20px 0;
}

/* Apps Row - Horizontal Scroll */
.apps-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 4px 0 20px 0;
    -webkit-overflow-scrolling: touch;
}

.apps-row::-webkit-scrollbar {
    height: 8px;
}

.apps-row::-webkit-scrollbar-track {
    background: transparent;
}

.apps-row::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.apps-row::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* App Card */
.app-card {
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
    cursor: pointer;
}

.app-icon {
    width: 160px;
    height: 160px;
    border-radius: 34px;
    background-color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    margin-bottom: 8px;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.app-card:hover .app-icon {
    transform: scale(1.02);
}

.app-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-subtitle {
    font-size: 13px;
    color: #8e8e93;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-get {
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 980px;
    padding: 6px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-get:hover {
    background-color: #0077ed;
}

/* Footer */
.app-footer {
    background-color: #f5f5f7;
    margin-top: 60px;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: #0071e3;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 12px;
    color: #8e8e93;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-card-large {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .featured-info {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .featured-icon-large {
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .app-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
    }

    .nav-search {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card-large h2 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-header-inline h2 {
        font-size: 21px;
    }

    .app-card {
        min-width: 140px;
        max-width: 140px;
    }

    .app-icon {
        width: 140px;
        height: 140px;
        border-radius: 30px;
        font-size: 64px;
    }
}

@media (max-width: 480px) {
    .app-main {
        padding: 0 16px;
    }

    .featured-card-large {
        padding: 24px;
        min-height: 240px;
    }

    .featured-card-large h2 {
        font-size: 28px;
    }

    .featured-description {
        font-size: 17px;
    }

    .app-card {
        min-width: 120px;
        max-width: 120px;
    }

    .app-icon {
        width: 120px;
        height: 120px;
        border-radius: 26px;
        font-size: 56px;
    }
}
