/*
Theme Name: WiFiSkeleton
Theme URI: https://wifiskeleton.com
Author: WiFiSkeleton
Author URI: https://wifiskeleton.com
Description: Professional-grade network intelligence platform — speed testing, WiFi security, optimization tools, and a knowledge base. Features glassmorphism design, dark/light theme, animated UI, and full blog integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wifiskeleton
Tags: one-column, two-columns, custom-menu, featured-images, threaded-comments, dark-mode, blog
*/

/* ============================================
   WiFiSkeleton — Production Design System
   ============================================ */

/* === BASE === */
html { scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }

/* === THEME VARIABLES === */
:root {
  --bg: #000000;
  --bg-card: #0A0A0A;
  --bg-card-hover: #0D0D0D;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #52525B;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.15);
  --accent: #00FF66;
  --accent-glow: rgba(0,255,102,0.4);
  --accent-bg: rgba(0,255,102,0.05);
  --accent-border: rgba(0,255,102,0.15);
  --glass-bg: rgba(10,10,10,0.6);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: 20px;
  --gradient-hero: linear-gradient(135deg, rgba(0,255,102,0.08) 0%, transparent 50%, rgba(139,92,246,0.05) 100%);
}

html.light {
  --bg: #F8FAFC;
  --bg-card: rgba(255,255,255,0.7);
  --bg-card-hover: rgba(255,255,255,0.9);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.12);
  --accent: #059669;
  --accent-glow: rgba(5,150,105,0.3);
  --accent-bg: rgba(5,150,105,0.06);
  --accent-border: rgba(5,150,105,0.2);
  --glass-bg: rgba(255,255,255,0.5);
  --glass-border: rgba(0,0,0,0.06);
  --glass-blur: 24px;
  --gradient-hero: linear-gradient(135deg, rgba(5,150,105,0.06) 0%, transparent 50%, rgba(99,102,241,0.04) 100%);
}

/* === GLASSMORPHISM === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.glass-hero-text {
  background: linear-gradient(135deg, var(--accent), #6366F1, #EC4899, var(--accent));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}
html.light .glass-hero-text {
  background: linear-gradient(135deg, #059669, #4F46E5, #DB2777, #059669);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* === REVEAL ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-delayed { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: 0.15s; }
.reveal-opacity { opacity: 0; transition: opacity 0.8s ease-in-out; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active, .reveal-delayed.active, .reveal-opacity.active,
.reveal-left.active, .reveal-right.active, .reveal-scale.active { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

.stagger-children > * { opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stagger-children.active > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: none; }
.stagger-children.active > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: none; }

/* === KEYFRAMES === */
@keyframes float { 0%{transform:translateY(0) translateX(0) scale(1);opacity:.4} 25%{transform:translateY(-30px) translateX(15px) scale(1.1);opacity:.7} 50%{transform:translateY(0) translateX(-10px) scale(.95);opacity:.5} 75%{transform:translateY(20px) translateX(5px) scale(1.05);opacity:.8} 100%{transform:translateY(0) translateX(0) scale(1);opacity:.4} }
.animate-float { animation: float 8s ease-in-out infinite; }
@keyframes gradient-shift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.animate-gradient { animation: gradient-shift 4s ease infinite; }
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.shimmer-line { position: relative; overflow: hidden; }
.shimmer-line::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.08),transparent); animation:shimmer 3s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100%{box-shadow:0 0 20px var(--accent-glow)} 50%{box-shadow:0 0 40px var(--accent-glow)} }
.animate-glow { animation: pulse-glow 3s ease-in-out infinite; }
@keyframes ripple { 0%{transform:scale(0.8);opacity:1} 100%{transform:scale(2.4);opacity:0} }
.animate-ripple::after { content:''; position:absolute; inset:0; border:2px solid var(--accent); border-radius:inherit; animation:ripple 2s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.animate-ticker { animation: ticker 30s linear infinite; }

/* Theme transition */
html.transitioning, html.transitioning * { transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important; }
html.light body { background: var(--bg) !important; color: var(--text-primary) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
html.light ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }

/* Password checker */
.strength-meter { height:6px; border-radius:3px; background:rgba(255,255,255,0.08); overflow:hidden; }
html.light .strength-meter { background:rgba(0,0,0,0.06); }
.strength-meter-fill { height:100%; border-radius:3px; transition:width 0.4s cubic-bezier(0.175,0.885,0.32,1.275),background-color 0.4s; }

/* Accordion */
.accordion-content { max-height:0; overflow:hidden; transition:max-height 0.4s cubic-bezier(0.2,0.8,0.2,1),padding 0.3s ease; }
.accordion-content.open { max-height:600px; padding-top:1rem; }

/* === BLOG STYLES === */
.blog-card { overflow: hidden; }
.blog-card .blog-thumb { overflow: hidden; border-radius: 0.75rem; margin-bottom: 1.25rem; }
.blog-card .blog-thumb img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1); }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }

/* Blog prose */
.prose { color: var(--text-secondary); line-height: 1.8; font-size: 1.0625rem; }
.prose h2 { color: var(--text-primary); font-size: 1.75rem; font-weight: 800; margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.prose h3 { color: var(--text-primary); font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: 0.8; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--accent-bg); border-radius: 0 0.75rem 0.75rem 0; font-style: italic; }
.prose img { border-radius: 1rem; margin: 2rem 0; max-width: 100%; }
.prose pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; font-size: 0.875rem; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 0.875em; }
.prose p code { background: var(--accent-bg); padding: 0.15em 0.4em; border-radius: 0.25rem; }

/* Pagination */
.wfs-pagination { display: flex; gap: 0.5rem; justify-content: center; align-items: center; }
.wfs-pagination a, .wfs-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; transition: all 0.2s; }
.wfs-pagination a { color: var(--text-secondary); border: 1px solid var(--border); }
.wfs-pagination a:hover { border-color: var(--border-hover); background: var(--bg-card); }
.wfs-pagination .current { background: var(--accent); color: var(--bg); }

/* WordPress defaults */
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
