/*
Theme Name: APKBox 2026 Titanium (APKPure Clone)
Theme URI: https://apkbox.online
Author: Manus AI
Description: Pixel-perfect clone of APKPure.net with Titanium Importer.
Version: 6.0.0
*/

:root {
    --primary: #24cd76; /* APKPure Green */
    --primary-hover: #1ebc6a;
    --bg-body: #f2f2f2;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #999999;
    --border: #e6e6e6;
    --shadow: 0 2px 5px rgba(0,0,0,0.05);
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
.site-header {
    background: #fff;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}
.logo img { height: 32px; margin-right: 8px; }

/* SEARCH BAR */
.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}
.header-search input {
    width: 100%;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 18px;
    padding: 0 20px;
    font-size: 14px;
    color: #333;
    outline: none;
}
.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

/* NAV */
.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}
.main-nav a {
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 13px;
}
.main-nav a:hover { color: var(--primary); }

/* HERO SLIDER (APKPure Style) */
.hero-section {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.featured-app {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}
.featured-app img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: #fff;
}
.featured-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* APP LISTS */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title a {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.app-list-vertical {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 10px;
}
.app-item-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
}
.app-item-row:last-child { border-bottom: none; }
.app-item-row:hover { background: #f9f9f9; }

.app-icon-sm {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-right: 15px;
}
.app-info-row {
    flex: 1;
}
.app-title-row {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.app-meta-row {
    font-size: 12px;
    color: #999;
}
.btn-download-sm {
    background: #f0f0f0;
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}
.btn-download-sm:hover {
    background: var(--primary);
    color: #fff;
}

/* SINGLE PAGE (APKPure Exact) */
.single-header {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e6e6e6;
}
.single-flex {
    display: flex;
    gap: 25px;
}
.single-icon {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.single-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}
.single-dev {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}
.single-stats {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.download-zone {
    margin-top: 20px;
}
.btn-download-lg {
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 50px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(36, 205, 118, 0.3);
}
.btn-download-lg:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.content-wrapper {
    background: #fff;
    padding: 30px;
    margin-top: 20px;
    box-shadow: var(--shadow);
    border-radius: 4px;
}

/* FOOTER */
.site-footer {
    background: #222;
    color: #999;
    padding: 40px 0;
    margin-top: 40px;
    font-size: 13px;
}
.footer-links a { margin: 0 10px; }
.footer-links a:hover { color: #fff; }
