/*
Theme Name: Esporte Tech
Theme URI: https://esportetech.com.br
Author: Esporte Tech
Author URI: https://esportetech.com.br
Description: Tema editorial escuro para blogs de tecnologia esportiva. Design arrojado com tipografia condensada, paleta dark com verde-limão e layout em grade inspirado em publicações esportivas premium.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esporte-tech
Tags: blog, sports, technology, dark, grid-layout, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =============================================================
   VARIÁVEIS GLOBAIS
   ============================================================= */
:root {
  --et-black:      #0a0a0a;
  --et-dark:       #111318;
  --et-dark2:      #1a1d24;
  --et-dark3:      #22262f;
  --et-panel:      #2a2e38;
  --et-lime:       #c8f23c;
  --et-lime2:      #a8d428;
  --et-lime-dim:   rgba(200,242,60,0.12);
  --et-lime-glow:  rgba(200,242,60,0.25);
  --et-white:      #f4f6f0;
  --et-gray:       #6b7280;
  --et-gray2:      #9ca3af;
  --et-red:        #ef4444;
  --et-blue:       #3b82f6;
  --et-orange:     #f97316;
  --et-border:     rgba(200,242,60,0.12);
  --et-border2:    rgba(255,255,255,0.06);
  --et-font-display: 'Barlow Condensed', sans-serif;
  --et-font-body:    'Barlow', sans-serif;
  --et-font-semi:    'Barlow Semi Condensed', sans-serif;
}

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

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

body {
  font-family: var(--et-font-body);
  background: var(--et-black);
  color: var(--et-white);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--et-dark); }
::-webkit-scrollbar-thumb { background: var(--et-lime); border-radius: 2px; }

/* =============================================================
   TIPOGRAFIA
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--et-font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--et-white);
}

p { color: var(--et-gray2); line-height: 1.75; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =============================================================
   LAYOUT CONTAINER
   ============================================================= */
.et-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

@media (max-width: 768px) {
  .et-container { padding: 0 20px; }
}

/* =============================================================
   UTILITÁRIOS
   ============================================================= */
.et-section { padding: 60px 0; }
.et-section--dark { background: var(--et-dark); }
.et-section--darker { background: var(--et-dark2); }

.et-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.et-section-title {
  font-family: var(--et-font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--et-white);
  display: flex;
  align-items: center;
  gap: 14px;
}

.et-section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--et-lime);
  display: block;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  flex-shrink: 0;
}

.et-section-link {
  font-family: var(--et-font-semi);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--et-lime);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}

.et-section-link:hover { gap: 10px; }

/* =============================================================
   BOTÕES
   ============================================================= */
.et-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--et-lime);
  color: var(--et-black);
  font-family: var(--et-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 4px;
  border: none;
  transition: all 0.2s;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}

.et-btn-primary:hover {
  background: var(--et-lime2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,242,60,0.3);
  color: var(--et-black);
}

.et-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--et-gray2);
  font-family: var(--et-font-semi);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 18px;
  border: 1px solid var(--et-border2);
  border-radius: 4px;
  transition: all 0.2s;
}

.et-btn-ghost:hover {
  border-color: var(--et-lime);
  color: var(--et-lime);
  background: var(--et-lime-dim);
}

/* =============================================================
   BADGES DE CATEGORIA
   ============================================================= */
.et-cat-badge {
  font-family: var(--et-font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.et-cat--ia       { color: #60a5fa; }
.et-cat--wearable { color: var(--et-lime); }
.et-cat--analise  { color: #fb923c; }
.et-cat--nba      { color: #f87171; }
.et-cat--esg      { color: #4ade80; }
.et-cat--corrida  { color: #fbbf24; }
.et-cat--esports  { color: #a78bfa; }
.et-cat--futebol  { color: #34d399; }
.et-cat--f1       { color: #fbbf24; }

/* =============================================================
   CARDS
   ============================================================= */
.et-card {
  background: var(--et-dark2);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  color: inherit;
}

.et-card:hover { background: var(--et-dark3); }

.et-card__img-wrap { overflow: hidden; position: relative; }

.et-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.3s, transform 0.4s;
  display: block;
}

.et-card:hover .et-card__img {
  filter: brightness(0.7) saturate(1.1);
  transform: scale(1.04);
}

.et-card__body { padding: 20px; }

.et-card__title {
  font-family: var(--et-font-display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--et-white);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.et-card:hover .et-card__title { color: var(--et-lime); }

.et-card__excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--et-gray2);
  margin-bottom: 14px;
}

.et-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--et-border2);
}

.et-card__author {
  font-size: 12px;
  color: var(--et-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.et-card__author-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--et-lime);
  color: var(--et-black);
  font-family: var(--et-font-display);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.et-card__read-time {
  font-size: 11px;
  color: var(--et-gray);
  background: var(--et-dark3);
  padding: 3px 8px;
  border-radius: 10px;
}

/* =============================================================
   PAGINAÇÃO
   ============================================================= */
.et-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.et-pagination a,
.et-pagination span {
  font-family: var(--et-font-display);
  font-size: 14px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--et-border2);
  border-radius: 4px;
  color: var(--et-gray2);
  transition: all 0.15s;
}

.et-pagination a:hover { border-color: var(--et-lime); color: var(--et-lime); background: var(--et-lime-dim); }
.et-pagination .current { background: var(--et-lime); color: var(--et-black); border-color: var(--et-lime); }

/* =============================================================
   COMMENTS
   ============================================================= */
.et-comments { padding: 48px 0; border-top: 1px solid var(--et-border2); }

.et-comments h2 {
  font-family: var(--et-font-display);
  font-size: 24px;
  color: var(--et-white);
  margin-bottom: 32px;
}

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }

.comment { padding: 20px; background: var(--et-dark2); border-radius: 8px; border: 1px solid var(--et-border2); }

.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.comment-author img { border-radius: 50%; width: 40px; height: 40px; }

.comment-author .fn { font-family: var(--et-font-semi); font-size: 14px; font-weight: 600; color: var(--et-white); }

.comment-metadata { font-size: 11px; color: var(--et-gray); }

.comment-content p { font-size: 14px; color: var(--et-gray2); }

.comment-reply-link {
  font-size: 12px;
  color: var(--et-lime);
  font-family: var(--et-font-semi);
  font-weight: 500;
  margin-top: 8px;
  display: inline-block;
}

/* Comment form */
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--et-dark2);
  border: 1px solid var(--et-border2);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--et-white);
  font-family: var(--et-font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 14px;
}

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

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form label { font-size: 12px; color: var(--et-gray2); display: block; margin-bottom: 6px; }

.comment-form input[type="submit"] {
  background: var(--et-lime);
  color: var(--et-black);
  font-family: var(--et-font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  width: auto;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.comment-form input[type="submit"]:hover { background: var(--et-lime2); }

/* =============================================================
   WIDGETS SIDEBAR
   ============================================================= */
.widget {
  background: var(--et-dark2);
  border: 1px solid var(--et-border2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.widget-title {
  font-family: var(--et-font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--et-lime);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--et-border);
}

.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--et-border2); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 13px; color: var(--et-gray2); transition: color 0.15s; }
.widget ul li a:hover { color: var(--et-lime); }

/* =============================================================
   ACESSIBILIDADE
   ============================================================= */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--et-lime);
  color: var(--et-black);
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.15s;
}

.skip-link:focus { top: 0; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .et-section { padding: 48px 0; }
  .et-section-title { font-size: 26px; }
}

@media (max-width: 640px) {
  .et-section { padding: 32px 0; }
  .et-section-title { font-size: 22px; }
  .et-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
