/*
Theme Name: Ciber Hacker
Theme URI: https://ciberseguranca.org
Author: Ciber Segurança
Description: Tema moderno estilo hacker com cores vermelha e verde
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: ciber-hacker
*/

:root {
  --hacker-red: #ff0040;
  --hacker-green: #00ff88;
  --hacker-dark: #0a0a0a;
  --hacker-darker: #050505;
  --hacker-gray: #1a1a1a;
  --hacker-text: #e0e0e0;
  --hacker-text-dim: #888;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--hacker-darker);
  color: var(--hacker-text);
  font-family: "Inter", -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 255, 136, 0.03) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0, 255, 136, 0.03) 3px
    );
  pointer-events: none;
  z-index: 1000;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =Header */
.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 64, 0.3);
}

.portal-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  position: relative;
}

.brand-lockup::before {
  content: ">";
  color: var(--hacker-red);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.brand-sigil {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--hacker-red), var(--hacker-green));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--hacker-darker);
  font-family: "JetBrains Mono", monospace;
  position: relative;
  overflow: hidden;
}

.brand-sigil::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.brand-copy {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--hacker-text);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--hacker-text-dim);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--hacker-green);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.05);
}

.nav-links a::before {
  content: "$";
  margin-right: 4px;
  opacity: 0;
  color: var(--hacker-red);
  font-family: "JetBrains Mono", monospace;
  transition: opacity 0.3s;
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--hacker-text);
  transition: all 0.3s;
}

/* =Hero */
.portal-hero {
  padding: 180px 2rem 100px;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
    var(--hacker-darker);
  position: relative;
  overflow: hidden;
}

.portal-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width=60 height=60 viewBox=0 0 60 60 xmlns=http://www.w3.org/2000/svg%3E%3Cg fill=none fill-rule=evenodd%3E%3Cg fill=%2300ff88 fill-opacity=0.02%3E%3Cpath d=M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-align: left;
}

.hero-kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--hacker-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, var(--hacker-text) 0%, var(--hacker-red) 50%, var(--hacker-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--hacker-text-dim);
  max-width: 500px;
  line-height: 1.7;
}

.hero-console {
  background: var(--hacker-gray);
  border: 1px solid rgba(255, 0, 64, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.console-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: rgba(255, 0, 64, 0.1);
  border-bottom: 1px solid rgba(255, 0, 64, 0.2);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.console-strip span {
  color: var(--hacker-text-dim);
}

.console-strip strong {
  color: var(--hacker-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 0, 64, 0.2);
}

.metric-card {
  background: var(--hacker-gray);
  padding: 1.5rem;
  text-align: center;
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--hacker-red);
  font-family: "JetBrains Mono", monospace;
}

.metric-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--hacker-text-dim);
  margin-top: 0.5rem;
}

/* =Feed Control */
.feed-control {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.feed-intro {
  margin-bottom: 2rem;
}

.section-kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--hacker-red);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--hacker-text);
}

.section-copy {
  color: var(--hacker-text-dim);
  margin: 0;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.filter-pill {
  padding: 0.6rem 1.2rem;
  background: var(--hacker-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--hacker-text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.filter-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.5s;
}

.filter-pill:hover::before {
  left: 100%;
}

.filter-pill:hover {
  border-color: var(--hacker-green);
  color: var(--hacker-green);
}

.filter-pill.active {
  background: rgba(255, 0, 64, 0.15);
  border-color: var(--hacker-red);
  color: var(--hacker-red);
}

/* =Articles Grid */
.articles-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--hacker-gray);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--hacker-red), var(--hacker-green));
  opacity: 0;
  transition: opacity 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

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

.article-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.article-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--hacker-gray));
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-content {
  padding: 1.5rem;
}

.article-category {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--hacker-green);
  background: rgba(0, 255, 136, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--hacker-text-dim);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--hacker-text-dim);
  font-family: "JetBrains Mono", monospace;
}

.article-date {
  position: relative;
  padding-left: 1rem;
}

.article-date::before {
  content: "[";
  position: absolute;
  left: 0;
  color: var(--hacker-red);
}

.article-date::after {
  content: "]";
  color: var(--hacker-red);
}

.article-read-time {
  position: relative;
  padding-left: 1rem;
}

.article-read-time::before {
  content: "[";
  position: absolute;
  left: 0;
  color: var(--hacker-green);
}

.article-read-time::after {
  content: "]";
  color: var(--hacker-green);
}

/* =Pagination */
.pagination {
  max-width: 1400px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  padding: 0.6rem 1rem;
  background: var(--hacker-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--hacker-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

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

.pagination .current {
  background: var(--hacker-red);
  border-color: var(--hacker-red);
  color: var(--hacker-darker);
  font-weight: 700;
}

/* =Single Post */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 180px 2rem 3rem;
}

.article-detail-header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 0, 64, 0.2);
  margin-bottom: 2rem;
}

.article-detail-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin: 1rem 0;
  line-height: 1.2;
}

.article-detail-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--hacker-text-dim);
}

.article-detail-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--hacker-red);
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--hacker-green);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body a {
  color: var(--hacker-green);
  text-decoration: none;
  border-bottom: 1px solid var(--hacker-green);
}

.article-body code {
  background: rgba(255, 0, 64, 0.1);
  border: 1px solid rgba(255, 0, 64, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
}

.article-body pre {
  background: var(--hacker-darker);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body li::marker {
  color: var(--hacker-red);
}

/* =Page */
.page-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 180px 2rem 3rem;
}

.page-shell .entry-content {
  background: var(--hacker-gray);
  border: 1px solid rgba(255, 0, 64, 0.2);
  border-radius: 12px;
  padding: 2rem;
}

/* =Footer */
.portal-footer {
  margin-top: auto;
  padding: 3rem 2rem;
  background: var(--hacker-dark);
  border-top: 1px solid rgba(255, 0, 64, 0.2);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--hacker-text-dim);
}

.footer-brand::before {
  content: "// ";
  color: var(--hacker-red);
}

.footer-copy {
  text-align: right;
  font-size: 0.85rem;
  color: var(--hacker-text-dim);
}

/* =No Articles */
.no-articles {
  text-align: center;
  padding: 4rem 2rem;
}

.no-articles h3 {
  color: var(--hacker-text);
  margin-bottom: 0.5rem;
}

.no-articles p {
  color: var(--hacker-text-dim);
}

/* =Mobile */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hacker-dark);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255, 0, 64, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }
}

/* =Enhanced Mobile Styles */
@media (max-width: 768px) {
  /* Header Mobile */
  .portal-nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .brand-lockup {
    gap: 0.5rem;
  }

  .brand-sigil {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

  .brand-copy {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255, 0, 64, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    text-align: center;
  }

  /* Hero Mobile */
  .portal-hero {
    padding: 120px 1rem 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-kicker {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-console {
    border-radius: 8px;
  }

  .console-strip {
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }

  .metric-card {
    padding: 1rem 0.5rem;
  }

  .metric-card strong {
    font-size: 1.5rem;
  }

  .metric-card span {
    font-size: 0.65rem;
  }

  /* Feed Control Mobile */
  .feed-control {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-copy {
    font-size: 0.9rem;
  }

  .category-filters {
    gap: 0.4rem;
  }

  .filter-pill {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* Articles Grid Mobile */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem 2rem;
  }

  .article-card {
    border-radius: 10px;
  }

  .article-image {
    height: 180px;
  }

  .article-content {
    padding: 1.2rem;
  }

  .article-title {
    font-size: 1.1rem;
  }

  .article-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  /* Pagination Mobile */
  .pagination {
    padding: 0 1rem 2rem;
    gap: 0.4rem;
  }

  .pagination a,
  .pagination span {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Single Post Mobile */
  .article-detail {
    padding: 120px 1rem 2rem;
  }

  .article-detail-header {
    padding-bottom: 1.5rem;
  }

  .article-detail-title {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
  }

  .article-detail-meta {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .article-detail-image {
    max-height: 300px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
  }

  .article-body h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
  }

  .article-body p {
    margin-bottom: 1.2rem;
  }

  .article-body pre {
    padding: 1rem;
    font-size: 0.85rem;
    overflow-x: auto;
  }

  /* Page Mobile */
  .page-shell {
    padding: 120px 1rem 2rem;
  }

  .page-shell .entry-content {
    padding: 1.5rem;
    border-radius: 10px;
  }

  /* Footer Mobile */
  .portal-footer {
    padding: 2rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-brand,
  .footer-copy {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* Extra Small Mobile */
  .portal-nav {
    padding: 0.6rem 0.8rem;
  }

  .brand-copy {
    display: none;
  }

  .brand-sigil {
    width: 35px;
    height: 35px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-kicker {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  .metric-card strong {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .article-card {
    border-radius: 8px;
  }

  .article-image {
    height: 160px;
  }

  .article-content {
    padding: 1rem;
  }

  .article-title {
    font-size: 1rem;
  }

  .article-meta {
    font-size: 0.75rem;
    gap: 0.8rem;
  }

  .article-detail-title {
    font-size: 1.5rem;
  }

  .article-detail-image {
    max-height: 250px;
  }

  .article-body {
    font-size: 0.95rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .filter-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
  }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
  .filter-pill,
  .nav-links a,
  .pagination a,
  .article-card {
    -webkit-tap-highlight-color: rgba(0, 255, 136, 0.2);
  }

  .filter-pill:active {
    transform: scale(0.96);
  }

  .article-card:active {
    transform: scale(0.98);
  }

  .nav-links a:active {
    background: rgba(0, 255, 136, 0.15);
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .portal-hero {
    padding: 100px 1rem 40px;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-console {
    display: none;
  }
}

/* Safe Area for iPhones */
@supports (padding: max(0px)) {
  .portal-nav {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .article-detail,
  .page-shell {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}
