/* ==========================================
   MODAL DE NOTÍCIAS - DESIGN LINEAR.APP
   ========================================== */

.linear-news-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.linear-news-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.linear-news-modal-container {
  background: #ffffff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.linear-news-modal-overlay.active .linear-news-modal-container {
  transform: scale(1) translateY(0);
}

/* Botão de fechar - estilo Linear */
.linear-news-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.linear-news-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
  transform: scale(1.05);
}

.linear-news-modal-close:active {
  transform: scale(0.95);
}

.linear-news-modal-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Conteúdo do modal */
.linear-news-modal-content {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Scrollbar customizada - estilo Linear */
.linear-news-modal-content::-webkit-scrollbar {
  width: 8px;
}

.linear-news-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.linear-news-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.linear-news-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Imagem da notícia */
.linear-news-modal-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: block;
}

.linear-news-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Header da notícia */
.linear-news-modal-header {
  padding: 2.5rem 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.linear-news-modal-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.linear-news-modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
}

.linear-news-modal-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.linear-news-modal-date svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Body da notícia */
.linear-news-modal-body {
  padding: 2rem 2.5rem 2.5rem;
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.7;
  flex: 1;
}

.linear-news-modal-body p {
  margin: 0 0 1.5rem 0;
}

.linear-news-modal-body p:last-child {
  margin-bottom: 0;
}

.linear-news-modal-body h1,
.linear-news-modal-body h2,
.linear-news-modal-body h3,
.linear-news-modal-body h4 {
  color: #1a1a1a;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.linear-news-modal-body h1 {
  font-size: 1.75rem;
}

.linear-news-modal-body h2 {
  font-size: 1.5rem;
}

.linear-news-modal-body h3 {
  font-size: 1.25rem;
}

.linear-news-modal-body h4 {
  font-size: 1.125rem;
}

.linear-news-modal-body ul,
.linear-news-modal-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.linear-news-modal-body li {
  margin: 0.5rem 0;
}

.linear-news-modal-body a {
  color: #006E7F;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 110, 127, 0.2);
  transition: border-color 0.15s ease;
}

.linear-news-modal-body a:hover {
  border-bottom-color: #006E7F;
}

.linear-news-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.linear-news-modal-body blockquote {
  border-left: 3px solid rgba(0, 0, 0, 0.1);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #666;
  font-style: italic;
}

.linear-news-modal-body code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.linear-news-modal-body pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.linear-news-modal-body pre code {
  background: none;
  padding: 0;
}

.linear-news-modal-body hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 2rem 0;
}

/* Responsividade */
@media (max-width: 768px) {
  .linear-news-modal-overlay {
    padding: 1rem;
  }

  .linear-news-modal-container {
    max-height: 95vh;
    border-radius: 12px;
  }

  .linear-news-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .linear-news-modal-title {
    font-size: 1.5rem;
  }

  .linear-news-modal-body {
    padding: 1.5rem;
    font-size: 0.9375rem;
  }

  .linear-news-modal-image {
    height: 250px;
  }

  .linear-news-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .linear-news-modal-header {
    padding: 1.25rem 1.25rem 0.75rem;
  }

  .linear-news-modal-title {
    font-size: 1.25rem;
  }

  .linear-news-modal-body {
    padding: 1.25rem;
  }

  .linear-news-modal-image {
    height: 200px;
  }
}

