/*
Theme Name: Tekzyro
Theme URI: https://tekzyro.com/
Author: Arooba
Author URI: https://tekzyro.com/
Description: Ultra-luxury, high-performance dark tech & mobile hardware optimization theme engineered for Tekzyro. Built for 100% Google AdSense compliance, high Core Web Vitals, and showcasing the official Tekzyro Battery Guard application.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tekzyro
*/

/* ==========================================================
   TEKZYRO DESIGN SYSTEM & CSS VARIABLES
   ========================================================== */
:root {
  --bg-dark: #07090e;
  --bg-surface: #0e131f;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --emerald-light: #34d399;
  --cyan: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --magenta: #ff2a85;
  --gold: #ffb703;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Background Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  top: -150px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 70%);
}
.orb-2 {
  top: 40%;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.1), transparent 70%);
}
.orb-3 {
  bottom: 5%;
  left: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 42, 133, 0.08), transparent 70%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================
   TOP HEADER & NAVIGATION
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid var(--bg-card-border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--emerald-glow);
  object-fit: cover;
}
.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.brand-name span {
  color: var(--emerald);
}
.brand-badge {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

/* Header Navigation Categories (Short Names) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-download {
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #07090e;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--emerald-glow);
  transition: var(--transition);
}
.btn-header-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
  color: #07090e;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   HERO SECTION (HOMEPAGE)
   ========================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

.dev-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  padding: 10px 16px;
  border-radius: 14px;
  margin-bottom: 25px;
}
.dev-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a85, #7928ca);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.4);
}
.dev-info {
  font-size: 12.5px;
}
.dev-info strong {
  color: var(--emerald);
  font-weight: 800;
}
.dev-info span {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
}

/* Download Hero Card */
.download-card {
  background: linear-gradient(180deg, rgba(24, 32, 50, 0.85) 0%, rgba(14, 19, 31, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px var(--emerald-glow);
  backdrop-filter: blur(16px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan), var(--magenta));
}
.card-icon {
  width: 75px;
  height: 75px;
  border-radius: 18px;
  margin: 0 auto 14px auto;
  display: block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.card-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}
.card-subtitle {
  font-size: 12.5px;
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 18px;
}

.btn-download-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #07090e;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  padding: 16px 28px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 30px var(--emerald-glow);
  transition: var(--transition);
  margin-bottom: 14px;
}
.btn-download-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
  color: #07090e;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 18px;
  text-align: left;
  font-size: 11.5px;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--bg-card-border);
  box-sizing: border-box;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  white-space: nowrap;
}
.spec-item i {
  color: var(--emerald);
  font-size: 13px;
  flex-shrink: 0;
}
.spec-item strong {
  color: var(--text-main);
}

/* Trust Badges Strip */
.trust-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  margin: 30px 0 50px 0;
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.trust-item i {
  color: var(--emerald);
  font-size: 14px;
}

/* ==========================================================
   FEATURED CATEGORY TILES (HOMEPAGE)
   ========================================================== */
.section-header {
  margin-bottom: 30px;
}
.section-eyebrow {
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-heading {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.cat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.cat-card.battery .cat-card-icon {
  background: rgba(255, 183, 3, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}
.cat-card.fixes .cat-card-icon {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.cat-card.guides .cat-card-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.cat-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================
   BLOG POST CARDS GRID (LATEST & CATEGORY ARCHIVES)
   ========================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.post-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111726;
  overflow: hidden;
}
.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb {
  transform: scale(1.05);
}
.post-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bg-card-border);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.post-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}
.post-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}
.post-card-title a:hover {
  color: var(--emerald);
}
.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-card-border);
  padding-top: 14px;
  font-size: 12.5px;
}
.post-card-author {
  color: var(--text-muted);
  font-weight: 700;
}
.post-card-readmore {
  color: var(--emerald);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.post-card-readmore:hover {
  transform: translateX(3px);
}

/* ==========================================================
   SINGLE ARTICLE / POST VIEW (E-E-A-T & ADSENSE READY)
   ========================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 40px 0 80px 0;
}

.article-main {
  min-width: 0;
}

.article-breadcrumbs {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.article-breadcrumbs a:hover {
  color: var(--emerald);
}

.article-header {
  margin-bottom: 30px;
}
.article-header h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-card-border);
  padding-bottom: 20px;
}
.article-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-main);
}
.article-author-chip strong {
  color: var(--emerald);
}

.article-featured-image {
  margin: 30px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}
.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Typography (AdSense High Quality) */
.article-content {
  font-size: 17.5px;
  line-height: 1.8;
  color: #e2e8f0;
}
.article-content p {
  margin-bottom: 24px;
}
.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 40px 0 18px 0;
  color: var(--text-main);
  border-left: 4px solid var(--emerald);
  padding-left: 14px;
}
.article-content h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 30px 0 14px 0;
  color: var(--text-main);
}
.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-content li {
  margin-bottom: 10px;
}
.article-content a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-content a:hover {
  color: var(--emerald-light);
}
.article-content blockquote {
  border-left: 4px solid var(--cyan);
  background: rgba(0, 242, 254, 0.05);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-style: italic;
  color: #cbd5e1;
}

/* Styled Diagnostic & Science Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 14.5px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
}
.article-content th {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid var(--bg-card-border);
  color: var(--text-main);
}
.article-content td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bg-card-border);
  color: var(--text-muted);
}
.article-content tr:last-child td {
  border-bottom: none;
}

/* E-E-A-T Review Box */
.eeat-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(0, 242, 254, 0.05));
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 45px;
}
.eeat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.eeat-badge {
  background: var(--emerald);
  color: #07090e;
  font-weight: 900;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.eeat-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}
.eeat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-widget h4 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  border-bottom: 1px solid var(--bg-card-border);
  padding-bottom: 10px;
}
.sidebar-widget ul {
  list-style: none;
}
.sidebar-widget li {
  margin-bottom: 12px;
}
.sidebar-widget li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  display: block;
}
.sidebar-widget li a:hover {
  color: var(--emerald);
  transform: translateX(3px);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--bg-card-border);
  background: #05070a;
  padding: 60px 0 30px 0;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about h4 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}
.footer-about h4 span {
  color: var(--emerald);
}
.footer-about p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--emerald);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--bg-card-border);
  padding-top: 25px;
  font-size: 12.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-dev-attribution strong {
  color: var(--emerald);
}

/* ==========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================== */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .category-tiles-grid, .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .category-tiles-grid, .posts-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 32px;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
}
