/*
Theme Name: Suplexis
Theme URI: https://suplexis.com.br
Author: Suplexis
Author URI: https://suplexis.com.br
Description: Tema minimalista e premium para o blog Suplexis — hipertrofia, força e emagrecimento. Dark mode, design moderno com Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suplexis
Tags: blog, dark, fitness, minimal, tailwind, custom-background, post-thumbnails, full-width-template
*/

/* ============================================================
   SUPLEXIS — Base Resets & Custom Styles
   (Tailwind via CDN cuida da maioria da estilização)
   ============================================================ */

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

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

body {
  background-color: #0a0a0a;
  color: #e5e5e5;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar personalizada ────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #a3e635;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bef264;
}

/* ── Seleção de texto ───────────────────────────────── */
::selection {
  background-color: #a3e635;
  color: #0a0a0a;
}

/* ── Links globais ──────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ── Imagens responsivas ────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Animações globais ──────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(163, 230, 53, 0.25); }
}

/* ── Card de post ───────────────────────────────────── */
.post-card {
  background-color: #171717;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  animation: fadeInUp 0.5s ease both;
}

.post-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #a3e635;
  box-shadow: 0 20px 60px -12px rgba(163, 230, 53, 0.18),
              0 0 0 1px rgba(163, 230, 53, 0.12);
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.12s; }
.post-card:nth-child(3) { animation-delay: 0.19s; }
.post-card:nth-child(4) { animation-delay: 0.26s; }
.post-card:nth-child(5) { animation-delay: 0.33s; }
.post-card:nth-child(6) { animation-delay: 0.40s; }

/* ── Imagem do card ─────────────────────────────────── */
.post-card-image-wrapper {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #262626;
}

.post-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover .post-card-image-wrapper img {
  transform: scale(1.07);
}

/* ── Placeholder sem imagem ─────────────────────────── */
.post-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #171717 0%, #1f1f1f 50%, #171717 100%);
  background-size: 200% 200%;
  animation: shimmer 3s ease infinite;
}

/* ── Botão "Ler mais" ───────────────────────────────── */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #a3e635;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background-color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.15s ease;
}

.btn-read-more:hover {
  background-color: #bef264;
  box-shadow: 0 0 18px rgba(163, 230, 53, 0.45);
  transform: translateX(2px);
  color: #0a0a0a;
}

/* ── Navbar ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid #1c1c1c;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: #262626;
}

.nav-logo {
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  transition: color 0.2s ease;
}

.nav-logo span {
  color: #a3e635;
}

.nav-logo:hover {
  color: #a3e635;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #a3a3a3;
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #a3e635;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Hero / Cabeçalho da listagem ───────────────────── */
.index-hero {
  padding: 64px 0 48px;
  animation: fadeInUp 0.6s ease both;
}

.neon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.25);
  color: #a3e635;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.neon-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #a3e635;
  border-radius: 50%;
  animation: pulseGlow 2s ease infinite;
}

/* ── Single post ────────────────────────────────────── */
.single-hero-image {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #262626;
  background-color: #171717;
  margin-bottom: 40px;
}

.single-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-tag {
  background-color: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.2);
  color: #a3e635;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.meta-date {
  font-size: 0.8125rem;
  color: #525252;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fafafa;
  margin-bottom: 40px;
}

/* ── Conteúdo tipográfico do post ───────────────────── */
.article-content {
  color: #d4d4d4;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #fafafa;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.article-content h2 { font-size: 1.625rem; }
.article-content h3 { font-size: 1.3125rem; }
.article-content h4 { font-size: 1.125rem; }

.article-content p {
  margin-bottom: 1.5em;
}

.article-content a {
  color: #a3e635;
  text-decoration: underline;
  text-decoration-color: rgba(163, 230, 53, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.article-content a:hover {
  color: #bef264;
  text-decoration-color: #bef264;
}

.article-content strong, .article-content b {
  color: #fafafa;
  font-weight: 700;
}

.article-content em, .article-content i {
  color: #a3a3a3;
}

.article-content blockquote {
  border-left: 3px solid #a3e635;
  background-color: rgba(163, 230, 53, 0.04);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 2em 0;
  color: #a3a3a3;
  font-style: italic;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 0.5em;
}

.article-content ul li::marker {
  color: #a3e635;
}

.article-content ol li::marker {
  color: #a3e635;
  font-weight: 700;
}

.article-content img {
  border-radius: 10px;
  border: 1px solid #262626;
  margin: 2em auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.article-content pre {
  background-color: #111111;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.9rem;
}

.article-content code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
}

.article-content :not(pre) > code {
  background-color: #1f1f1f;
  border: 1px solid #303030;
  color: #a3e635;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9375rem;
}

.article-content table thead th {
  background-color: #171717;
  color: #fafafa;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #a3e635;
}

.article-content table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #1f1f1f;
  color: #d4d4d4;
}

.article-content table tbody tr:hover td {
  background-color: rgba(163, 230, 53, 0.03);
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background-color: #080808;
  border-top: 1px solid #1a1a1a;
  padding: 48px 0;
  margin-top: 96px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fafafa;
}

.footer-logo span {
  color: #a3e635;
}

/* ── Paginação ──────────────────────────────────────── */
.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a3a3a3;
  border: 1px solid #262626;
  background-color: #171717;
  transition: all 0.2s ease;
  margin: 0 3px;
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background-color: #a3e635;
  border-color: #a3e635;
  color: #0a0a0a;
  box-shadow: 0 0 16px rgba(163, 230, 53, 0.35);
}

/* ── Hamburger mobile ───────────────────────────────── */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid #1c1c1c;
  animation: fadeInUp 0.2s ease both;
}

#mobile-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #a3a3a3;
  padding: 10px 0;
  border-bottom: 1px solid #151515;
  transition: color 0.2s ease;
}

#mobile-menu a:hover {
  color: #a3e635;
}

/* ── Back to top ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: #a3e635;
  color: #0a0a0a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 100;
  border: none;
  box-shadow: 0 4px 20px rgba(163, 230, 53, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 6px 28px rgba(163, 230, 53, 0.5);
}

/* ── No posts message ───────────────────────────────── */
.no-posts {
  text-align: center;
  padding: 80px 20px;
  color: #525252;
}

.no-posts svg {
  margin: 0 auto 20px;
  opacity: 0.3;
}

/* ── WP Align classes ───────────────────────────────── */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: #525252; margin-top: 6px; text-align: center; }
