/*
Theme Name: DCPROSENS
Theme URI: https://dcprosens.com
Author: DCPROSENS / DCOUTLIER
Author URI: https://dcoutlier.com
Description: Custom dark gaming theme for DCPROSENS — the ultimate FPS sensitivity converter and pro player settings hub.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: dcprosens
Tags: dark, gaming, custom, gutenberg
*/

/* ============================================================
   0. GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --primary: #00ff9d;
  --primary-glow: rgba(0, 255, 157, 0.4);
  --secondary: #7000ff;
  --secondary-glow: rgba(112, 0, 255, 0.3);
  --bg-dark: #050507;
  --bg-card: #0f1014;
  --bg-card-hover: #16181d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b8;
  --text-muted: #888894;
  --border-color: #2a2a2a;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* ============================================================
   3. BASE
   ============================================================ */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ============================================================
   4. UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* ============================================================
   5. LAYOUT
   ============================================================ */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  position: relative;
}

.page-container {
  padding-bottom: 4rem;
}

.hero-section {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.02em;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  text-align: center;
}

/* ============================================================
   6. HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo span {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--primary);
}

.nav-link.active-link {
  font-weight: 700;
  text-shadow: 0 0 5px var(--primary-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
  outline: none;
}

.hamburger .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   7. MOBILE DRAWER
   ============================================================ */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1005;
  animation: fadeIn 0.25s ease-out;
}

.drawer-overlay.is-visible { display: block; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 1006;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.drawer.is-open { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.drawer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.drawer-logo span { color: var(--primary); }

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  outline: none;
  transition: color var(--transition-fast);
}

.close-btn:hover { color: var(--text-primary); }

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.drawer-link:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--primary);
  border-color: var(--border-color);
  transform: translateX(4px);
}

.drawer-link.drawer-active {
  background-color: rgba(0, 255, 157, 0.04);
  color: var(--primary);
  border-color: rgba(0, 255, 157, 0.15);
  font-weight: 700;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: auto;
  text-align: center;
  color: var(--text-secondary);
  padding-bottom: 5rem; /* space for mobile bottom nav */
}

@media (min-width: 769px) {
  .site-footer { padding-bottom: 3rem; }
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--primary); }

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-powered {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-powered a {
  color: var(--primary);
  font-weight: 500;
}

/* ============================================================
   9. BOTTOM NAV (MOBILE ONLY)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background-color: rgba(15, 16, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: var(--text-secondary);
  gap: 0.25rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  min-height: 48px;
}

.bottom-nav-item:active { transform: scale(0.92); }

.bottom-nav-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.bottom-nav-item:hover .bottom-nav-icon { transform: translateY(-2px); }

.bottom-nav-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.1) translateY(-1px);
  filter: drop-shadow(0 0 5px var(--primary-glow));
}

.bottom-nav-item.active .bottom-nav-label { font-weight: 700; }

/* ============================================================
   10. BLOG GRID + CARDS
   ============================================================ */
.blog-header {
  padding: 3rem 0 2rem;
}

.blog-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.blog-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-dark);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  display: inline-block;
  background: rgba(0, 255, 157, 0.1);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.blog-card-meta {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.blog-card-excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.blog-card-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ============================================================
   11. SINGLE POST / PROSE
   ============================================================ */
.single-post-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.single-post-category {
  display: inline-block;
  background: rgba(0, 255, 157, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.single-post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.single-post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.single-post-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
}

/* Prose content */
.prose {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 780px;
}

.prose h2 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.prose h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.prose p { margin-bottom: 1.5rem; }

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.prose li { margin-bottom: 0.5rem; }

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.prose em { font-style: italic; }

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.prose a:hover { opacity: 0.8; }

.prose code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary);
  font-size: 0.9em;
}

.prose pre,
.prose .code-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  color: var(--primary);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  overflow-x: auto;
}

.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  background: rgba(0, 255, 157, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.prose table th {
  background: var(--bg-card);
  color: var(--primary);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.prose table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.prose table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.prose img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* ============================================================
   12. PRO CARDS
   ============================================================ */
.pro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pro-card:hover {
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 157, 0.1);
}

.pros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.pros-header {
  padding: 3rem 0 2rem;
}

.pros-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pros-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.pro-card-game {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  background: rgba(0, 255, 157, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.pro-card-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pro-card-team {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pro-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pro-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
}

.pro-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.pro-stat-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
}

.pro-card-link {
  display: block;
  margin-top: auto;
  padding: 0.6rem;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.pro-card-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   13. ARCHIVE / SEARCH / PAGINATION
   ============================================================ */
.archive-header {
  padding: 3rem 0 2rem;
}

.archive-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.archive-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.search-form-wrapper {
  padding: 2rem 0;
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
}

.search-field {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-field:focus { border-color: var(--primary); }
.search-field::placeholder { color: var(--text-muted); }

.search-submit {
  background: var(--primary);
  color: #050507;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.search-submit:hover { opacity: 0.85; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: #050507;
  border-color: var(--primary);
}

/* ============================================================
   14. 404 PAGE
   ============================================================ */
.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 4rem 1rem;
}

.error-404-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404 h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.error-404 p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #050507;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   15. ADS (ADSTERRA RESPONSIVE)
   ============================================================ */
.ad-desktop-only { display: block; }
.ad-tablet-only  { display: none; }
.ad-mobile-only  { display: none; }

@media (max-width: 768px) {
  .ad-desktop-only { display: none; }
  .ad-tablet-only  { display: block; }
  .ad-mobile-only  { display: none; }
}

@media (max-width: 480px) {
  .ad-desktop-only { display: none; }
  .ad-tablet-only  { display: none; }
  .ad-mobile-only  { display: block; }
}

.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
}

/* ============================================================
   16. WORDPRESS SPECIFIC
   ============================================================ */
/* Alignment */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 1.5rem auto; text-align: center; }
.alignnone  { display: block; }

/* WordPress embeds */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

/* Sticky posts */
.sticky { border-color: var(--primary) !important; }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-meta { margin-bottom: 0.75rem; }
.comment-author { font-weight: 700; color: var(--text-primary); }
.comment-metadata { font-size: 0.85rem; color: var(--text-muted); }
.comment-content { color: var(--text-secondary); line-height: 1.6; }

.comment-form input,
.comment-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast);
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary); }

.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-muted); }

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.comment-form .submit {
  background: var(--primary);
  color: #050507;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.comment-form .submit:hover { opacity: 0.85; }

/* Gutenberg blocks */
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-quote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.5rem;
  background: rgba(0, 255, 157, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.wp-block-pullquote { border-top: 2px solid var(--primary); border-bottom: 2px solid var(--primary); }
.wp-block-code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--primary);
}
.wp-block-separator { border-color: var(--border-color); opacity: 1; }

.entry-content h2 { color: var(--text-primary); font-size: 1.75rem; margin: 2rem 0 1rem; font-weight: 700; }
.entry-content h3 { color: var(--text-primary); font-size: 1.35rem; margin: 1.75rem 0 0.75rem; font-weight: 600; }
.entry-content p  { margin-bottom: 1.25rem; color: var(--text-secondary); line-height: 1.7; }
.entry-content ul, .entry-content ol { padding-left: 2rem; margin-bottom: 1.25rem; color: var(--text-secondary); }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a   { color: var(--primary); text-decoration: underline; }
.entry-content strong { color: #fff; font-weight: 600; }

/* ============================================================
   17. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .pros-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .pros-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .single-post-title { font-size: 1.5rem; }
}

/* ============================================================
   18. TOOL PAGES (shortcodes placeholder)
   ============================================================ */
.tool-page-header {
  padding: 3rem 0 1rem;
  text-align: center;
}

.tool-page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.tool-page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.tool-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Tag cloud */
.tag-cloud-link {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem !important;
  margin: 0.25rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.tag-cloud-link:hover { border-color: var(--primary); color: var(--primary); }
