/* ============================================================
   SSA BRASIL BLOG - style.css
   Cores: Azul #0a438d / #0076ff | Rosa #E7429A
   ============================================================ */

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

:root {
  --blue-dark:    #0a438d;
  --blue-mid:     #0d5cb6;
  --blue-light:   #0076ff;
  --pink:         #E7429A;
  --pink-dark:    #c4307f;
  --white:        #ffffff;
  --gray-100:     #f0f4f8;
  --gray-200:     #e2e8f0;
  --gray-300:     #cbd5e1;
  --gray-600:     #64748b;
  --gray-700:     #334155;
  --gray-900:     #0f172a;
  --gradient:     linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
  --gradient-alt: linear-gradient(135deg, var(--blue-dark) 0%, var(--pink) 100%);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 25px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:    0 20px 40px rgba(0,0,0,.12);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --transition:   .25s cubic-bezier(.4,0,.2,1);
  --font:         'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0,118,255,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,118,255,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn-sm { padding: 8px 20px; font-size: .85rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(10,67,141,.3);
}

.header-top {
  background: var(--blue-dark);
  padding: 8px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
}
.header-top .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.header-top span { display: flex; align-items: center; gap: 6px; }
.header-top i { color: var(--pink); }
.btn-site-principal {
  margin-left: auto;
  background: var(--pink);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.btn-site-principal:hover { background: var(--pink-dark); }

.navbar {
  background: var(--gradient);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { height: 50px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.nav-links a:hover { background: rgba(255,255,255,.15); color: var(--white); }

.btn-nav-subscribe {
  background: var(--pink) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 12px rgba(231,66,154,.4);
}
.btn-nav-subscribe:hover {
  background: var(--pink-dark) !important;
  box-shadow: 0 6px 20px rgba(231,66,154,.5) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--gradient);
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero-bg-animation {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(0,118,255,.25) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(231,66,154,.18) 0%, transparent 70%);
  animation: heroPulse 6s ease-in-out infinite alternate;
}
@keyframes heroPulse {
  from { opacity: .6; }
  to   { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-badge i { color: var(--pink); }

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-highlight {
  background: linear-gradient(90deg, #fff 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  text-align: center;
  color: var(--white);
  backdrop-filter: blur(12px);
  min-width: 130px;
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.stat-card i { font-size: 1.4rem; color: var(--pink); margin-bottom: 8px; display: block; }
.stat-card strong { font-size: 1.8rem; font-weight: 800; display: block; }
.stat-card span { font-size: .78rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   NEWS TICKER
   ============================================================ */
.news-ticker {
  background: var(--blue-dark);
  border-bottom: 3px solid var(--pink);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}
.ticker-label {
  background: var(--pink);
  color: var(--white);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 140s linear infinite;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  padding-left: 30px;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-content a { color: rgba(255,255,255,.85); transition: var(--transition); }
.ticker-content a:hover { color: var(--pink); }
.ticker-sep { color: var(--pink); font-weight: 700; }
.ticker-placeholder { color: rgba(255,255,255,.5); font-style: italic; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   FEEDS SECTION
   ============================================================ */
.main-content { padding: 60px 0; }

.feed-section {
  margin-bottom: 64px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.feed-section:hover { box-shadow: var(--shadow-lg); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, #fafbff 0%, var(--white) 100%);
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.section-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}
.serasa-icon    { background: linear-gradient(135deg, #0a438d, #0076ff); }
.economia-icon  { background: linear-gradient(135deg, #047857, #10b981); }
.negocios-icon  { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.financas-icon  { background: linear-gradient(135deg, #b45309, #f59e0b); }
.tecnologia-icon{ background: linear-gradient(135deg, #0891b2, #06b6d4); }

.section-title-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
}
.section-title-wrap p {
  font-size: .85rem;
  color: var(--gray-600);
  margin-top: 2px;
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.1);
  color: #047857;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.85); }
}
.btn-subscribe-feed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(0,118,255,.3);
}
.btn-subscribe-feed:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,118,255,.4);
}

/* ============================================================
   FEED GRID — CARDS
   ============================================================ */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 28px 32px;
}

.feed-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}
.feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.feed-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gray-200);
}
.feed-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.4);
}

.feed-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.feed-card-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.feed-card-source-badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue-light);
  background: rgba(0,118,255,.08);
  padding: 3px 10px;
  border-radius: 50px;
}
.feed-card-date {
  font-size: .75rem;
  color: var(--gray-600);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card-desc {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.feed-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--blue-light);
  font-size: .84rem;
  font-weight: 600;
  transition: var(--transition);
}
.feed-card-link:hover { color: var(--blue-dark); gap: 10px; }

/* SKELETON LOADING */
.feed-skeleton {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
}
.feed-skeleton::before {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* LOAD MORE */
.btn-load-more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 32px 28px;
  padding: 12px 28px;
  background: none;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  color: var(--gray-600);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-load-more:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(0,118,255,.04);
}

/* ============================================================
   SUBSCRIBE BANNER
   ============================================================ */
.subscribe-banner {
  background: var(--gradient-alt);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.subscribe-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.subscribe-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.subscribe-banner-text { flex: 1; min-width: 260px; }
.subscribe-banner-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.subscribe-banner-text h2 i { color: rgba(255,255,255,.7); margin-right: 8px; }
.subscribe-banner-text p { color: rgba(255,255,255,.8); font-size: .95rem; }

.subscribe-banner-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
}
.subscribe-banner-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: .95rem;
  font-family: var(--font);
  backdrop-filter: blur(8px);
  outline: none;
  transition: var(--transition);
}
.subscribe-banner-form input::placeholder { color: rgba(255,255,255,.6); }
.subscribe-banner-form input:focus { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.22); }

.subscribe-feedback {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  color: var(--white);
}
.subscribe-feedback.success { background: rgba(16,185,129,.3); border: 1px solid rgba(16,185,129,.5); }
.subscribe-feedback.error   { background: rgba(239,68,68,.3); border: 1px solid rgba(239,68,68,.5); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient);
  padding: 60px 0 0;
  color: rgba(255,255,255,.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand img { margin-bottom: 16px; }
.footer-brand p { font-size: .87rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-3px); }

.footer-links h4,
.footer-contact h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.15);
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .87rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}
.footer-links a i { font-size: .7rem; color: var(--pink); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: .87rem;
  margin-bottom: 12px;
}
.footer-contact i { color: var(--pink); width: 16px; }
.footer-contact .btn { margin-top: 16px; }

.footer-bottom {
  background: rgba(0,0,0,.25);
  padding: 18px 0;
  margin-top: 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.7); transition: var(--transition); }
.footer-bottom a:hover { color: var(--pink); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #047857; }
.toast.error   { background: #dc2626; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
  z-index: 998;
}
.back-to-top.show { opacity: 1; transform: scale(1); }
.back-to-top:hover { transform: scale(1.1); box-shadow: var(--shadow-xl); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; justify-content: flex-start; }
}

@media (max-width: 768px) {
  .header-top .container { gap: 12px; font-size: .78rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .navbar { position: relative; }
  .nav-links a { width: 100%; padding: 10px 16px; border-radius: var(--radius-sm); }

  .hero { padding: 40px 0; }
  .hero-stats { flex-wrap: wrap; }
  .feed-grid { grid-template-columns: 1fr; padding: 20px; }
  .section-header { padding: 20px; }
  .btn-load-more { margin: 0 20px 20px; }
  .subscribe-banner-inner { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .stat-card { flex: 1; min-width: 100px; padding: 16px 14px; }
  .hero-stats { gap: 10px; }
  .subscribe-banner-form { flex-direction: column; }
  .subscribe-banner-form input, .subscribe-banner-form .btn { width: 100%; text-align: center; justify-content: center; }
}