/*
Theme Name: WP Phone Directory
Theme URI: https://wpphone.com/
Author: WP Phone
Description: Fast, accessible theme for the Philippines mobile game directory.
Version: 1.0.0
Text Domain: wpphone-directory
*/

:root {
  --ink: #14213d;
  --muted: #61708a;
  --line: #dfe7f1;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --blue: #1769e0;
  --blue-dark: #0d4ba8;
  --green: #16835b;
  --orange: #f97316;
  --shadow: 0 14px 35px rgba(22, 41, 76, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f8fafc; font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 850; font-size: 1.23rem; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #1769e0, #6d5dfc); color: #fff; font-size: 14px; box-shadow: 0 8px 20px rgba(23,105,224,.25); }
.ph-pill { font-size: .67rem; color: #154fa2; background: #e7f0ff; border: 1px solid #c9dcff; border-radius: 999px; padding: 3px 7px; vertical-align: middle; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: #34445e; font-weight: 650; font-size: .94rem; }
.site-nav a:hover { color: var(--blue); }
.nav-cta { color: white !important; background: var(--blue); padding: 9px 14px; border-radius: 10px; }
.hero { padding: 76px 0 56px; color: white; background: radial-gradient(circle at 82% 18%, rgba(121,141,255,.45), transparent 27%), linear-gradient(135deg, #0d3b78, #1769e0 57%, #594ee8); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 52px; align-items: center; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; font-size: .78rem; font-weight: 800; letter-spacing: .14em; opacity: .8; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy { max-width: 680px; color: #e5edff; font-size: 1.12rem; margin: 20px 0 26px; }
.search-box { display: flex; gap: 10px; max-width: 650px; padding: 8px; background: #fff; border-radius: 15px; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.search-box input { width: 100%; border: 0; outline: 0; padding: 10px 13px; color: var(--ink); font-size: 1rem; }
.search-box button { border: 0; border-radius: 10px; padding: 11px 19px; color: #fff; background: var(--orange); font-weight: 800; cursor: pointer; }
.hero-card { padding: 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 22px; background: rgba(255,255,255,.12); box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.hero-card strong { display: block; font-size: 1.1rem; }
.hero-checks { list-style: none; margin: 17px 0 0; padding: 0; }
.hero-checks li { padding: 8px 0; color: #edf3ff; }
.hero-checks li::before { content: "✓"; color: #7ff2bd; font-weight: 900; margin-right: 10px; }
.trust-bar { background: white; border-bottom: 1px solid var(--line); }
.trust-grid { min-height: 78px; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; text-align: center; gap: 18px; }
.trust-grid strong { display: block; font-size: .96rem; }
.trust-grid span { color: var(--muted); font-size: .83rem; }
.section { padding: 62px 0; }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem,3vw,2.35rem); letter-spacing: -.035em; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.text-link { font-weight: 800; white-space: nowrap; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 22px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(22,41,76,.04); transition: .2s ease; }
.game-card:hover { color: var(--ink); transform: translateY(-4px); border-color: #b7cdf1; box-shadow: var(--shadow); }
.game-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; color: white; background: var(--accent, var(--blue)); font-weight: 900; font-size: 1.05rem; letter-spacing: -.02em; box-shadow: 0 10px 25px color-mix(in srgb, var(--accent, var(--blue)) 28%, transparent); }
.game-icon-image { overflow: hidden; background: #fff; }
.game-icon-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-card h3 { margin: 18px 0 2px; font-size: 1.23rem; line-height: 1.25; }
.developer { color: var(--muted); font-size: .87rem; }
.game-card p { color: #4f5f77; font-size: .93rem; }
.card-meta { display: flex; gap: 7px; margin-top: auto; flex-wrap: wrap; }
.tag { padding: 4px 9px; color: #345; background: #eef3f8; border-radius: 999px; font-size: .75rem; font-weight: 750; }
.category-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.category-card { padding: 18px 14px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 780; }
.category-card span { display: block; font-size: 1.6rem; margin-bottom: 7px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.guide-card { padding: 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-card h3 { margin-top: 0; }
.guide-card p { color: var(--muted); }
.page-shell { padding: 54px 0 72px; }
.page-header { margin-bottom: 30px; }
.page-header h1 { margin: 0; font-size: clamp(2rem,5vw,3.4rem); letter-spacing: -.045em; }
.page-header p { color: var(--muted); max-width: 720px; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
.game-hero { padding: 46px 0; color: white; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #14213d), var(--accent)); }
.game-hero-grid { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 28px; }
.game-hero .game-icon { width: 105px; height: 105px; font-size: 1.3rem; border: 3px solid rgba(255,255,255,.26); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.game-hero h1 { margin: 0 0 6px; font-size: clamp(2.1rem,5vw,3.8rem); line-height: 1.05; letter-spacing: -.045em; }
.game-hero p { margin: 0; color: rgba(255,255,255,.86); }
.game-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 30px; align-items: start; }
.content-panel, .download-panel, .facts-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(22,41,76,.035); }
.content-panel { padding: 30px; }
.content-panel h2 { margin-top: 34px; letter-spacing: -.025em; }
.content-panel h2:first-child { margin-top: 0; }
.content-panel li { margin: 7px 0; }
.sidebar-stack { display: grid; gap: 18px; position: sticky; top: 92px; }
.download-panel, .facts-panel { padding: 22px; }
.download-panel h2, .facts-panel h2 { margin: 0 0 14px; font-size: 1.14rem; }
.store-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 14px 15px; color: white; background: #101827; border-radius: 12px; font-weight: 800; }
.store-button:hover { color: white; background: #263449; }
.store-button.android { background: var(--green); }
.store-button.android:hover { background: #0f6846; }
.official-link { display: block; margin-top: 14px; text-align: center; font-weight: 750; }
.fact-list { margin: 0; }
.fact-list div { padding: 12px 0; border-top: 1px solid var(--line); }
.fact-list div:first-child { border-top: 0; padding-top: 0; }
.fact-list dt { color: var(--muted); font-size: .77rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.fact-list dd { margin: 3px 0 0; font-size: .92rem; }
.notice { padding: 16px 18px; color: #5b4614; background: #fff9df; border: 1px solid #f1df91; border-radius: 13px; }
.art-source { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }
.related-games { padding-top: 10px; background: var(--soft); border-top: 1px solid var(--line); }
.site-footer { color: #cad5e7; background: #101a2c; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(2, .7fr); gap: 40px; }
.site-footer h3 { color: white; margin-top: 0; }
.site-footer a { color: #dbe7f8; display: block; margin: 7px 0; }
.site-footer p { color: #aebbd0; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid #2b3850; color: #91a1ba; font-size: .83rem; }
.empty-state { padding: 34px; text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 900px) {
  .hero-grid, .game-layout { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .game-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .sidebar-stack { position: static; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 62px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 54px 0 44px; }
  .trust-grid { grid-template-columns: 1fr; padding: 18px 0; }
  .game-grid, .guide-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .game-hero-grid { grid-template-columns: 76px 1fr; }
  .game-hero .game-icon { width: 76px; height: 76px; border-radius: 17px; }
  .content-panel { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
