/* ========== MODAL DO BLOG - ESTILO PREMIUM ========== */

/* Modal Overlay */
.article-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(61, 79, 71, 0.97), rgba(42, 42, 42, 0.98));
  backdrop-filter: blur(10px);
  overflow-y: auto;
  animation: modalFadeIn 0.4s ease;
}

.article-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Content Container */
.article-modal-content {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 850px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.5s ease;
  margin: 0 auto;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botão Fechar */
.article-close {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.article-close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg) scale(1.05);
}

/* Hero Image */
.modal-article-hero {
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: var(--primary);
}

.modal-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Content */
#articleContent {
  padding: 60px 80px 80px;
  background: #ffffff;
}

.modal-article-title {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Meta Info */
.modal-article-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.modal-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
}

/* Intro Box */
.modal-article-intro {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f8f7f4;
  border-left: 3px solid var(--primary);
  font-style: italic;
}

/* Body Content */
.modal-article-body {
  max-width: 700px;
}

.modal-article-body h2 {
  font-family: Georgia, serif;
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(154, 139, 122, 0.2);
}

.modal-article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.modal-article-body h3 {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.modal-article-body p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333333;
  margin-bottom: 1.5rem;
}

.modal-article-body strong {
  color: var(--primary);
  font-weight: 600;
}

/* Lists */
.modal-article-body ul {
  list-style: none;
  margin: 2rem 0;
  padding-left: 2.5rem;
  border-left: 2px solid #e0e0e0;
}

.modal-article-body ul li {
  position: relative;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333333;
  padding-left: 1.5rem;
}

.modal-article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Destaque Box */
.modal-article-destaque {
  background: linear-gradient(135deg, var(--primary) 0%, #5a7466 100%);
  color: white;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 20px 60px rgba(61, 79, 71, 0.2);
}

.modal-article-destaque h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.65rem;
}

.modal-article-destaque p {
  color: white;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.85;
}

/* CTA Section */
.modal-article-cta {
  background: #f8f7f4;
  padding: 3.5rem;
  margin: 4rem -80px 0;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.modal-article-cta h3 {
  color: var(--primary);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.modal-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 2.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(61, 79, 71, 0.2);
}

.modal-cta-button:hover {
  background: #4e6559;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 79, 71, 0.3);
}

.modal-cta-button i {
  font-size: 1.25rem;
}

.modal-cta-button.secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.modal-cta-button.secondary:hover {
  background: var(--primary);
  color: white;
}

/* Scroll Behavior */
body.modal-open {
  overflow: hidden;
}

/* ========== RESPONSIVE MODAL ========== */

@media (max-width: 768px) {
  .article-modal.active {
    padding: 0;
  }

  .article-modal-content {
    max-width: 100%;
  }

  .article-close {
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .modal-article-hero {
    height: 280px;
  }

  #articleContent {
    padding: 30px 24px 50px;
  }

  .modal-article-title {
    font-size: 1.85rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .modal-article-meta {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .modal-article-intro {
    font-size: 1.1rem;
    padding: 1.75rem;
  }

  .modal-article-body h2 {
    font-size: 1.55rem;
    margin-top: 2.5rem;
  }

  .modal-article-body h3 {
    font-size: 1.3rem;
  }

  .modal-article-body p {
    font-size: 1.05rem;
  }

  .modal-article-body ul {
    padding-left: 1.5rem;
  }

  .modal-article-body ul li {
    font-size: 1.05rem;
  }

  .modal-article-destaque {
    padding: 2.25rem 1.75rem;
  }

  .modal-article-cta {
    margin: 3rem -24px 0;
    padding: 2.5rem 1.5rem;
  }

  .modal-cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .modal-cta-button {
    width: 100%;
    justify-content: center;
  }
}