/*
Theme Name: MVES
Theme URI: https://www.mves.co.il/
Author: MVES Tech Media
Author URI: https://www.mves.co.il/
Description: תבנית פרימיום חדשנית ומהירה לפורטל אפליקציות, סלולר, גיימינג, תוכנות מחשב וטכנולוגיה מתקדמת.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mves
Tags: technology, applications, gaming, mobile, software, dark-mode, responsive-layout, accessibility-ready
*/

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: #131b2e;
  --bg-card-hover: #19243c;
  --bg-glass: rgba(19, 27, 46, 0.75);
  
  --cyan-neon: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --violet-neon: #a855f7;
  --violet-glow: rgba(168, 85, 247, 0.35);
  --blue-tech: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.3);
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  
  --font-heading: 'Outfit', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 25px var(--cyan-glow);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

.site-container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.top-tech-bar {
  background: rgba(13, 18, 31, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  padding: 6px 0;
  color: var(--text-muted);
}

.top-tech-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-badge {
  background: linear-gradient(135deg, var(--cyan-neon), var(--blue-tech));
  color: #050b14;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ticker-text {
  color: var(--text-main);
  white-space: nowrap;
}

.top-bar-stats {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
}

.stat-item span {
  color: var(--cyan-neon);
  font-weight: 600;
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon-box {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.brand-icon-box svg {
  width: 26px;
  height: 26px;
  fill: #050b14;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Primary Menu */
.primary-menu-nav {
  display: flex;
  align-items: center;
}

.primary-menu-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-menu-nav ul li a {
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-block;
}

.primary-menu-nav ul li a:hover,
.primary-menu-nav ul li.current-menu-item > a {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.15);
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Fullscreen Hero Section */
.hero-portal-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-portal-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 9, 14, 0.94) 0%,
    rgba(7, 9, 14, 0.82) 45%,
    rgba(7, 9, 14, 0.6) 100%
  );
  z-index: 1;
}

.hero-portal-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 2;
}

.hero-content-box {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  color: var(--cyan-neon);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 10px var(--cyan-neon);
  animation: pulseNeon 2s infinite;
}

@keyframes pulseNeon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hero-main-title span.glow-accent {
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--violet-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.4));
}

.hero-lead-text {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 680px;
}

.hero-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-tech-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--blue-tech) 100%);
  color: #050b14;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  transition: all var(--transition-smooth);
}

.btn-tech-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
  color: #020617;
}

.btn-tech-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: all var(--transition-smooth);
}

.btn-tech-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.hero-metric-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  line-height: 1;
}

.hero-metric-item h4 span {
  color: var(--cyan-neon);
}

.hero-metric-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Category Grid Pillars */
.section-spacer {
  padding: 70px 0;
}

.section-head {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.section-head-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.section-head-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-neon), transparent);
  margin-top: 8px;
  border-radius: var(--radius-full);
}

.section-head-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--violet-neon));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px -10px rgba(0, 240, 255, 0.15);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--cyan-neon);
}

.pillar-card:nth-child(2) .pillar-icon-box {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.15);
  color: var(--violet-neon);
}

.pillar-card:nth-child(3) .pillar-icon-box {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}

.pillar-card:nth-child(4) .pillar-icon-box {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
}

.pillar-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.pillar-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
}

/* Feature Showcase Interactive Cards */
.showcase-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.tech-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.tech-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-card:hover .tech-card-thumb img {
  transform: scale(1.06);
}

.tech-card-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(6px);
  color: var(--cyan-neon);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
}

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

.tech-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.tech-card:hover .tech-card-title {
  color: var(--cyan-neon);
}

.tech-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tech-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.tech-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--amber-accent);
  font-weight: 600;
}

/* Deep Content Portal Guide */
.portal-guide-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.portal-guide-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

.guide-article {
  max-width: 100%;
}

.guide-article h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
  border-right: 4px solid var(--cyan-neon);
  padding-right: 16px;
}

.guide-article h2:first-child {
  margin-top: 0;
}

.guide-article h3 {
  font-size: 1.4rem;
  color: var(--cyan-neon);
  margin-top: 30px;
  margin-bottom: 14px;
}

.guide-article p {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 20px;
}

.guide-article ul, .guide-article ol {
  margin-bottom: 24px;
  padding-right: 20px;
}

.guide-article li {
  margin-bottom: 10px;
  color: #cbd5e1;
  position: relative;
  line-height: 1.7;
}

.guide-article ul li::marker {
  color: var(--cyan-neon);
}

.tech-highlight-callout {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
}

.tech-highlight-callout h4 {
  color: var(--cyan-neon);
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-highlight-callout p {
  margin-bottom: 0;
  color: #e2e8f0;
}

/* Single Post Page Specifics */
.post-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 60px 0;
}

.single-post-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.single-post-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.post-category-tag {
  display: inline-block;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan-neon);
  border: 1px solid var(--border-glow);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

/* MANDATORY ANCHOR STYLING IN SINGLE POST CONTENT */
.entry-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.entry-content a {
  color: #2563eb !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  transition: all var(--transition-fast);
}

.entry-content a:hover {
  color: #3b82f6 !important;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  margin-top: 36px;
  margin-bottom: 16px;
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 30px 0;
  border: 1px solid var(--border-subtle);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 24px;
  padding-right: 24px;
}

.entry-content li {
  margin-bottom: 10px;
}

/* Sidebar Widgets */
.sidebar-tech-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.sidebar-widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  border-right: 3px solid var(--cyan-neon);
  padding-right: 12px;
}

.recent-posts-list-tech li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.recent-posts-list-tech li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-posts-list-tech a {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
  display: block;
  line-height: 1.5;
}

.recent-posts-list-tech a:hover {
  color: var(--cyan-neon);
}

/* Footer Section */
.site-footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-top-columns {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-col-about h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff, var(--cyan-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-col-about p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list li a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links-list li a:hover {
  color: var(--cyan-neon);
  transform: translateX(-4px);
}

/* CRITICAL: VERY BOTTOM FOOTER BAR WITH EXACT OUTGOING ANCHOR LINKS */
.footer-bottom-bar {
  padding: 24px 0;
  background: #020306;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright-text {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.outgoing-anchors-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.outgoing-anchors-wrap a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.outgoing-anchors-wrap a:hover {
  color: var(--cyan-neon);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* Accessibility Drawer & Trigger */
.wcag-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-neon), var(--blue-tech));
  border: none;
  color: #050b14;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.wcag-trigger-btn:hover {
  transform: scale(1.1);
}

.wcag-trigger-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.wcag-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-glow);
  z-index: 10000;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  transition: right 0.35s ease;
  padding: 30px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.wcag-drawer.active {
  right: 0;
}

.wcag-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.wcag-drawer-header h3 {
  font-size: 1.25rem;
  color: #ffffff;
}

.wcag-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.wcag-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.wcag-opt-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: all var(--transition-fast);
}

.wcag-opt-btn:hover,
.wcag-opt-btn.is-active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan-neon);
  color: #ffffff;
}

.wcag-reset-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.wcag-reset-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Accessibility Modes (Controlled via JS) */
body.wcag-high-contrast {
  background-color: #000000 !important;
  color: #ffff00 !important;
}
body.wcag-high-contrast * {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

body.wcag-grayscale {
  filter: grayscale(100%) !important;
}

body.wcag-large-text {
  font-size: 120% !important;
}

body.wcag-underline-links a {
  text-decoration: underline !important;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-md);
  padding: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
}

.cookie-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--cyan-neon), var(--blue-tech));
  color: #050b14;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-cookie-decline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-tech-bar {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .primary-menu-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px;
  }
  .primary-menu-nav.active {
    display: block;
  }
  .primary-menu-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-main-title {
    font-size: 2.2rem;
  }
  .hero-metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid-8 {
    grid-template-columns: 1fr;
  }
  .post-layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
  .outgoing-anchors-wrap {
    justify-content: center;
  }
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 100%;
  }
}
