/*
Theme Name: Gamefyre Pro
Theme URI: https://gamefyre.store/
Author: Gamefyre
Author URI: https://gamefyre.store/
Description: Professional WordPress theme for APK discovery landing pages and index navigation.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: gamefyre-pro
*/

:root {
    --gf-font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
    --gf-font-display: "Plus Jakarta Sans", "Cairo", "Segoe UI", sans-serif;
    --gf-bg: #f4f8ff;
    --gf-bg-2: #eef7ff;
    --gf-panel: #ffffff;
    --gf-border: #d7e4f7;
    --gf-text: #10223e;
    --gf-soft: #55667f;
    --gf-accent: #0b75ff;
    --gf-accent-2: #14c3bc;
    --gf-accent-3: #ff7d4d;
    --gf-shadow-lg: 0 22px 54px rgba(13, 42, 88, 0.16);
    --gf-shadow-md: 0 12px 30px rgba(11, 36, 76, 0.12);
    --gf-radius-xl: 28px;
    --gf-radius-lg: 20px;
    --gf-radius-md: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.gf-theme {
    margin: 0;
    background: linear-gradient(152deg, #f6faff 0%, var(--gf-bg) 40%, var(--gf-bg-2) 100%);
    color: var(--gf-text);
    font-family: var(--gf-font-body);
    line-height: 1.65;
}

a {
    color: var(--gf-accent);
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

a:hover {
    color: #0a5cc7;
}

.gf-site-wrap {
    min-height: 100vh;
}

.gf-container {
    width: min(1160px, 92%);
    margin: 0 auto;
    padding: 0 16px;
}

.gf-main {
    position: relative;
    padding: 24px 0 56px;
    overflow: hidden;
}

.gf-main::before,
.gf-main::after {
    content: "";
    position: absolute;
    width: 42vw;
    max-width: 520px;
    height: 42vw;
    max-height: 520px;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    opacity: .35;
}

.gf-main::before {
    top: -18vw;
    right: -12vw;
    background: radial-gradient(circle, rgba(11, 117, 255, .45) 0%, rgba(11, 117, 255, 0) 70%);
}

.gf-main::after {
    bottom: -22vw;
    left: -14vw;
    background: radial-gradient(circle, rgba(255, 125, 77, .4) 0%, rgba(255, 125, 77, 0) 72%);
}

.gf-layer {
    position: relative;
    z-index: 1;
}

.gf-header {
    padding: 16px 0 0;
}

.gf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #cfdef6;
    border-radius: var(--gf-radius-lg);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px rgba(12, 44, 89, .14);
    padding: 10px 12px;
    position: sticky;
    top: 10px;
    z-index: 30;
    margin-bottom: 16px;
}

.gf-topbar.is-compact {
    box-shadow: 0 18px 38px rgba(12, 44, 89, .2);
}

.admin-bar .gf-topbar {
    top: 42px;
}

.gf-brand {
    min-width: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gf-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #cde0fb;
    background: linear-gradient(150deg, #ffffff 0%, #eff6ff 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(12, 52, 108, .1);
    flex: 0 0 auto;
}

.gf-brand-logo,
.gf-brand-mark img,
.gf-brand-mark .custom-logo {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.gf-brand-copy {
    display: grid;
    line-height: 1.05;
}

.gf-brand-copy strong {
    font-size: 1rem;
    font-family: var(--gf-font-display);
    color: #112949;
    letter-spacing: .01em;
}

.gf-brand-copy em {
    margin-top: 3px;
    font-style: normal;
    font-size: .76rem;
    color: #587091;
}

.gf-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.gf-nav a {
    text-decoration: none;
    color: #214164;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.gf-nav a:hover {
    color: #0b4fad;
    border-color: #c7dcfa;
    background: #f4f9ff;
}

.gf-nav a.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(98deg, var(--gf-accent), var(--gf-accent-2));
}

.gf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: var(--gf-radius-md);
    border: 1px solid transparent;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.gf-btn:hover {
    transform: translateY(-1px);
    opacity: .98;
}

.gf-btn-solid {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(98deg, var(--gf-accent), var(--gf-accent-2));
    box-shadow: 0 10px 22px rgba(14, 78, 171, .24);
}

.gf-btn-outline {
    color: #1d4f9d;
    background: #fff;
    border-color: #c4d9f7;
}

.gf-btn-lg {
    padding: 13px 18px;
    border-radius: 16px;
    font-size: 14px;
}

.gf-btn-sm {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.gf-section {
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius-xl);
    background: var(--gf-panel);
    box-shadow: var(--gf-shadow-md);
    padding: 24px;
}

.gf-section + .gf-section,
.gf-grid-3,
.gf-steps,
.gf-chips,
.gf-cta-band,
.gf-footer {
    margin-top: 16px;
}

.gf-hero {
    position: relative;
    border-color: #d3e5f8;
    background: linear-gradient(132deg, #ffffff 0%, #f1f8ff 48%, #f4fffb 100%);
    box-shadow: var(--gf-shadow-lg);
    display: grid;
    grid-template-columns: 1.58fr 1fr;
    gap: 16px;
}

.gf-kicker {
    margin: 0 0 10px;
    color: #0d5fcc;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
}

.gf-hero h1 {
    margin: 0 0 12px;
    font-family: var(--gf-font-display);
    font-size: clamp(1.8rem, 3.1vw, 2.9rem);
    line-height: 1.03;
    letter-spacing: -.025em;
    color: #0f2848;
}

.gf-hero p {
    margin: 0;
    color: #355373;
}

.gf-hero-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gf-bullets {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.gf-bullets li {
    position: relative;
    border: 1px solid #d8e7f9;
    border-radius: 12px;
    background: #ffffff;
    color: #2c4869;
    font-size: 14px;
    padding: 9px 12px 9px 34px;
}

.gf-bullets li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--gf-accent), var(--gf-accent-2));
    box-shadow: 0 0 0 4px rgba(11, 117, 255, .12);
}

.gf-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gf-metric {
    border: 1px solid #d5e6fa;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.gf-metric span {
    display: block;
    color: #59708b;
    font-size: 12px;
}

.gf-metric strong {
    margin-top: 4px;
    display: block;
    font-family: var(--gf-font-display);
    font-size: clamp(1.15rem, 2.1vw, 1.55rem);
    color: #102949;
    line-height: 1.15;
}

.gf-metric em {
    margin-top: 4px;
    display: inline-block;
    font-style: normal;
    font-size: 11px;
    color: #1d5aa9;
    border: 1px solid #cce0fb;
    border-radius: 999px;
    padding: 2px 7px;
    background: #eef6ff;
}

.gf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gf-card {
    border: 1px solid #d6e6f8;
    border-radius: 16px;
    background: linear-gradient(152deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: 0 10px 24px rgba(12, 42, 86, .09);
    padding: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gf-card:hover {
    transform: translateY(-3px);
    border-color: #b7d3f7;
    box-shadow: 0 16px 28px rgba(11, 39, 80, .14);
}

.gf-card h2,
.gf-card h3 {
    margin: 0 0 8px;
    font-family: var(--gf-font-display);
    color: #112d4f;
    line-height: 1.35;
}

.gf-card h2 {
    font-size: 1.08rem;
}

.gf-card h3 {
    font-size: 1rem;
}

.gf-card p {
    margin: 0;
    font-size: 14px;
    color: #3d5b7c;
    line-height: 1.72;
}

.gf-steps .gf-card span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gf-font-display);
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(110deg, var(--gf-accent), var(--gf-accent-2));
}

.gf-chips h2,
#latest-apps h2,
.gf-cta-band h2,
.gf-footer h3 {
    margin: 0;
    font-family: var(--gf-font-display);
}

.gf-chip-list {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gf-chip-list a {
    border: 1px solid #c7dbf9;
    border-radius: 999px;
    background: #edf5ff;
    color: #1853a2;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    transition: transform .16s ease, background-color .16s ease;
}

.gf-chip-list a:hover {
    transform: translateY(-1px);
    background: #e4f0ff;
}

.gf-app-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.gf-app {
    border: 1px solid #d4e4f7;
    border-radius: 16px;
    background: linear-gradient(150deg, #ffffff 0%, #f5faff 100%);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(11, 39, 80, .1);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gf-app:hover {
    transform: translateY(-3px);
    border-color: #b7d3f7;
    box-shadow: 0 16px 28px rgba(11, 39, 80, .14);
}

.gf-app-head {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: var(--gf-text);
}

.gf-app-head img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #cfe1f8;
    background: #fff;
    object-fit: cover;
    flex: 0 0 auto;
}

.gf-app-head h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-family: var(--gf-font-display);
}

.gf-app-head p {
    margin: 5px 0 0;
    color: var(--gf-soft);
    font-size: 13px;
}

.gf-app-meta {
    margin-top: 12px;
    color: var(--gf-soft);
    font-size: 13px;
}

.gf-app-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gf-cta-band {
    border: 1px solid #cce2fb;
    border-radius: 24px;
    background: linear-gradient(114deg, rgba(11, 117, 255, .96) 0%, rgba(20, 195, 188, .93) 74%, rgba(79, 224, 168, .9) 100%);
    box-shadow: 0 18px 34px rgba(11, 58, 133, .24);
    color: #fff;
    padding: 24px;
}

.gf-cta-band h2 {
    color: #fff;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.gf-cta-band p {
    margin: 10px 0 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, .92);
}

.gf-cta-band .gf-btn-outline {
    border-color: rgba(255, 255, 255, .52);
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.gf-footer {
    border: 1px solid #cddff8;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f3f9ff 52%, #effbff 100%);
    box-shadow: 0 16px 34px rgba(12, 44, 89, .14);
    padding: 22px;
}

.gf-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 14px;
}

.gf-footer-grid section h3 {
    margin: 0 0 10px;
    font-family: var(--gf-font-display);
    font-size: 1rem;
    color: #122f51;
}

.gf-footer-grid section p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: #395779;
}

.gf-footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.gf-footer-grid li a {
    text-decoration: none;
    color: #315476;
    font-size: 14px;
}

.gf-footer-grid li a:hover {
    color: #0d61c4;
}

.gf-footer-meta {
    margin-top: 14px;
    border-top: 1px solid #d7e6fa;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.gf-footer-meta p {
    margin: 0;
    color: #4f6785;
    font-size: 13px;
}

.gf-simple-page {
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius-xl);
    background: var(--gf-panel);
    box-shadow: var(--gf-shadow-md);
    padding: 24px;
}

.gf-simple-page h1 {
    margin: 0 0 14px;
    font-family: var(--gf-font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.gf-simple-page article {
    color: #2f4d6f;
}

.gf-simple-page p,
.gf-simple-page ul,
.gf-simple-page ol {
    margin-top: 0;
    margin-bottom: 1rem;
}

.gf-simple-page img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.gf-resource-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gf-resource-card {
    border: 1px solid #d4e5fb;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
    box-shadow: 0 10px 24px rgba(12, 44, 89, .1);
    padding: 16px;
}

.gf-resource-card h2 {
    margin: 0 0 10px;
    font-family: var(--gf-font-display);
    font-size: 1rem;
    color: #153a63;
}

.gf-resource-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.gf-resource-card li a {
    text-decoration: none;
    color: #2a517a;
    font-size: 14px;
}

.gf-resource-card li a:hover {
    color: #0b63c8;
}

.gf-pillar-stream {
    margin-top: 14px;
}

.gf-pillar-stream-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.gf-pillar-stream-head h2 {
    margin: 0;
}

.gf-hub-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gf-hub-card {
    border: 1px solid #d4e5fb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(12, 44, 89, .1);
    padding: 16px;
}

.gf-hub-card h2 {
    margin: 0 0 8px;
    font-family: var(--gf-font-display);
    font-size: 1.05rem;
}

.gf-hub-card h2 a {
    text-decoration: none;
    color: #16395f;
}

.gf-hub-card p {
    margin: 0 0 10px;
    color: #416182;
}

.gf-hub-card ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.gf-hub-card ul li a {
    text-decoration: none;
    color: #2a517a;
    font-size: 14px;
}

.gf-hub-card ul li a:hover {
    color: #0b63c8;
}

.gf-guides-shell {
    display: grid;
    gap: 16px;
}

.gf-blog-shell {
    display: grid;
    gap: 16px;
}

.gf-guides-head h1 {
    margin-bottom: 10px;
}

.gf-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.gf-cluster-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gf-cluster-pill {
    text-decoration: none;
    border: 1px solid #c9ddfa;
    border-radius: 999px;
    padding: 8px 12px;
    color: #234a75;
    font-size: 13px;
    font-weight: 700;
    background: #f4f9ff;
}

.gf-cluster-pill.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(98deg, var(--gf-accent), var(--gf-accent-2));
}

.gf-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gf-editorial-card {
    border: 1px solid #d4e5fb;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

.gf-editorial-card h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.4;
}

.gf-editorial-card h2 a {
    text-decoration: none;
    color: #153a63;
}

.gf-editorial-card p {
    margin: 0 0 10px;
    color: #3c5c7e;
    font-size: 14px;
    line-height: 1.7;
}

.gf-editorial-card .gf-editorial-tax {
    margin-bottom: 8px;
    color: #0e5fc4;
    font-size: 12px;
    font-weight: 700;
}

.gf-editorial-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #5a7291;
    font-size: 13px;
}

.gf-editorial-meta a {
    text-decoration: none;
    font-weight: 700;
    color: #0c63c7;
}

.gf-pagination-wrap .page-numbers {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gf-pagination-wrap .page-numbers a,
.gf-pagination-wrap .page-numbers .current {
    border: 1px solid #cbddf8;
    border-radius: 999px;
    padding: 6px 11px;
    text-decoration: none;
    font-size: 13px;
}

.gf-pagination-wrap .page-numbers .current {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(98deg, var(--gf-accent), var(--gf-accent-2));
}

.gf-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf-search-form input[type="search"] {
    border: 1px solid #cddff8;
    border-radius: 999px;
    background: #fff;
    color: #153a63;
    padding: 8px 12px;
    min-width: 220px;
    font-size: 14px;
}

.gf-search-form button {
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(98deg, var(--gf-accent), var(--gf-accent-2));
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gf-related-articles {
    margin-top: 20px;
    border: 1px solid #cfe2fb;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f3f9ff 100%);
    padding: 14px;
}

.gf-related-articles h2 {
    margin: 0 0 10px;
    font-family: var(--gf-font-display);
    font-size: 1rem;
    color: #14395f;
}

.gf-related-articles ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.gf-related-articles li a {
    text-decoration: none;
    color: #2c527b;
    font-size: 14px;
}

.gf-related-articles li a:hover {
    color: #0b63c8;
}

.gf-author-box {
    margin-top: 18px;
    border: 1px solid #cfe3fb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(12, 44, 89, .08);
    padding: 14px;
}

.gf-author-box h2 {
    margin: 0 0 10px;
    font-family: var(--gf-font-display);
    font-size: 1rem;
    color: #16395f;
}

.gf-author-box p {
    margin: 0 0 8px;
    color: #355677;
    font-size: 14px;
}

.gf-author-box a {
    color: #0b63c8;
    text-decoration: none;
    font-weight: 700;
}

.gf-author-box a:hover {
    text-decoration: underline;
}

@media (max-width: 1080px) {
    .gf-topbar {
        flex-wrap: wrap;
        position: relative;
        top: 0;
    }

    .gf-nav {
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 2px;
    }

    .gf-nav::-webkit-scrollbar {
        height: 6px;
    }

    .gf-nav::-webkit-scrollbar-thumb {
        background: #d0e2fa;
        border-radius: 999px;
    }

    .gf-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .gf-hero,
    .gf-grid-3,
    .gf-resource-grid,
    .gf-hub-grid,
    .gf-editorial-grid {
        grid-template-columns: 1fr;
    }

    .gf-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gf-search-form {
        width: 100%;
    }

    .gf-search-form input[type="search"] {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 782px) {
    .admin-bar .gf-topbar {
        top: 56px;
    }
}

@media (max-width: 700px) {
    .gf-container {
        width: min(1160px, 94%);
        padding: 0 10px;
    }

    .gf-main {
        padding: 18px 0 44px;
    }

    .gf-section,
    .gf-simple-page,
    .gf-footer,
    .gf-hero {
        border-radius: 18px;
        padding: 16px;
    }

    .gf-topbar {
        border-radius: 16px;
        padding: 10px;
    }

    .gf-footer-grid,
    .gf-metrics {
        grid-template-columns: 1fr;
    }

    .gf-cta-band {
        border-radius: 18px;
        padding: 18px;
    }

    .gf-brand-copy strong {
        font-size: .94rem;
    }

    .gf-brand-copy em {
        font-size: .72rem;
    }
}
