:root {
    --primary-color: #00ca72;
    --primary-dark: #00a55d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;
    --header-bg: #ffffff;
    --border-color: #eeeeee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --max-width: 1200px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 32px;
    width: 32px;
    border-radius: 6px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #f1f1f1;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 202, 114, 0.1);
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, #00ca72 0%, #00a55d 100%);
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Slideshow / Hot Apps */
.hot-apps {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.hot-card {
    min-width: 380px;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.hot-card:hover {
    transform: translateY(-5px);
}

.hot-card img.banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hot-card-overlay img.icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
}

.hot-card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.hot-card-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.btn-download {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.app-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-color);
    transform: translateY(-3px);
}

.app-card img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.app-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card .dev {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.app-card .rating {
    color: #ffa726;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.app-card .btn-install {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.app-card:hover .btn-install {
    background: var(--primary-color);
    color: white;
}

/* Category Section */
.categories {
    margin-bottom: 4rem;
}

.cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cat-item {
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.cat-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #fff;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-col ul li:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .search-bar {
        display: none;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
