/* TechSignal Hub - Clean White Page Stylesheet with CTA */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #0f172a;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --accent-color: #10b981;
  --cta-bg: linear-gradient(135deg, #10b981, #059669);
  --cta-hover: linear-gradient(135deg, #059669, #047857);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  background-color: #eff6ff;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Main Layout */
.main-wrapper {
  max-width: 1140px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* Article Container */
.article-container {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .article-container {
    padding: 1.5rem;
  }
}

.article-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .article-title {
    font-size: 1.5rem;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.article-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box {
  background-color: #f0fdf4;
  border-left: 4px solid var(--accent-color);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.info-box h4 {
  color: #166534;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box p {
  font-size: 0.9rem;
  color: #15803d;
  margin-bottom: 0;
}

.warning-box {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.warning-box h4 {
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.warning-box p {
  font-size: 0.9rem;
  color: #b45309;
  margin-bottom: 0;
}

/* CTA Section Styles (Sem Preço) */
.cta-box {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
}

.cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.cta-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--cta-bg);
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.1rem 2.2rem;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 480px;
}

.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-cta svg {
  transition: transform 0.2s ease;
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.popular-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-posts li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.popular-posts a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.popular-posts span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Disclaimer Box */
.meta-disclaimer-box {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.meta-disclaimer-box p {
  margin-bottom: 0.5rem;
}

.meta-disclaimer-box p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

/* Modal Windows for Legal Policies */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: 16px;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.modal-body h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 1.25rem 0 0.5rem;
}

.modal-body p {
  margin-bottom: 0.75rem;
}
