/*
Theme Name: SuperAds
Theme URI: https://superads.dev
Author: SuperAds
Author URI: https://superads.dev
Description: Tema WordPress ultra-rápido otimizado para arbitragem de tráfego. Zero frameworks, zero jQuery, máxima performance e SEO.
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: superads
Tags: blog, one-column, custom-menu, featured-images, translation-ready, fast, seo-optimized
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  --sa-btn-color: #00c853;
  --sa-btn-hover: #00e676
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: #e94560;
  text-decoration: none;
  transition: color .2s
}

a:hover {
  color: #c81e45
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  font-weight: 700;
  color: #0f0f2d
}

h1 {
  font-size: 1.75rem
}

h2 {
  font-size: 1.5rem
}

h3 {
  font-size: 1.25rem
}

ul,
ol {
  list-style: none
}

/* ===== LAYOUT ===== */
.sa-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px
}

/* ===== PRE-LOADER ===== */
.sa-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0f0f2d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s, visibility .4s
}

.sa-preloader.sa-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.sa-preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(233, 69, 96, .2);
  border-top-color: #e94560;
  border-radius: 50%;
  animation: sa-spin .6s linear infinite
}

@keyframes sa-spin {
  to {
    transform: rotate(360deg)
  }
}

/* ===== HEADER ===== */
.sa-header {
  background: #0f0f2d;
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25)
}

.sa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.sa-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px
}

.sa-logo:hover {
  color: #00c853
}

.sa-logo span {
  color: #00c853
}

/* ===== NAV ===== */
.sa-nav ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.sa-nav a {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 8px 18px;
  background: var(--sa-btn-color);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .25s;
  box-shadow: 0 2px 8px rgba(0, 200, 83, .35);
  display: inline-block
}

.sa-nav a:hover {
  background: var(--sa-btn-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 200, 83, .5)
}

.sa-nav .current-menu-item a,
.sa-nav .current_page_item a {
  background: var(--sa-btn-hover);
  box-shadow: 0 4px 14px rgba(0, 200, 83, .5)
}

.sa-menu-toggle {
  display: none;
  background: var(--sa-btn-color);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700
}

/* ===== BANNER ===== */
.sa-banner {
  position: relative;
  background: #0f0f2d;
  color: #fff;
  overflow: hidden
}

.sa-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: .7
}

/* Banner Heights — !important to override .sa-banner-default min-height */
.sa-banner.sa-banner-h-small {
  height: 200px !important;
  min-height: 0 !important
}

.sa-banner.sa-banner-h-medium {
  height: 320px !important;
  min-height: 0 !important
}

.sa-banner.sa-banner-h-large {
  height: 450px !important;
  min-height: 0 !important
}

/* Banner Width: contained */
.sa-banner-contained {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 0 0 12px 12px
}

/* Overlay */
.sa-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(15, 15, 45, .7), rgba(233, 69, 96, .3))
}

.sa-banner-no-overlay {
  background: transparent
}

.sa-banner-title {
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  max-width: 700px;
  color: #fff
}

.sa-banner-sub {
  font-size: 1rem;
  margin-top: 8px;
  opacity: .9;
  max-width: 500px
}

/* ===== ARTICLES GRID ===== */
.sa-section {
  padding: 40px 0
}

.sa-section-title {
  font-size: 1.35rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid #e94560;
  display: inline-block
}

.sa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px
}

/* ===== CARD ===== */
.sa-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: transform .2s, box-shadow .2s
}

.sa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1)
}

.sa-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e8e8e8
}

.sa-card-body {
  padding: 16px
}

.sa-card-cat {
  font-size: .7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #e94560;
  letter-spacing: .5px;
  margin-bottom: 6px
}

.sa-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f0f2d;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.sa-card-title a {
  color: inherit;
  transition: color .2s
}

.sa-card-title a:hover {
  color: #e94560
}

.sa-card-excerpt {
  font-size: .85rem;
  color: #555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px
}

.sa-card-meta {
  font-size: .75rem;
  color: #888
}

/* ===== SINGLE / PAGE CONTENT ===== */
.sa-content {
  padding: 40px 0
}

.sa-article {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  max-width: 780px;
  margin: 0 auto
}

.sa-article-header {
  margin-bottom: 24px
}

.sa-article-title {
  font-size: 1.75rem;
  margin-bottom: 8px
}

.sa-article-meta {
  font-size: .85rem;
  color: #888;
  margin-bottom: 16px
}

.sa-article-thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 24px
}

.sa-article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #333
}

.sa-article-body p {
  margin-bottom: 16px
}

.sa-article-body h2 {
  font-size: 1.4rem;
  margin: 28px 0 12px
}

.sa-article-body h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px
}

.sa-article-body ul,
.sa-article-body ol {
  margin: 12px 0 12px 24px
}

.sa-article-body ul {
  list-style: disc
}

.sa-article-body ol {
  list-style: decimal
}

.sa-article-body li {
  margin-bottom: 6px
}

.sa-article-body img {
  border-radius: 6px;
  margin: 16px 0
}

.sa-article-body blockquote {
  border-left: 4px solid #e94560;
  padding: 12px 16px;
  margin: 16px 0;
  background: #fef2f4;
  border-radius: 0 6px 6px 0;
  font-style: italic
}

.sa-article-body a {
  color: #e94560;
  text-decoration: underline
}

.sa-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0
}

.sa-article-body th,
.sa-article-body td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: left
}

.sa-article-body th {
  background: #f5f5f5;
  font-weight: 600
}

.sa-article-body pre {
  background: #1a1a2e;
  color: #f0f0f0;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: .85rem
}

.sa-article-body code {
  background: #f0f0f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .9em
}

.sa-article-body pre code {
  background: none;
  padding: 0
}

/* ===== POST NAVIGATION ===== */
.sa-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee
}

.sa-post-nav a {
  font-size: .85rem;
  color: #555;
  transition: color .2s
}

.sa-post-nav a:hover {
  color: #e94560
}

/* ===== PAGINATION ===== */
.sa-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap
}

.sa-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: #555;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  transition: all .2s
}

.sa-pagination .page-numbers.current,
.sa-pagination .page-numbers:hover {
  background: #00c853;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 200, 83, .3)
}

/* ===== FOOTER ===== */
.sa-footer {
  background: #0f0f2d;
  color: rgba(255, 255, 255, .7);
  padding: 24px 0;
  font-size: .85rem;
  text-align: center
}

.sa-footer a {
  color: #e94560
}

/* ===== SEARCH FORM ===== */
.sa-search-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto 24px
}

.sa-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px 0 0 6px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s
}

.sa-search-form input[type="search"]:focus {
  border-color: #e94560
}

.sa-search-form button {
  padding: 10px 18px;
  background: #00c853;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .5px
}

.sa-search-form button:hover {
  background: #00e676;
  box-shadow: 0 2px 8px rgba(0, 200, 83, .3)
}

/* ===== 404 ===== */
.sa-404 {
  text-align: center;
  padding: 80px 20px
}

.sa-404 h1 {
  font-size: 4rem;
  color: #e94560
}

.sa-404 p {
  font-size: 1.1rem;
  color: #555;
  margin: 16px 0 24px
}

.sa-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--sa-btn-color);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(0, 200, 83, .35)
}

.sa-btn:hover {
  background: var(--sa-btn-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 200, 83, .5)
}

/* ===== WP DEFAULT & BLOCK BUTTONS ===== */
.wp-block-button__link,
.sa-article-body a.wp-block-button__link,
button[type="submit"],
input[type="submit"],
.sa-contact-form button,
.sa-cookie-btn,
.sa-search-form button {
  background: var(--sa-btn-color) !important;
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 2px 10px rgba(0, 200, 83, .3);
  display: inline-block;
  text-align: center
}

.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.sa-contact-form button:hover,
.sa-cookie-btn:hover,
.sa-search-form button:hover {
  background: var(--sa-btn-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 200, 83, .5)
}

/* ===== BREADCRUMB ===== */
.sa-breadcrumb {
  font-size: .8rem;
  color: #888;
  margin-bottom: 16px
}

.sa-breadcrumb a {
  color: #e94560
}

.sa-breadcrumb span {
  margin: 0 4px
}

/* ===== SCREEN READER ===== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
  .sa-header-inner {
    flex-wrap: wrap
  }

  .sa-menu-toggle {
    display: block
  }

  .sa-nav {
    display: none;
    width: 100%;
    order: 3
  }

  .sa-nav.sa-nav-open {
    display: block
  }

  .sa-nav ul {
    flex-direction: column;
    gap: 6px
  }

  .sa-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center
  }

  .sa-banner-title {
    font-size: 1.4rem
  }

  .sa-banner.sa-banner-h-small {
    height: 160px !important
  }

  .sa-banner.sa-banner-h-medium {
    height: 240px !important
  }

  .sa-banner.sa-banner-h-large {
    height: 320px !important
  }

  .sa-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px
  }

  .sa-article {
    padding: 20px
  }

  .sa-article-title {
    font-size: 1.4rem
  }

  h1 {
    font-size: 1.4rem
  }
}

@media(max-width:480px) {
  .sa-grid {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .sa-card-thumb {
    height: 160px
  }

  .sa-section {
    padding: 28px 0
  }
}

/* ===== WORDPRESS ALIGNMENT ===== */
.alignleft {
  float: left;
  margin: 0 16px 16px 0
}

.alignright {
  float: right;
  margin: 0 0 16px 16px
}

.aligncenter {
  display: block;
  margin: 16px auto
}

.wp-caption {
  max-width: 100%
}

.wp-caption-text {
  font-size: .8rem;
  color: #888;
  text-align: center;
  margin-top: 6px
}

/* ===== LOGO IMAGE ===== */
.sa-logo-img {
  max-height: 40px;
  width: auto;
  display: block
}

/* ===== DEFAULT BANNER ===== */
.sa-banner-default {
  background: linear-gradient(135deg, #0f0f2d 0%, #1a1a4e 40%, #e94560 100%)
}

/* ===== FOOTER LINKS ===== */
.sa-footer-inner {
  text-align: center;
  padding: 24px 0
}

.sa-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.sa-footer-links a {
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  transition: color .2s
}

.sa-footer-links a:hover {
  color: #00c853
}

.sa-footer-copy {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  margin: 0
}

/* ===== COOKIE CONSENT BAR ===== */
.sa-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f0f2d;
  color: rgba(255, 255, 255, .9);
  padding: 14px 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .2)
}

.sa-cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.sa-cookie-inner p {
  flex: 1;
  font-size: .82rem;
  line-height: 1.5;
  margin: 0;
  min-width: 200px
}

.sa-cookie-inner a {
  color: #00c853;
  text-decoration: underline
}

.sa-cookie-btn {
  background: #00c853;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .5px
}

.sa-cookie-btn:hover {
  background: #00e676;
  transform: translateY(-1px)
}

/* ===== CONTACT FORM ===== */
.sa-contact-form {
  margin-top: 20px
}

.sa-form-group {
  margin-bottom: 16px
}

.sa-form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: #333;
  margin-bottom: 4px
}

.sa-form-group input,
.sa-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  background: #fafafa
}

.sa-form-group input:focus,
.sa-form-group textarea:focus {
  outline: none;
  border-color: #00c853;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 200, 83, .1)
}

.sa-form-group textarea {
  resize: vertical;
  min-height: 120px
}

.sa-form-msg {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 20px;
  font-weight: 500
}

.sa-form-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7
}

.sa-form-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a
}

/* ===== ADSENSE OPTIMIZED LAYOUT ===== */
.sa-adsense-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px
}

.sa-adsense-main {
  flex: 1;
  min-width: 0
}

.sa-adsense-sidebar {
  width: 300px;
  flex-shrink: 0
}

.sa-ad-sidebar-sticky {
  position: sticky;
  top: 80px
}

.sa-ad-slot {
  min-height: 90px;
  margin: 20px 0;
  background: #f9f9f9;
  border: 1px dashed #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center
}

.sa-ad-slot::after {
  content: 'Ad';
  font-size: 11px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 2px
}

.sa-ad-before-content {
  min-height: 100px
}

.sa-ad-after-content {
  min-height: 250px
}

/* ===== CLEAN POST LAYOUT ===== */
.sa-layout-clean {
  padding: 20px;
  min-height: 100vh
}

.sa-clean-content {
  max-width: 780px;
  margin: 0 auto
}

.sa-clean-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f0f2d;
  margin-bottom: 20px;
  line-height: 1.3
}

.sa-clean-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #333
}

.sa-clean-body p {
  margin-bottom: 16px
}

.sa-clean-body h2 {
  font-size: 1.4rem;
  margin: 24px 0 12px;
  color: #0f0f2d
}

.sa-clean-body h3 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
  color: #0f0f2d
}

.sa-clean-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0
}

/* ===== ADSENSE POST LAYOUT ===== */
.sa-layout-adsense {
  min-height: 100vh
}

.sa-adsense-top {
  background: #0f0f2d;
  color: #fff;
  padding: 40px 20px 30px;
  text-align: center
}

.sa-adsense-title {
  font-size: 2rem;
  font-weight: 800;
  max-width: 780px;
  margin: 0 auto 12px;
  line-height: 1.3
}

.sa-adsense-meta {
  font-size: .85rem;
  color: rgba(255, 255, 255, .7)
}

.sa-adsense-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 20px
}

@media (max-width: 768px) {
  .sa-adsense-title {
    font-size: 1.4rem
  }

  .sa-adsense-top {
    padding: 24px 16px 20px
  }

  .sa-adsense-content {
    padding: 20px 16px
  }

  .sa-clean-title {
    font-size: 1.4rem
  }
}