/*
Theme Name: Binnz Apps
Theme URI: https://binnz.com
Author: Binnz
Description: Fast modern app and game directory theme.
Version: 1.0.0
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f6f8fc;
    --card: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --border: #e5e7eb;
    --green: #16a34a;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    font-size: 27px;
    font-weight: 850;
    color: var(--primary);
    letter-spacing: -1.2px;
}

.main-nav {
    display: flex;
    gap: 20px;
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-search {
    margin-left: auto;
}

.header-search input {
    width: 230px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    outline: 0;
}

.hero {
    padding: 80px 0 65px;
    background:
        radial-gradient(circle at top left,#dbeafe,transparent 42%),
        linear-gradient(180deg,#fff,#f6f8fc);
}

.hero-inner {
    text-align: center;
    max-width: 850px;
    margin: auto;
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px,7vw,70px);
    letter-spacing: -3px;
    line-height: 1;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
    margin: 22px auto 32px;
}

.hero-search {
    display: flex;
    max-width: 670px;
    margin: auto;
    background: white;
    padding: 7px;
    border-radius: 16px;
    box-shadow: 0 14px 45px rgba(30,64,175,.13);
    border: 1px solid var(--border);
}

.hero-search input[type=search] {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 15px;
    font-size: 16px;
    outline: none;
}

.hero-search button {
    border: 0;
    background: var(--primary);
    color: white;
    padding: 0 25px;
    border-radius: 11px;
    font-weight: 700;
    cursor: pointer;
}

.section {
    padding: 58px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 29px;
    margin: 0;
    letter-spacing: -1px;
}

.section-head a {
    color: var(--primary);
    font-weight: 650;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.app-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: .2s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(15,23,42,.09);
}

.app-top {
    display: flex;
    gap: 15px;
    align-items: center;
}

.app-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 17px;
    overflow: hidden;
    background: #e8eef9;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 850;
    font-size: 28px;
}

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

.app-card h3 {
    font-size: 17px;
    margin: 0 0 7px;
    line-height: 1.3;
}

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

.app-description {
    color: var(--muted);
    line-height: 1.55;
    margin: 17px 0 0;
    font-size: 14px;
}

.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-pill {
    background: white;
    border: 1px solid var(--border);
    padding: 11px 17px;
    border-radius: 100px;
    font-weight: 650;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.archive-title {
    padding: 55px 0 22px;
}

.archive-title h1 {
    font-size: 38px;
    margin: 0;
}

.single-app {
    padding: 55px 0;
}

.app-hero {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 30px;
    background: white;
    border-radius: 22px;
    border: 1px solid var(--border);
}

.app-hero .app-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
}

.app-hero h1 {
    font-size: 36px;
    margin: 0 0 10px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: white;
    border-radius: 13px;
    padding: 15px 24px;
    min-width: 155px;
    font-weight: 750;
}

.download-btn:hover {
    filter: brightness(.94);
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.content-card,
.info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 27px;
}

.content-card {
    line-height: 1.75;
}

.info-row {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: 0;
}

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

.empty-state {
    background: white;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    color: var(--muted);
}

.site-footer {
    margin-top: 55px;
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    color: white;
    font-size: 24px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 920px) {

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

    .header-search {
        display: none;
    }

    .app-hero {
        grid-template-columns: 100px 1fr;
    }

    .app-hero .download-btn {
        grid-column: 1 / -1;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .main-nav {
        display: none;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 55px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-search button {
        padding: 0 17px;
    }

    .app-hero {
        grid-template-columns: 82px 1fr;
        padding: 20px;
    }

    .app-hero .app-icon {
        width: 82px;
        height: 82px;
    }

    .app-hero h1 {
        font-size: 25px;
    }

    .footer-inner {
        flex-direction: column;
    }
}
