/*
Theme Name: Android Share Store
Theme URI: https://android-sh.com/
Author: SK Upload
Description: موقع تحميل تطبيقات أندرويد وiOS وبرامج ويندوز مع لوحة رفع ملفات لكل تطبيق.
Version: 1.1.2
Requires PHP: 7.4
Text Domain: android-sh
*/

:root {
  --ink: #0d1420;
  --night: #090d14;
  --night-2: #111a28;
  --lime: #b6f24a;
  --lime-deep: #5c8f0d;
  --page: #f5f6f2;
  --surface: #ffffff;
  --muted: #5d6877;
  --line: rgba(13, 20, 32, .09);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", sans-serif; line-height: 1.22; margin: 0; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
  background: rgba(9, 13, 20, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: "Alexandria", sans-serif; font-weight: 800; font-size: 20px; color: #fff; white-space: nowrap; }
.logo__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--night); background: var(--lime); flex: none; }
.site-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.site-nav svg { opacity: .75; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding-block: clamp(72px, 11vw, 136px) clamp(120px, 15vw, 190px);
  background:
    radial-gradient(52% 72% at 50% 8%, rgba(182, 242, 74, .2), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .17;
  background-image: linear-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .3) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(62% 72% at 50% 34%, #000 5%, transparent 78%);
  mask-image: radial-gradient(62% 72% at 50% 34%, #000 5%, transparent 78%);
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  margin-bottom: 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  background: rgba(182, 242, 74, .1);
  border: 1px solid rgba(182, 242, 74, .28);
}
.hero h1 { font-size: clamp(36px, 6.4vw, 78px); font-weight: 900; max-width: 960px; margin-inline: auto; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { font-size: clamp(17px, 1.8vw, 21px); color: rgba(255, 255, 255, .76); max-width: 640px; margin: 20px auto 34px; }

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin-inline: auto;
  padding: 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65);
}
.search-form > svg { color: #76808d; flex: none; margin-inline-start: 12px; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
}
.search-form button {
  flex: none;
  padding: 12px 28px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--night);
  background: var(--lime);
  transition: filter .15s ease;
}
.search-form button:hover { filter: brightness(.94); }

/* Floating tiles */
.float-tile {
  position: absolute;
  z-index: -1;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: tile-float 7s ease-in-out infinite;
}
.float-tile--1 { top: 16%; inset-inline-start: 7%; color: var(--lime); }
.float-tile--2 { top: 50%; inset-inline-start: 13%; width: 62px; height: 62px; border-radius: 18px; animation-delay: -2s; }
.float-tile--3 { top: 20%; inset-inline-end: 8%; animation-delay: -3.5s; }
.float-tile--4 { top: 54%; inset-inline-end: 13%; width: 62px; height: 62px; border-radius: 18px; color: var(--lime); animation-delay: -5s; }
@keyframes tile-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .float-tile { animation: none; } html { scroll-behavior: auto; } }

/* Platform tiles */
.platforms { position: relative; z-index: 2; margin-top: clamp(-120px, -9vw, -72px); }
.platforms__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 218px;
  padding: 26px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -36px rgba(13, 20, 32, .5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.platform:hover { transform: translateY(-4px); box-shadow: 0 36px 56px -32px rgba(13, 20, 32, .55); }
.platform__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; }
.platform--android .platform__icon { color: #2f6b00; background: #e6f7c9; }
.platform--ios .platform__icon { color: #0f2a4a; background: #dceaf9; }
.platform--windows .platform__icon { color: #4427a8; background: #e7e1fb; }
.platform h2 { font-size: 23px; font-weight: 800; }
.platform p { margin: 0; color: var(--muted); font-size: 15px; }
.platform__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-weight: 700; font-size: 14.5px; }
.platform__foot svg { transition: transform .2s ease; }
.platform:hover .platform__foot svg { transform: translateX(-4px); }

/* Sections */
.section { padding-block: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h1, .section-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.section-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--lime-deep); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 16px; }

.app-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -26px rgba(13, 20, 32, .5); }
.app-icon { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; background: #e8eadf; }
.app-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.app-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 168px;
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card h3 { font-size: 17.5px; font-weight: 700; line-height: 1.5; }
.post-card time { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13.5px; }

.empty {
  padding: 56px 24px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed rgba(13, 20, 32, .2);
}
.empty b { display: block; font-family: "Alexandria", sans-serif; color: var(--ink); font-size: 22px; margin-bottom: 4px; }

/* Value strip */
.values { padding-block: 72px 0; }
.values__box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(150deg, var(--night), #1b2b18);
}
.values h3 { font-size: 19px; font-weight: 700; margin-block: 14px 6px; }
.values p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; }
.values span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--night); background: var(--lime); }

/* Page heading band */
.page-band {
  padding-block: 56px 60px;
  color: #fff;
  background: radial-gradient(50% 90% at 50% 0%, rgba(182, 242, 74, .16), transparent 70%), linear-gradient(180deg, var(--night), var(--night-2));
}
.page-band h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 900; }
.page-band p { margin: 10px 0 0; color: rgba(255, 255, 255, .72); }
.page-band .search-form { margin: 24px 0 0; }

/* Long content */
.prose { max-width: 800px; margin: 44px auto 0; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 17px; }
.prose h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.prose h2 { font-size: 23px; margin-block: 1.5em .4em; }
.prose h3 { font-size: 19px; margin-block: 1.3em .3em; }
.prose img { border-radius: 12px; display: block; margin-block: 16px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose a { color: var(--lime-deep); text-decoration: underline; }
.prose .meta { color: var(--muted); font-size: 14.5px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }

.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 34px; }
.pagination .page-numbers { padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font-weight: 600; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Footer */
.site-footer { margin-top: 80px; padding-block: 44px 28px; color: rgba(255, 255, 255, .68); background: var(--night); font-size: 15px; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .logo { margin-bottom: 12px; }
.site-footer p { margin: 0; max-width: 380px; }
.site-footer h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { padding-top: 20px; font-size: 14px; }

@media (max-width: 1080px) { .float-tile { display: none; } }
@media (max-width: 820px) {
  .platforms__grid, .values__box { grid-template-columns: minmax(0, 1fr); }
  .platform { min-height: 0; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .site-header .wrap { flex-wrap: wrap; justify-content: center; gap: 2px 12px; padding-block: 9px; min-height: 0; }
  .site-nav { margin-inline-start: 0; justify-content: center; }
  .site-nav a { padding: 5px 9px; font-size: 14px; }
  .site-nav svg { display: none; }
  .search-form button { padding-inline: 18px; }
  .search-form > svg { display: none; }
  .search-form input { padding-inline: 12px; }
  .section, .values { padding-top: 56px; }
}
