/*
Theme Name: Apkevo - APK Store Theme
Description: Premium APK Store UI (Dark + Conversion Optimized)
Version: 2.0
*/

/* =========================
   ROOT SYSTEM
========================= */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #3b82f6;

    --bg: #0b1020;
    --card: #121a2f;
    --border: rgba(255,255,255,0.08);

    --text: #e5e7eb;
    --muted: #94a3b8;

    --radius: 14px;
}

/* =========================
   BASE
========================= */
body {
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: var(--text);
    font-family: system-ui;
}

/* =========================
   HEADER
========================= */
.site-header {
    background: rgba(10,15,30,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-logo {
    font-weight: 800;
    font-size: 22px;
    color: white;
}

.site-logo span {
    color: var(--primary);
}

/* =========================
   GRID
========================= */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    gap: 20px;
    padding: 30px 0;
}

/* =========================
   APP CARD
========================= */
.app-card {
    background: linear-gradient(145deg, #121a2f, #0b1020);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.3s;
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* IMAGE */
.app-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* CONTENT */
.app-card-content {
    padding: 12px;
}

.app-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* META */
.app-meta {
    font-size: 13px;
    color: var(--muted);
}

/* RATING */
.app-rating {
    color: #facc15;
    font-weight: bold;
}

/* BADGE */
.app-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
}

/* =========================
   DOWNLOAD BUTTON (IMPORTANT)
========================= */
.download-btn {
    display: block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.2s;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(34,197,94,0.5);
}

/* =========================
   SINGLE PAGE
========================= */
.app-single {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.app-icon img {
    border-radius: 20px;
    width: 100%;
}

.app-details h1 {
    font-size: 28px;
    font-weight: 800;
}

.app-info-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

/* =========================
   SCREENSHOTS
========================= */
.screenshots {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.screenshots img {
    height: 300px;
    border-radius: 10px;
}

/* =========================
   SEARCH
========================= */
.search-form {
    display: flex;
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
}

.search-form button {
    background: var(--primary);
    border: none;
    padding: 10px 15px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px) {
    .app-single {
        grid-template-columns: 1fr;
    }

    .apps-grid {
        grid-template-columns: repeat(2,1fr);
    }
}