/*
Theme Name: TheInfoTools
Theme URI: https://theinfotools.com
Author: TheInfoTools
Author URI: https://theinfotools.com
Description: Tema desenvolvido para o TheInfoTools.
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: theinfotools
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --amber: #f59e0b;
  --amber2: #d97706;
  --amber-dim: #f59e0b1a;
  --bg: #0e0d0b;
  --bg2: #161410;
  --bg3: #1e1b17;
  --surface: #252119;
  --border: #2e2a22;
  --text1: #e8e0d0;
  --text2: #9e9589;
  --text3: #5a5650;
  --green: #22c55e;
  --red: #ef4444;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text1); font-family: 'Lora', serif; min-height: 100vh; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--amber2); border-radius: 2px; }

/* Focus */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 0 #f59e0b55; }
  50%      { box-shadow: 0 0 0 10px #f59e0b00; }
}
@keyframes shimmer {
  0%   { opacity:.6; }
  50%  { opacity:1; }
  100% { opacity:.6; }
}
.fade-up   { animation: fadeUp .5s ease both; }
.fade-up-2 { animation: fadeUp .5s .12s ease both; }
.fade-up-3 { animation: fadeUp .5s .24s ease both; }
.fade-up-4 { animation: fadeUp .5s .36s ease both; }

/* ── Ticker ── */
.ticker-track { display:flex; white-space:nowrap; animation: ticker 30s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }

/* ── Logo pulse ── */
.logo-icon { animation: pulse-ring 3s ease infinite; }

/* ── Hero grid bg ── */
.hero-grid {
  background-image:
    radial-gradient(ellipse 80% 60% at 65% 50%, #f59e0b12 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--border) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--border) 40px);
}

/* ── Card hover ── */
.card-hover {
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--amber) !important;
  box-shadow: 0 8px 32px #f59e0b18;
}

/* ── Topbar scrollable ── */
.topbar-scroll { overflow-x: auto; scrollbar-width: none; }
.topbar-scroll::-webkit-scrollbar { display: none; }

/* ── Comparison table ── */
.cmp-table th { background: var(--surface); }
.cmp-table tr:hover td { background: var(--surface); }

/* ── Cookie banner ── */
#cookie-banner { animation: fadeUp .4s ease; }

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -9999px; top: 4px; z-index: 9999;
  background: var(--amber); color: var(--bg);
  padding: 8px 16px; font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  border-radius: 0 0 4px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── Form inputs ── */
.form-input {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text1); border-radius: 4px; padding: 10px 14px;
  font-family: 'Lora', serif; font-size: 14px; width: 100%;
  transition: border-color .2s; outline: none;
}
.form-input:focus { border-color: var(--amber); }
.form-input::placeholder { color: var(--text3); }

/* ── Affiliate box ── */
.aff-box { background: var(--surface); border: 1px solid var(--amber2); border-radius: 8px; }

/* ── Section label ── */
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px;
}
.section-label::after { content:''; flex:1; height:1px; background: var(--border); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar-col { display: none; }
  .featured-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-title { font-size: clamp(52px, 14vw, 96px) !important; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .tools-grid { grid-template-columns: 1fr !important; }
}

/* ── Pagination active ── */
.pg-btn.active,
.page-numbers.current { background: var(--amber); color: var(--bg); border-color: var(--amber); }

/* ── Tag ── */
.tag-btn { transition: color .2s, border-color .2s; }
.tag-btn:hover { color: var(--amber); border-color: var(--amber); }

/* ── Cat pill ── */
.cat-pill { transition: all .2s; }
.cat-pill:hover, .cat-pill.active { background: var(--amber); color: var(--bg); border-color: var(--amber); }

/* ── Btn ── */
.btn-primary { transition: background .2s, transform .15s; }
.btn-primary:hover { background: var(--amber2); transform: translateY(-1px); }
.btn-outline { transition: color .2s, border-color .2s; }
.btn-outline:hover { color: var(--amber); border-color: var(--amber); }

/* WordPress align classes */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-size: 0.875rem; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
