/*
Theme Name: APK Fast Theme
Theme URI: https://nekopoi.care
Author: Hasnain Abbas
Author URI: https://nekopoi.care
Description: Material Design inspired, lightning-fast WordPress theme for APK websites.
Version: 1.1.0
Text Domain: apk-fast-theme
*/

:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --accent: #00875a;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #202124;
    --text-muted: #5f6368;
    --border-color: #e8eaed;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(60,64,67,0.08), 0 1px 2px rgba(60,64,67,0.12);
    --shadow-hover: 0 4px 12px rgba(60,64,67,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg); color: var(--text-main); line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* Header */
.site-header { background: var(--card-bg); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.header-wrapper { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.site-brand a { font-size: 20px; font-weight: 700; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 8px; }

/* Layout Grid */
.container { max-width: 1100px; margin: 28px auto; padding: 0 20px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* Material App Card */
.app-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.app-icon { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #eee; margin-bottom: 12px; }
.app-title { font-size: 16px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; line-height: 1.3; }
.app-meta { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.badge { background: #e8f0fe; color: var(--primary); padding: 2px 8px; border-radius: 12px; font-weight: 600; font-size: 11px; }

/* Single Page Layout */
.single-post-wrapper { background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 28px; box-shadow: var(--shadow-sm); }
.app-header-flex { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.app-header-icon { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow-sm); }

/* Download Box */
.download-card { background: #f1f8f5; border: 1px solid #ceead6; border-radius: var(--radius-lg); padding: 20px; margin: 30px 0; text-align: center; }
.btn-download { background: var(--accent); color: #fff; text-decoration: none; padding: 14px 28px; border-radius: 24px; font-weight: 700; font-size: 16px; display: inline-block; box-shadow: 0 4px 10px rgba(0,135,90,0.25); transition: background 0.2s, transform 0.1s; }
.btn-download:hover { background: #00704a; transform: scale(1.02); }

/* Footer */
.site-footer { text-align: center; padding: 30px 20px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border-color); margin-top: 50px; background: var(--card-bg); }

/* Responsive */
@media (max-width: 600px) {
    .app-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .app-card { padding: 12px; }
    .app-icon { width: 48px; height: 48px; border-radius: 10px; }
    .app-title { font-size: 14px; }
    .single-post-wrapper { padding: 16px; }
}