/*
Theme Name: Are You Pwned?
Theme URI: https://areyoupwnd.lol/
Author: Arkan & ENI
Description: Chill Cyber Futuristic theme for areyoupwnd.lol — Minimal Agentic Reconnaissance & 0xResearch Hub. Optimized for Desktop and Mobile.
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: areyoupwnd
*/

/* Reset & Base fallback variables */
:root {
  --cyber-bg: #06090F;
  --cyber-surface: #0B0F19;
  --cyber-card: rgba(15, 21, 35, 0.7);
  --cyber-border: rgba(255, 255, 255, 0.08);
  --cyber-cyan: #22d3ee;
  --cyber-violet: #a855f7;
  --cyber-pink: #f43f5e;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--cyber-bg);
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #06090F;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Hide scrollbar for clean horizontal tab sliders */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Grid & Dots Backgrounds */
.bg-cyber-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

@media (min-width: 640px) {
  .bg-cyber-grid {
    background-size: 40px 40px;
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(15, 21, 35, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 30px -10px rgba(34, 211, 238, 0.15);
}

.glass-card-violet:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 30px -10px rgba(168, 85, 247, 0.15);
}

/* Mobile Friendly Overrides */
@media (max-width: 640px) {
  .glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  /* Ensure all inputs and buttons have comfortable tap targets */
  input[type="text"],
  input[type="number"],
  input[type="search"],
  textarea,
  select,
  button {
    font-size: 14px !important;
  }
  
  /* Prevent word clipping */
  h1, h2, h3, h4, p, span, a {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* Mobile Safe Word Wrapping & Tables */
pre, code, table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Scanlines Effect */
.scanlines {
  position: relative;
}
.scanlines::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.015), rgba(0, 255, 0, 0.008), rgba(0, 0, 255, 0.015));
  z-index: 20;
  background-size: 100% 3px, 4px 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* Code Syntax Tokens */
.token-keyword { color: #f43f5e; }
.token-string { color: #38bdf8; }
.token-function { color: #a855f7; }
.token-comment { color: #64748b; font-style: italic; }
.token-number { color: #fbbf24; }
.token-operator { color: #22d3ee; }

/* WordPress Core Typography & Post Content */
.prose pre {
  background: #0B0F19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
  overflow-x: auto !important;
}

.prose code {
  color: #22d3ee !important;
  background: rgba(34, 211, 238, 0.08) !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 0.25rem !important;
  font-size: 0.85em !important;
}

.prose pre code {
  color: #e2e8f0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.prose img {
  border-radius: 0.75rem !important;
  max-width: 100% !important;
  height: auto !important;
}

.prose a {
  color: #22d3ee !important;
  text-decoration: underline !important;
}

.prose a:hover {
  color: #38bdf8 !important;
}

.prose blockquote {
  border-left-color: #22d3ee !important;
  color: #94a3b8 !important;
  font-style: italic !important;
}

/* Pagination */
.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.page-numbers {
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(15, 21, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: all 0.2s;
}
.page-numbers:hover,
.page-numbers.current {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}
