:root {
    --bg-color: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --search-bg: #f1f3f4;
    --category-bg: #f8f9fa;
    --nav-active-bg: #c2e7ff;
    --nav-active-icon: #001d35;
    --nav-inactive: #444746;
    --star-color: #0b57d0;
    --border-color: #e3e3e3;
    --category-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 412px;
    height: 100vh;
    max-height: 892px; /* Close to typical modern phone aspect ratio */
    background-color: var(--bg-color);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.app-container::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 20;
}

.status-bar .icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    gap: 16px;
    background: var(--bg-color);
    position: sticky;
    top: 40px;
    z-index: 20;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: var(--search-bg);
    border-radius: 28px;
    padding: 10px 16px;
    height: 48px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.search-bar svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.user-profile {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #00897b;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
}

/* Main Content Padding */
.main-content {
    padding-bottom: 90px;
}

/* Section Headings */
h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

/* Discover games */
.discover-section {
    padding: 24px 24px 8px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
     gap: 8px;
}

.category-item {
    background-color: var(--bg-color);
    border-radius: var(--category-radius);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.category-item span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
}

.category-item .emoji {
    font-size: 20px;
}

/* Apps list section */
.recommended-section {
    padding: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 0;
}

.section-header h2 font {
    font-weight: 700;
}

.more-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.apps-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 24px;
    gap: 16px;
    scrollbar-width: none;
}
.apps-scroll::-webkit-scrollbar {
    display: none;
}

.app-card {
    width: 96px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    margin-bottom: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.app-title {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 34px; 
}

.app-rating {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.app-rating svg {
    width: 10px;
    height: 10px;
    fill: var(--star-color);
}

/* Interests Section */
.interests-section {
    padding: 16px 24px;
    min-height: 200px;
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--bg-color);
    padding: 12px 8px 24px; /* extra bottom padding for modern phones */
    border-top: 1px solid var(--border-color);
    z-index: 30;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--nav-inactive);
    cursor: pointer;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-icon {
    width: 64px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    transition: background-color 0.2s;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
}

.nav-item.active {
    color: var(--nav-active-icon);
}

.nav-item.active .nav-icon {
    background-color: var(--nav-active-bg);
}

.nav-item.active .nav-icon svg {
    fill: var(--nav-active-icon);
    stroke: none;
}
