/* =============================================================
   BLOG ARTICLE PAGE — CSS (Redesigned)
   Estilos modernos e responsivos para a página individual de artigos
   ============================================================= */

:root {
  --nav-h: 70px;
  --max-w: 1200px;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

/* ===== BREADCRUMB ===== */
.article-breadcrumb {
  background: linear-gradient(135deg, var(--bg1) 0%, rgba(31, 134, 255, 0.03) 100%);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
}

.article-breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  overflow-x: auto;
  min-height: 26px;
}

.breadcrumb-link {
  color: var(--text2);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.breadcrumb-link:hover {
  color: var(--blue);
}

.breadcrumb-separator {
  color: var(--text3);
  margin: 0 6px;
  flex-shrink: 0;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== HERO SECTION ===== */
.article-hero {
  background: linear-gradient(135deg, rgba(31, 134, 255, 0.12) 0%, rgba(19, 191, 159, 0.08) 50%, rgba(31, 134, 255, 0.05) 100%);
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(31, 134, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(19, 191, 159, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.article-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.article-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 9px 18px;
  background: linear-gradient(135deg, rgba(31, 134, 255, 0.15) 0%, rgba(31, 134, 255, 0.08) 100%);
  border: 1px solid rgba(31, 134, 255, 0.3);
  border-radius: 24px;
  font-size: 11.5px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.article-title {
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  margin: 0 0 24px;
  color: var(--white);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.article-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text2);
  margin: 16px 0 36px;
  line-height: 1.6;
  max-width: 850px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text2);
}

.article-meta-item i {
  color: var(--blue);
  font-size: 16px;
}

.article-hero-image {
  width: 100%;
  max-width: 900px;
  margin: 50px auto 0;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  max-height: 450px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(31, 134, 255, 0.15);
  transition: transform 0.3s ease;
}

.article-hero-image:hover {
  transform: translateY(-4px);
}

/* ===== CONTENT SECTION ===== */
.article-content-section {
  padding: 80px 20px;
  background: var(--bg1);
}

.article-content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  max-width: 800px;
}

.article-section {
  margin-bottom: 48px;
}

.article-section:first-child {
  margin-top: 0;
}

.article-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 24px;
  color: var(--white);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.3px;
  position: relative;
  padding-bottom: 16px;
}

.article-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: 2px;
}

.article-intro {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 28px;
  border-left: 4px solid var(--blue);
  padding-left: 24px;
  background: rgba(31, 134, 255, 0.05);
  padding: 24px;
  padding-left: 24px;
  border-radius: 8px;
}

.article-section p {
  color: var(--text2);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.article-list li {
  color: var(--text2);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
}

.article-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
  font-size: 1.1rem;
}

.article-list ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

.article-list ol li {
  counter-increment: item;
  padding-left: 32px;
}

.article-list ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.article-highlight {
  background: linear-gradient(135deg, rgba(31, 134, 255, 0.12) 0%, rgba(31, 134, 255, 0.06) 100%);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  border: 1px solid rgba(31, 134, 255, 0.2);
}

.article-highlight strong {
  color: var(--blue);
  font-weight: 700;
}

/* ===== ARTICLE SHARE ===== */
.article-share {
  margin-top: 60px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(31, 134, 255, 0.03);
}

.article-share-label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.article-share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--blue);
  color: var(--white);
  background: rgba(31, 134, 255, 0.1);
  transform: translateY(-3px);
}

.share-linkedin:hover { background: #0077B5; border-color: #0077B5; color: white; }
.share-twitter:hover { background: #1DA1F2; border-color: #1DA1F2; color: white; }
.share-whatsapp:hover { background: #25D366; border-color: #25D366; color: white; }
.share-email:hover { background: var(--blue); border-color: var(--blue); color: white; }

/* ===== SIDEBAR ===== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.sidebar-card {
  background: linear-gradient(135deg, rgba(31, 134, 255, 0.08) 0%, rgba(19, 191, 159, 0.04) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(31, 134, 255, 0.1);
}

.sidebar-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 18px;
  color: var(--white);
  font-weight: 700;
}

.sidebar-card p {
  color: var(--text2);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ===== AUTHOR CARD ===== */
.author-card {
  text-align: center;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 134, 255, 0.2) 0%, rgba(19, 191, 159, 0.1) 100%);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 36px;
  color: var(--blue);
}

.author-name {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--white);
  font-weight: 700;
}

.author-bio {
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.author-contact-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 134, 255, 0.25);
}

.author-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 134, 255, 0.35);
}

/* ===== CTA CARD ===== */
.cta-card {
  background: linear-gradient(135deg, rgba(31, 134, 255, 0.2) 0%, rgba(19, 191, 159, 0.12) 100%);
  border: 1px solid rgba(31, 134, 255, 0.3);
}

.cta-card h3 {
  color: var(--blue);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
  padding: 24px;
}

.related-title {
  font-size: 1.0625rem;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 700;
}

.related-item {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.related-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.related-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-link:hover .related-title-text {
  color: var(--blue);
  transform: translateX(4px);
}

.related-title-text {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s ease;
  line-height: 1.4;
}

.related-date {
  font-size: 0.8125rem;
  color: var(--text3);
}

/* ===== CTA SECTION ===== */
.article-cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, rgba(31, 134, 255, 0.15) 0%, rgba(19, 191, 159, 0.1) 50%, rgba(31, 134, 255, 0.08) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 134, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.article-cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(19, 191, 159, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.article-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-cta-inner h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.article-cta-inner p {
  color: var(--text2);
  font-size: 1.0625rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

.article-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.article-cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(31, 134, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(31, 134, 255, 0.4);
}

.btn-ghost {
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(31, 134, 255, 0.08);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .article-content-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    height: auto;
    position: static;
    top: auto;
  }

  .author-card {
    grid-column: span 2;
  }

  .article-hero {
    padding: 80px 20px 45px;
  }

  .article-hero-image {
    max-height: 400px;
  }

  .article-content-section {
    padding: 60px 20px;
  }

  .article-cta-section {
    padding: 80px 20px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .article-breadcrumb {
    padding: 14px 0;
  }

  .article-breadcrumb-inner {
    padding: 0 16px;
    font-size: 0.75rem;
    gap: 4px;
    min-height: 24px;
  }

  .breadcrumb-separator {
    margin: 0 4px;
  }

  .article-hero {
    padding: 70px 16px 45px;
    margin-top: 8px;
  }

  .article-hero-inner {
    max-width: 100%;
  }

  .article-title {
    font-size: 1.75rem;
    margin: 8px 0 28px;
  }

  .article-category-tag {
    margin-bottom: 36px;
  }

  .article-subtitle {
    font-size: 1rem;
    margin: 8px 0 40px;
  }

  .article-meta {
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
  }

  .article-meta-item {
    font-size: 0.875rem;
    gap: 8px;
  }

  .article-meta-item i {
    font-size: 14px;
  }

  .article-hero-image {
    max-height: 300px;
    margin-top: 40px;
    border-radius: 12px;
  }

  .article-content-section {
    padding: 50px 16px;
  }

  .article-content-wrapper {
    gap: 30px;
  }

  .article-section {
    margin-bottom: 36px;
  }

  .article-section h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .article-section p {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .article-intro {
    font-size: 1rem;
    padding: 20px;
    padding-left: 20px;
  }

  .article-list li {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .article-highlight {
    padding: 20px;
    margin: 24px 0;
  }

  .sidebar-card {
    padding: 20px;
  }

  .sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .sidebar-card p {
    font-size: 0.875rem;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .author-card {
    grid-column: auto;
  }

  .author-avatar {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }

  .author-name {
    font-size: 1.0625rem;
  }

  .author-contact-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }

  .article-share {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
  }

  .article-share-buttons {
    width: 100%;
  }

  .share-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .article-cta-section {
    padding: 60px 16px;
  }

  .article-cta-inner h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .article-cta-inner p {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .article-cta-buttons {
    flex-direction: column;
  }

  .article-cta-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .article-breadcrumb {
    padding: 12px 0;
  }

  .article-breadcrumb-inner {
    padding: 0 12px;
    font-size: 0.7rem;
    min-height: 22px;
  }

  .article-hero {
    padding: 60px 12px 40px;
    margin-top: 18px;
  }

  .article-title {
    font-size: 1.5rem;
    margin: 16px 0 32px;
  }

  .article-subtitle {
    font-size: 0.95rem;
    margin: 4px 0 40px;
  }

  .article-category-tag {
    font-size: 10px;
    padding: 6px 12px;
    margin-bottom: 40px;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
    padding-top: 20px;
  }

  .article-section {
    margin-bottom: 28px;
  }

  .article-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .article-section h2::after {
    width: 40px;
  }

  .sidebar-card {
    padding: 16px;
  }

  .sidebar-card h3 {
    font-size: 0.9375rem;
  }

  .sidebar-card p {
    font-size: 0.8125rem;
  }

  .author-avatar {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .author-name {
    font-size: 1rem;
  }

  .article-cta-inner h2 {
    font-size: 1.375rem;
  }

  .article-cta-inner p {
    font-size: 0.9375rem;
  }

  .article-share-label {
    font-size: 0.875rem;
  }

  .share-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
