/* Cases & Articles Page - Layout Simples tipo Paper */

body {
  color: var(--text-dark);
  background-color: var(--paper-bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1000px, 90vw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER SIMPLES ===== */
.simple-header {
  background: var(--white);
  border-bottom: 1px solid rgba(44, 95, 111, 0.1);
  position: relative;
  overflow: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
  border-radius: 8px;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 4px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-teal);
  letter-spacing: -0.02em;
}

/* Visual Hero com Elemento Vazado */
.hero-visual {
  position: relative;
  height: 40vh;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: url('assets/photo-1757132720625-7143774d7621.avif') center/cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 40px;
}

.paper-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: var(--white);
}

.paper-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  gap: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(44, 95, 111, 0.2);
  border-radius: 8px;
  color: var(--text-medium);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(44, 95, 111, 0.05);
  color: var(--primary-teal);
}

.lang-btn.active {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  color: var(--white);
}

/* ===== PAPER CONTENT ===== */
.paper-content {
  background: var(--paper-bg);
  padding: 20px 0 100px 0;
}

.paper-article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 30px 100px;
  box-shadow: 0 4px 20px -5px rgba(44, 95, 111, 0.08);
  border: 1px solid rgba(44, 95, 111, 0.05);
}

.paper-section {
  margin-bottom: 60px;
}

.paper-section:last-child {
  margin-bottom: 0;
}

.paper-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-teal);
  margin: 0 0 20px 0;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.paper-section p {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.9;
  margin: 0 0 28px 0;
  text-align: justify;
  text-justify: inter-word;
}

.paper-section p:last-child {
  margin-bottom: 0;
}

.paper-section em {
  font-style: normal;
  color: var(--text-dark);
  font-weight: 500;
}

.paper-section strong {
  font-weight: 600;
  color: var(--text-dark);
}

/* ===== ELEMENTOS ADICIONAIS DO ARTIGO ===== */
.article-meta-header {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(44, 95, 111, 0.15);
  font-size: 0.9rem;
  color: var(--text-medium);
  flex-wrap: wrap;
}

.article-date {
  font-weight: 500;
  color: var(--primary-purple);
}

.article-author {
  color: var(--text-medium);
}

.article-reading-time {
  color: var(--text-light);
}

/* Imagem do artigo */
.article-image-container {
  margin: 50px 0;
  text-align: center;
}

.article-main-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(44, 95, 111, 0.2);
  margin-bottom: 15px;
}

.image-caption {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.4;
}

/* Navegação do artigo */
.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px solid var(--accent-cyan);
  flex-wrap: wrap;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-teal);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-link:hover {
  background: rgba(44, 95, 111, 0.05);
  color: var(--primary-purple);
}

.nav-link i {
  width: 16px;
  height: 16px;
}

/* Botões de compartilhamento */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 500;
  margin-right: 5px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(44, 95, 111, 0.2);
  color: var(--text-medium);
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.share-btn:hover {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  color: var(--white);
  transform: translateY(-2px);
}

.share-btn i {
  width: 16px;
  height: 16px;
}

.share-text {
  display: none;
}

.share-btn.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: var(--white);
}

.share-btn.linkedin:hover {
  background: #0077B5;
  border-color: #0077B5;
  color: var(--white);
}

@media (min-width: 640px) {
  .share-text {
    display: inline;
  }
}

/* Link do logo */
.brand-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

/* ===== ARTICLES LISTING ===== */
.articles-listing {
  background: var(--paper-bg);
  padding: 20px 0 80px 0;
}

.articles-intro {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.articles-intro h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.articles-intro p {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0;
}

/* Grid de artigos */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  justify-items: center;
}

/* Preview de cada artigo */
.article-preview {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px -6px rgba(44, 95, 111, 0.1);
  border: 1px solid rgba(44, 95, 111, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  max-width: 350px;
  width: 100%;
}

.article-preview:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(44, 95, 111, 0.15);
}

/* Imagem do artigo */
.article-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-preview:hover .article-image img {
  transform: scale(1.05);
}

/* Placeholder para artigos futuros */
.article-image.placeholder {
  background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  color: var(--white);
  opacity: 0.7;
}

.placeholder-icon i {
  width: 36px;
  height: 36px;
}

/* Informações do artigo */
.article-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.article-date {
  color: var(--primary-purple);
  font-weight: 500;
}

.article-reading-time {
  color: var(--text-light);
}

.article-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex: 1;
}

/* Link "Ler mais" */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-teal);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  align-self: flex-start;
}

.read-more:hover {
  color: var(--primary-purple);
  transform: translateX(4px);
}

.read-more i {
  width: 16px;
  height: 16px;
}

/* Artigos "Em breve" */
.article-preview.coming-soon {
  opacity: 0.7;
}

.coming-soon-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(44, 95, 111, 0.1);
  color: var(--primary-teal);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-teal), var(--navy-deepest));
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 15px 0;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 30px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  min-width: 180px;
  justify-content: center;
}

.btn i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple), #9B6BA6);
  color: var(--white);
  border-color: var(--primary-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px rgba(139, 90, 150, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ===== FOOTER ===== */
.footer-simple {
  padding: 40px 0;
  background: var(--navy-deepest);
  text-align: center;
}

.footer-simple p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Language Display Rules */
.lang-en {
  display: none;
}

.en .lang-pt {
  display: none;
}

.en .lang-en {
  display: revert;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-content {
    padding: 15px 0;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .hero-visual {
    height: 35vh;
  }
  
  .visual-content {
    padding: 0 20px;
  }
  
  .paper-content {
    padding: 15px 0 70px 0;
  }
  
  .paper-article {
    padding: 25px 60px;
    margin: 0 15px;
  }
  
  .paper-section h2 {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  
  .paper-section p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .article-meta-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .article-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    min-width: 240px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-visual {
    height: 30vh;
  }
  
  .paper-article {
    padding: 20px 30px;
    margin: 0 10px;
  }
  
  .paper-section {
    margin-bottom: 45px;
  }
  
  .paper-section h2 {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }
  
  .paper-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 22px;
  }
  
  .article-meta-header {
    font-size: 0.85rem;
    margin-bottom: 25px;
  }
  
  .article-main-image {
    border-radius: 8px;
  }
  
  .share-btn {
    width: 32px;
    height: 32px;
  }
  
  .share-btn i {
    width: 16px;
    height: 16px;
  }
}