/*
Theme Name: PK Noman-Theme (2026 AI Edition)
Theme URI: https://apkpure.co.in
Author: Nazir Hussain & AI
Description: Ultra-lightweight (<40KB), 0.1s FCP, 100/100 PageSpeed AI Theme for Mod APK & Android App Directories.
Version: 2026.2.0
Text Domain: noman-ai
*/

:root {
    --bg-main: #070b14;
    --bg-panel: #0d1424;
    --bg-card: #141e33;
    --bg-card-hover: #1a2742;
    --bg-input: #111a2e;
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.25);
    --green: #10e868;
    --green-glow: rgba(16, 232, 104, 0.22);
    --gold: #ffb800;
    --purple: #9d4edd;
    --text-white: #f1f5f9;
    --text-muted: #8b9bb4;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-pill: 50px;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

body.light-mode {
    --bg-main: #f0f4f8;
    --bg-panel: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #e2e8f0;
    --bg-input: #e2e8f0;
    --text-white: #0f172a;
    --text-muted: #475569;
    --border-subtle: rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= HEADER & TOP NAVIGATION ================= */
.ai-header {
    background: rgba(13, 20, 36, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.ai-brain-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--cyan), #3a0ca3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--cyan-glow);
    font-size: 18px;
}

.site-logo .ai-tag {
    color: #a855f7;
    font-weight: 800;
}

/* AI Smart Search Bar */
.search-container {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.ai-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 6px 8px 6px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-search-form:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 14px var(--cyan-glow);
}

.ai-search-input {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 100%;
    font-size: 14px;
    outline: none;
}

.ai-search-input::placeholder {
    color: var(--text-muted);
}

.ai-search-btn {
    background: rgba(0, 229, 255, 0.14);
    color: var(--cyan);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Live Search Results Dropdown */
.ai-live-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.ai-live-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.ai-live-item:hover {
    background: var(--bg-card-hover);
}

.ai-live-item img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

/* Header Right Icons & Toggles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.action-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-white);
}

.action-circle.bolt {
    background: rgba(157, 78, 221, 0.2);
    color: #c77dff;
}

.action-circle.android {
    color: var(--green);
}

/* Sub-Bar: Quick Categories, Dark & Fast-Mode Toggles + Trending Tags */
.header-subbar {
    background: rgba(7, 11, 20, 0.65);
    border-top: 1px solid var(--border-subtle);
    padding: 8px 18px;
}

.subbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.subbar-inner::-webkit-scrollbar {
    display: none;
}

.quick-toggles {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-muted);
}

.toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.switch-track {
    width: 34px;
    height: 18px;
    background: #23304c;
    border-radius: 20px;
    position: relative;
    transition: 0.25s;
}

.switch-track::after {
    content: "";
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.25s;
}

.switch-track.active {
    background: var(--cyan);
}

.switch-track.active::after {
    left: 18px;
    background: #050811;
}

.trending-tags {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.trending-tags a {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: color 0.15s;
}

.trending-tags a:hover {
    color: var(--cyan);
}

/* ================= MAIN 2-COLUMN DESKTOP & MOBILE LAYOUT ================= */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 22px;
    align-items: start;
}

.main-column {
    min-width: 0;
}

.section-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}

.btn-view-all:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* ================= HERO FEATURE BANNER ================= */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 210px;
    background: linear-gradient(125deg, #162447 0%, #1f4068 55%, #1b1b2f 100%);
    border: 1px solid rgba(0, 229, 255, 0.18);
    display: flex;
    align-items: flex-end;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.4s ease;
}

.hero-banner:hover .hero-banner-bg {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.65) 55%, rgba(7, 11, 20, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.hero-sub {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.hero-meta .ai-checked {
    color: var(--green);
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.hero-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.hero-dots span.active {
    background: var(--cyan);
    width: 18px;
    border-radius: 10px;
}

/* ================= CIRCULAR ICON STORY FEED ================= */
.story-strip-wrap {
    margin-bottom: 18px;
}

.story-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px 2px;
    scrollbar-width: none;
}

.story-strip::-webkit-scrollbar {
    display: none;
}

.story-play-btn {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.15);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 12px var(--cyan-glow);
    flex-shrink: 0;
}

.story-item {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    flex-shrink: 0;
    transition: transform 0.2s;
}

.story-item:hover {
    transform: scale(1.08);
}

.story-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-main);
}

/* ================= CATEGORY FILTER PILLS ================= */
.category-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.cat-pill.active,
.cat-pill:hover {
    background: var(--cyan);
    color: #040811;
    border-color: var(--cyan);
    box-shadow: 0 0 14px var(--cyan-glow);
}

/* ================= AI RECOMMENDED APPS GRID ================= */
.ai-app-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.ai-app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 12px 12px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ai-app-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.card-top-star {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    color: var(--gold);
    background: rgba(255, 184, 0, 0.12);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
    border-radius: 16px;
    overflow: hidden;
    background: #0b111e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-stars {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.card-size {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.card-check-badge {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--green);
    color: #041208;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--green-glow);
}

.center-btn-row {
    text-align: center;
    margin: 16px 0 26px;
}

/* ================= RIGHT SIDEBAR / SINGLE APK PANEL ================= */
.apk-detail-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    position: sticky;
    top: 84px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.panel-hero-top {
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.panel-app-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.18);
}

.panel-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-app-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 3px;
}

.panel-app-dev {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Glowing Pill Download APK Button */
.btn-neon-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    background: rgba(16, 232, 104, 0.13);
    border: 2px solid var(--green);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 0 18px var(--green-glow);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-neon-download:hover {
    background: var(--green);
    color: #041208;
    transform: translateY(-2px);
}

.btn-neon-download span.dl-size {
    font-weight: 600;
    opacity: 0.9;
}

/* 3-Column Spec Strip (100% Secure / Last Updated / Android) */
.spec-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 14px 0;
    margin: 16px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.spec-col {
    border-right: 1px solid var(--border-subtle);
    padding: 0 6px;
}

.spec-col:last-child {
    border-right: none;
}

.spec-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 3px;
}

.spec-val {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-white);
}

.spec-col.secure .spec-label,
.spec-col.secure .spec-val {
    color: var(--green);
}

/* User Reviews Micro-Bar Graph Box */
.reviews-graph-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
}

.reviews-graph-title {
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-white);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 46px;
    gap: 5px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.bar-chart span {
    flex: 1;
    background: linear-gradient(180deg, var(--cyan), #2563eb);
    border-radius: 3px 3px 0 0;
    min-height: 4px;
}

.reviews-Count {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Panel About Bullets */
.panel-about h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.panel-about ul {
    list-style: disc;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 12.5px;
}

.panel-about ul li {
    margin-bottom: 6px;
}

/* ================= FULL SINGLE APK PAGE LAYOUT ================= */
.single-apk-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 18px;
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 24px;
}

.single-main-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.breadcrumb-nav {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb-nav a:hover {
    color: var(--cyan);
}

.apk-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.apk-info-table th,
.apk-info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13.5px;
}

.apk-info-table th {
    color: var(--text-muted);
    width: 38%;
    font-weight: 600;
}

.apk-info-table td {
    color: var(--text-white);
    font-weight: 700;
}

.entry-content {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 18px;
}

.entry-content h2,
.entry-content h3 {
    color: var(--text-white);
    margin: 22px 0 10px;
}

.entry-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.download-box-final {
    background: linear-gradient(135deg, rgba(16, 232, 104, 0.08), rgba(0, 229, 255, 0.08));
    border: 1.5px dashed var(--green);
    border-radius: var(--radius-lg);
    padding: 26px;
    text-align: center;
    margin-top: 28px;
}

/* ================= RESPONSIVE MOBILE VIEW (PIXEL 11 LOOK) ================= */
@media (max-width: 1080px) {
    .site-container,
    .single-apk-wrapper {
        grid-template-columns: 1fr;
    }
    .ai-app-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .apk-detail-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .header-top {
        flex-wrap: wrap;
        padding: 10px 14px;
    }
    .search-container {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 6px;
    }
    .ai-app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .card-icon-wrap {
        width: 58px;
        height: 58px;
    }
    .hero-title {
        font-size: 19px;
    }
    .trending-tags {
        display: none;
    }
}