/*
Theme Name: Blog Celos APK
Theme URI: https://blog.celosapk.com
Author: Blog Celos APK
Author URI: https://blog.celosapk.com
Description: Tema WordPress responsivo idêntico ao modelo Tech Vision para o Blog Celos APK. Possui Hero Slider futurista de IA, grid de 4 destaques rápidos, lista horizontal de Últimas Notícias, sidebar com ranking circular de Mais Lidas e Newsletter, seção Explore por Categoria, Banner Skyline e H2 customizados com boxes de Leia Também no artigo.
Version: 1.1.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blog-celos-apk
Tags: blog, technology, dark-theme, responsive-layout, news, custom-colors, slider, featured-images
*/

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

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #080c16;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #080c16 !important;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: #00d2ff;
}

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

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-5xl {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) {
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ==========================================================================
   HEADER & TOP BAR
   ========================================================================== */
.top-bar {
  background-color: #060910;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  font-size: 12px;
  color: #94a3b8;
  padding: 6px 1rem;
}

.top-bar a:hover {
  color: #00d2ff;
}

header.main-header {
  background-color: #080c14;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 12px 1rem;
}

.logo-tech {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-tech-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
  color: #00d2ff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #00d2ff;
  border-radius: 2px;
  box-shadow: 0 0 8px #00d2ff;
}

/* ==========================================================================
   HERO SHOWCASE / SLIDER DESTAQUE
   ========================================================================== */
.hero-showcase {
  position: relative;
  width: 100%;
  min-height: 440px;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #070b14 0%, #091122 50%, #040812 100%);
  border: 1px solid rgba(30, 41, 59, 0.9);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 210, 255, 0.1);
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 620px;
  padding: 2.5rem 2.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  background-color: #00d2ff;
  color: #000000;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.5);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.8);
  color: #000;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}

.hero-visual-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #070b14 0%, rgba(7, 11, 20, 0.8) 25%, transparent 100%);
}

.hero-cyber-core {
  position: absolute;
  top: 35%;
  right: 38%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(0, 210, 255, 0.8);
  box-shadow: 0 0 45px rgba(0, 210, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cyber-core-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 25px #00d2ff;
}

.hero-tech-motto {
  position: absolute;
  top: 2.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

.hero-tech-motto span:nth-child(1) { font-size: 11px; font-weight: 700; color: #94a3b8; letter-spacing: 0.2em; }
.hero-tech-motto span:nth-child(2) { font-size: 1.25rem; font-weight: 900; color: #ffffff; letter-spacing: 0.05em; }
.hero-tech-motto span:nth-child(3) { font-size: 11px; font-weight: 600; color: #cbd5e1; letter-spacing: 0.18em; margin-top: 6px; }
.hero-tech-motto span:nth-child(4) { font-size: 1.15rem; font-weight: 800; color: #e2e8f0; }
.hero-tech-motto .bar { width: 44px; height: 3px; background-color: #00d2ff; border-radius: 2px; margin-top: 6px; box-shadow: 0 0 8px #00d2ff; }

/* ==========================================================================
   4-CARD SUBFEATURED GRID
   ========================================================================== */
.subfeatured-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .subfeatured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .subfeatured-grid { grid-template-columns: repeat(4, 1fr); }
}

.subfeatured-card {
  position: relative;
  height: 190px;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #0a0f1d;
  border: 1px solid rgba(30, 41, 59, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subfeatured-card:hover {
  border-color: rgba(0, 210, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.subfeatured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s ease;
}

.subfeatured-card:hover img {
  transform: scale(1.08);
}

.subfeatured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 13, 26, 0.7) 40%, #080d1a 100%);
}

.subfeatured-card-content {
  position: relative;
  z-index: 10;
}

.subfeatured-card-badge {
  font-size: 11px;
  font-weight: 800;
  color: #00d2ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.subfeatured-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

/* ==========================================================================
   ÚLTIMAS NOTÍCIAS (HORIZONTAL MEDIA ROW CARDS)
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.section-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header-dot {
  width: 10px;
  height: 22px;
  border-radius: 9999px;
  background-color: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
}

.news-row-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: #090e1b;
  border: 1px solid rgba(30, 41, 59, 0.7);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

@media (min-width: 640px) {
  .news-row-card {
    flex-direction: row;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.news-row-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
  background-color: #0c1324;
  transform: translateX(3px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.6);
}

.news-row-thumb {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(30, 41, 59, 0.8);
  background-color: #0e1526;
}

@media (min-width: 640px) {
  .news-row-thumb {
    width: 240px;
    height: 145px;
  }
}

.news-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-row-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.news-row-badge {
  font-size: 11px;
  font-weight: 800;
  color: #00d2ff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.news-row-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.news-row-card:hover .news-row-title {
  color: #00d2ff;
}

.news-row-excerpt {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 41, 59, 0.4);
}

/* ==========================================================================
   SIDEBAR (MAIS LIDAS, NEWSLETTER & QUOTE)
   ========================================================================== */
.sidebar-card {
  background-color: #090e1b;
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}

.popular-item + .popular-item {
  border-top: 1px solid rgba(30, 41, 59, 0.5);
}

.popular-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #475569;
  background-color: #0f172a;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.popular-item:hover .popular-badge {
  border-color: #00d2ff;
  color: #00d2ff;
  background-color: rgba(0, 210, 255, 0.15);
}

.popular-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.popular-item:hover .popular-title {
  color: #00d2ff;
}

/* Newsletter */
.newsletter-card {
  background: linear-gradient(180deg, #0c1428 0%, #080d1a 100%);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.newsletter-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #0070f3, #00d2ff);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.4);
}

.newsletter-btn:hover {
  opacity: 0.95;
}

/* Quote */
.quote-box {
  background-color: #080d1a;
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}

/* ==========================================================================
   EXPLORE POR CATEGORIA
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
}

.category-card {
  position: relative;
  height: 175px;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #0a0f1e;
  border: 1px solid rgba(30, 41, 59, 0.8);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: rgba(0, 210, 255, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.4s ease;
}

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

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.5) 0%, rgba(10, 15, 30, 0.95) 100%);
}

.category-card-content {
  position: relative;
  z-index: 10;
}

.category-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.category-card-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ==========================================================================
   SKYLINE CTA BANNER
   ========================================================================== */
.skyline-banner {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(90deg, #070e1c 0%, #09152b 50%, #050a14 100%);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
  .skyline-banner { flex-direction: row; }
}

.skyline-banner-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
}

.skyline-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   DESTAQUE H2 NO ARTIGO - CONFORME SOLICITADO
   ========================================================================== */
.article-content h2,
.single-article h2,
article h2 {
  color: #00d2ff !important;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1.1rem;
  padding-left: 1rem;
  border-left: 4px solid #00d2ff;
  letter-spacing: -0.01em;
  text-shadow: 0 0 16px rgba(0, 210, 255, 0.35);
}

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

.leia-tambem-box {
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.95), rgba(17, 26, 48, 0.98));
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 2.2rem 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.leia-tambem-box:hover {
  border-color: #00d2ff;
  transform: translateX(4px);
}

.leia-tambem-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 210, 255, 0.25);
  white-space: nowrap;
}

.author-box {
  margin-top: 3.5rem;
  padding: 1.8rem;
  background: #0e1526;
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 16px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-avatar img,
.author-avatar .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00d2ff;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.main-footer {
  background-color: #050811;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  font-size: 13.5px;
  margin-top: 3rem;
  padding: 3.5rem 0 1.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li + li {
  margin-top: 0.5rem;
}

.footer-col a:hover {
  color: #00d2ff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 12px;
  color: #64748b;
}
