/*
Theme Name: AndroidFuns Child
Theme URI: https://androidfuns.com
Description: World-Class Tech Publication & Editorial Engine for AndroidFuns.com
Author: Android Funs Team
Template: flatsome
Version: 2.1.0
Text Domain: androidfuns-child
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800;900&display=swap");

:root {
  --af-bg: #060A10;
  --af-card-bg: rgba(13, 20, 34, 0.85);
  --af-card-border: rgba(255, 255, 255, 0.08);
  --af-card-hover-border: rgba(0, 229, 117, 0.45);
  --af-green: #00E575;
  --af-green-glow: rgba(0, 229, 117, 0.4);
  --af-blue: #38BDF8;
  --af-blue-glow: rgba(56, 189, 248, 0.35);
  --af-purple: #A855F7;
  --af-text-heading: #FFFFFF;
  --af-text-body: #CBD5E1;
  --af-text-muted: #94A3B8;
  --af-radius-sm: 8px;
  --af-radius-md: 14px;
  --af-radius-lg: 20px;
  --af-radius-xl: 28px;
}

/* ========================================================
   GLOBAL SYSTEM & RESET
   ======================================================== */
body, html {
  background-color: var(--af-bg) !important;
  color: var(--af-text-body) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main, #wrapper, .content-area {
  background-color: var(--af-bg) !important;
}

h1, h2, h3, h4, h5, h6, .af-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  color: var(--af-text-heading) !important;
  font-weight: 800;
  letter-spacing: -0.025em;
}

a {
  color: var(--af-green);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #38BDF8;
}

/* ========================================================
   TOPBAR & HEADER MASTER SYSTEM
   ======================================================== */
.top-bar, #top-bar {
  background: #04070B !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 8px 0 !important;
  font-size: 12px !important;
}

.header-main, #masthead {
  background: rgba(6, 10, 16, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stuck .header-main {
  background: rgba(4, 7, 11, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}

#logo img, .header-logo img, .header-logo-sticky {
  height: 48px !important;
  width: auto !important;
  max-height: 48px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 12px rgba(0, 229, 117, 0.25));
  transition: transform 0.25s ease;
}

#logo:hover img {
  transform: scale(1.02);
}

.header-nav > li > a {
  color: #E2E8F0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  padding: 10px 14px !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.header-nav > li:hover > a, .header-nav > li.active > a, .header-nav > li.current-menu-item > a {
  color: #00E575 !important;
}

/* Header Dropdowns */
.nav-dropdown {
  background: #0C1322 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

.nav-dropdown li a {
  color: #CBD5E1 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.nav-dropdown li a:hover {
  color: #00E575 !important;
  background: rgba(0, 229, 117, 0.08) !important;
}

/* VIP Header Button */
.af-vip-header-btn {
  background: linear-gradient(135deg, #00E575 0%, #00C865 100%) !important;
  color: #060A10 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 0 16px rgba(0, 229, 117, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.af-vip-header-btn:hover {
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 0 25px rgba(0, 229, 117, 0.6) !important;
  color: #000000 !important;
}

/* Search Dropdown in Header */
.header-search input.search-field {
  background: #070B11 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 999px !important;
}

/* ========================================================
   ANIMATED TICKER (CONTINUOUS 60FPS MARQUEE)
   ======================================================== */
.af-marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: #04070B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
  position: relative;
}

.af-marquee-track {
  display: flex;
  width: max-content;
  animation: afMarqueeScroll 40s linear infinite;
}

.af-marquee-track:hover {
  animation-play-state: paused;
}

.af-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  font-size: 13px;
  color: #CBD5E1;
  white-space: nowrap;
}

.af-marquee-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.af-marquee-item a:hover {
  color: #00E575;
}

.af-badge-hot {
  background: rgba(0, 229, 117, 0.15);
  color: #00E575;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

@keyframes afMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================
   MASTER HERO SECTION WITH 3D DEVICE SHOWCASE
   ======================================================== */
.af-hero-container {
  position: relative;
  background: radial-gradient(circle at 75% 30%, rgba(0, 229, 117, 0.14) 0%, rgba(56, 189, 248, 0.08) 35%, rgba(6, 10, 16, 0.98) 75%), #060A10;
  overflow: hidden;
  padding: 70px 20px 85px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.af-hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.af-hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 117, 0.12);
  border: 1px solid rgba(0, 229, 117, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  color: #00E575;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.af-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #00E575;
  border-radius: 50%;
  box-shadow: 0 0 10px #00E575;
  animation: afPulse 1.8s infinite;
}

@keyframes afPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 229, 117, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(0, 229, 117, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 229, 117, 0); }
}

.af-hero-title {
  font-size: 56px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  margin: 0 0 22px !important;
}

.af-gradient-text {
  background: linear-gradient(135deg, #00E575 0%, #38BDF8 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.af-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 34px;
  max-width: 580px;
}

.af-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.af-btn-primary {
  background: linear-gradient(135deg, #00E575 0%, #00C865 100%) !important;
  color: #060A10 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 14px 30px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 6px 20px rgba(0, 229, 117, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.af-btn-primary:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 10px 30px rgba(0, 229, 117, 0.55) !important;
  color: #000000 !important;
}

.af-btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 26px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.af-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
}

.af-trust-stats {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: #94A3B8;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
}

.af-trust-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.af-trust-stats .icon {
  color: #00E575;
}

/* 3D Visual Centerpiece */
.af-hero-visual-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-hero-visual-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0, 229, 117, 0.35) 0%, rgba(56, 189, 248, 0.15) 60%, transparent 80%);
  filter: blur(45px);
  z-index: 1;
  animation: afFloatAura 6s ease-in-out infinite alternate;
}

.af-hero-device-img {
  position: relative;
  z-index: 2;
  max-width: 95%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
  animation: afFloatDevice 5s ease-in-out infinite alternate;
}

.af-spec-pill {
  position: absolute;
  z-index: 3;
  background: rgba(13, 20, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.af-spec-pill-1 {
  top: 8%;
  right: -6%;
  border-color: rgba(0, 229, 117, 0.45);
  animation: afFloatSlow 4s ease-in-out infinite alternate;
}

.af-spec-pill-2 {
  bottom: 12%;
  left: -10%;
  border-color: rgba(56, 189, 248, 0.45);
  animation: afFloatSlow 4.5s ease-in-out infinite alternate-reverse;
}

.af-spec-pill-3 {
  bottom: -4%;
  right: 6%;
  border-color: rgba(168, 85, 247, 0.45);
  animation: afFloatSlow 5s ease-in-out infinite alternate;
}

@keyframes afFloatDevice {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes afFloatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes afFloatAura {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

/* ========================================================
   SECTION HEADERS
   ======================================================== */
.af-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.af-section-tag {
  color: #00E575;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.af-section-title {
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
}

.af-section-link {
  color: #00E575 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
}

.af-section-link:hover {
  transform: translateX(4px);
}

/* ========================================================
   SPOTLIGHT CARDS (4-GRID)
   ======================================================== */
.af-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.af-spotlight-card {
  background: var(--af-card-bg);
  border: 1px solid var(--af-card-border);
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none !important;
}

.af-spotlight-card:hover {
  transform: translateY(-8px);
  border-color: var(--af-card-hover-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 229, 117, 0.18);
}

.af-card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #0C1322;
}

.af-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.af-spotlight-card:hover .af-card-media img {
  transform: scale(1.08);
}

.af-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(6, 10, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #00E575;
  letter-spacing: 0.05em;
  z-index: 2;
}

.af-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.af-card-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #FFFFFF !important;
  margin: 0 0 10px !important;
  transition: color 0.2s;
}

.af-spotlight-card:hover .af-card-title {
  color: #00E575 !important;
}

.af-card-excerpt {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.af-card-action {
  font-size: 13px;
  font-weight: 700;
  color: #00E575;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   DEVICE COMPARISONS GRID
   ======================================================== */
.af-compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.af-compare-card {
  background: var(--af-card-bg);
  border: 1px solid var(--af-card-border);
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.af-compare-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(56, 189, 248, 0.18);
}

.af-compare-visual {
  position: relative;
  width: 100%;
  padding-top: 55%;
  overflow: hidden;
  background: #0B1320;
}

.af-compare-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.af-compare-card:hover .af-compare-visual img {
  transform: scale(1.06);
}

.af-vs-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #060A10;
  border: 2px solid #00E575;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #00E575;
  box-shadow: 0 0 16px rgba(0, 229, 117, 0.5);
  z-index: 3;
}

/* ========================================================
   CATEGORY EXPLORER GRID
   ======================================================== */
.af-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.af-category-card {
  position: relative;
  height: 140px;
  border-radius: var(--af-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-decoration: none !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.af-category-card:hover {
  transform: translateY(-5px);
  border-color: #00E575;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 117, 0.2);
}

.af-category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.af-category-card:hover .af-category-bg {
  transform: scale(1.1);
}

.af-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.2) 0%, rgba(6, 10, 16, 0.92) 85%);
  z-index: 2;
  transition: background 0.3s;
}

.af-category-card:hover .af-category-overlay {
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.1) 0%, rgba(6, 10, 16, 0.82) 75%);
}

.af-category-content {
  position: relative;
  z-index: 3;
}

.af-category-name {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 0 4px !important;
}

.af-category-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #00E575;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================================
   BLOG POST GRID (EDITORIAL CARDS)
   ======================================================== */
.af-post-grid .box {
  background: var(--af-card-bg) !important;
  border: 1px solid var(--af-card-border) !important;
  border-radius: var(--af-radius-lg) !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.af-post-grid .box:hover {
  transform: translateY(-6px) !important;
  border-color: var(--af-card-hover-border) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 25px rgba(0, 229, 117, 0.15) !important;
}

.af-post-grid .box-text {
  background: transparent !important;
  padding: 20px !important;
}

.af-post-grid .box-text h5 {
  color: #FFFFFF !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  transition: color 0.2s;
}

.af-post-grid .box:hover .box-text h5 {
  color: #00E575 !important;
}

.af-post-grid .box-text p {
  color: #94A3B8 !important;
  font-size: 13.5px !important;
}

/* ========================================================
   VIP NEWSLETTER CAPTURE
   ======================================================== */
.af-newsletter-banner {
  background: linear-gradient(135deg, rgba(0, 229, 117, 0.1) 0%, rgba(56, 189, 248, 0.05) 50%, rgba(6, 10, 16, 0.96) 100%), #0A111E;
  border: 1px solid rgba(0, 229, 117, 0.35);
  border-radius: var(--af-radius-xl);
  padding: 50px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 117, 0.12);
}

/* Contextual Related Posts Global Suppress */
.crp_related {
  display: none !important;
}

/* ========================================================
   RESPONSIVE DESIGN RULES
   ======================================================== */
@media (max-width: 1024px) {
  .af-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .af-hero-title { font-size: 42px !important; }
  .af-hero-subtitle { margin: 0 auto 28px; }
  .af-hero-cta-group { justify-content: center; }
  .af-trust-stats { justify-content: center; }
  .af-spotlight-grid { grid-template-columns: repeat(2, 1fr); }
  .af-compare-grid { grid-template-columns: repeat(2, 1fr); }
  .af-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .af-hero-visual-card { margin-top: 30px; }
}

@media (max-width: 640px) {
  .af-hero-title { font-size: 32px !important; }
  .af-spotlight-grid { grid-template-columns: 1fr; }
  .af-compare-grid { grid-template-columns: 1fr; }
  .af-cat-grid { grid-template-columns: 1fr; }
  .af-spec-pill { display: none; }
}
