/*
Theme Name: FofoNews - AdSense
Theme URI: https://wpastra.com
Author: Brainstorm Force
Author URI: https://wpastra.com
Description: Standalone customized version of Astra theme.
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: astra-custom
Tags: news, blog, custom-menu, featured-images, post-formats, translation-ready
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* =====================================================
   FOFONEWS — DESIGN SYSTEM
   Portal de Notícias Profissional
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

/* ── ROOT TOKENS ── */
:root {
  /* Cores principais */
  --red:          #0A3D91;
  --red-dark:     #072B66;
  --red-light:    #1565C0;
  --black:        #111111;
  --white:        #FFFFFF;
  --gray-100:     #F5F5F5;
  --gray-200:     #E8E8E8;
  --gray-300:     #CCCCCC;
  --gray-500:     #888888;
  --gray-600:     #666666;
  --gray-700:     #444444;

  /* Cores por editoria */
  --cat-politica:        #0A3D91;
  --cat-entretenimento:  #8B00CC;
  --cat-esportes:        #006B3C;
  --cat-economia:        #0055AA;
  --cat-tecnologia:      #0099CC;
  --cat-saude:           #008866;
  --cat-cultura:         #CC6600;
  --cat-brasil:          #009B3A;

  /* Tipografia */
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-serif:   'Merriweather', Georgia, serif;

  /* Tamanhos */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Espaçamentos */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container:      1200px;
  --container-wide: 1400px;
  --sidebar-width:  320px;
  --header-height:  64px;

  /* Bordas */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.1);
  --shadow-md:  0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.15);
  --shadow-xl:  0 16px 40px rgba(0,0,0,.18);

  /* Transições */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

/* ── LAYOUT CONTAINERS ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.grid-main {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-8);
  align-items: start;
}

/* ── CATEGORY BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--red);
  line-height: 1;
}

.badge--politica        { background: var(--cat-politica); }
.badge--entretenimento  { background: var(--cat-entretenimento); }
.badge--esportes        { background: var(--cat-esportes); }
.badge--economia        { background: var(--cat-economia); }
.badge--tecnologia      { background: var(--cat-tecnologia); }
.badge--saude           { background: var(--cat-saude); }
.badge--cultura         { background: var(--cat-cultura); }
.badge--brasil          { background: var(--cat-brasil); }
.badge--urgente         { background: #FF4400; animation: pulse 1.5s infinite; }
.badge--exclusivo       { background: #6600CC; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* ── SECTION HEADINGS ── */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-2xl);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--gray-200);
  margin-bottom: var(--space-5);
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 28px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title .accent { color: var(--red); }
.section-title a { color: inherit; transition: color var(--transition-fast); }
.section-title a:hover { color: var(--red); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: var(--space-6) 0;
}

/* ── READ TIME ── */
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--gray-500);
}

/* ── RELATIVE TIME ── */
.time-ago {
  font-size: var(--text-xs);
  color: var(--gray-500);
  white-space: nowrap;
}

/* ── SHARE BUTTONS ── */
.share-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.share-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.share-btn--whatsapp { background: #25D366; }
.share-btn--facebook { background: #1877F2; }
.share-btn--twitter  { background: #000000; }
.share-btn--copy     { background: var(--gray-500); color: var(--white); }

/* ── UTILITIES ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-red    { color: var(--red); }
.text-gray   { color: var(--gray-600); }
.text-small  { font-size: var(--text-sm); }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }
.uppercase   { text-transform: uppercase; }

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 1024px) {
  .grid-main {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  :root {
    --text-3xl: 1.5rem;
    --text-4xl: 1.875rem;
    --text-5xl: 2.25rem;
  }

  .container { padding-inline: var(--space-3); }
}

/* ── WORDPRESS ALIGNMENT CLASSES ── */
.alignleft {
  float: left;
  margin-right: var(--space-4);
  margin-bottom: var(--space-4);
}
.alignright {
  float: right;
  margin-left: var(--space-4);
  margin-bottom: var(--space-4);
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-4);
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: var(--text-xs);
  color: var(--gray-600);
  margin-top: var(--space-2);
  font-style: italic;
}

/* ── WP PAGINATION ── */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black);
  background: var(--gray-100);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.page-numbers:hover { background: var(--gray-200); }
.page-numbers.current {
  background: var(--red);
  color: var(--white);
}
