/* Portaria Detail Page Styles */
.portaria-detail-page {
  background-color: #f8fafc;
  min-height: 100vh;
  padding: 3rem 1rem;
}

.portaria-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Breadcrumbs */
.nav-breadcrumbs {
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #718096;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-back:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

/* Detail Card */
.detail-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #edf2f7;
  margin-bottom: 2rem;
}

.detail-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 3.5rem 3rem;
  color: white;
  text-align: center;
}

.detail-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-title {
  font-size: 2.75rem;
  font-weight: 850;
  margin: 0;
  line-height: 1.2;
}

.detail-body {
  padding: 4rem 3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-size: 1.35rem;
  color: #2d3748;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-value i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.description-section {
  background: #fdfdfd;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #edf2f7;
  position: relative;
}

.description-title {
  font-size: 1.1rem;
  font-weight: 850;
  color: #2d3748;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.description-title i {
  color: var(--primary-color);
}

.description-text {
  color: #4a5568;
  line-height: 2;
  font-size: 1.15rem;
  margin: 0;
  white-space: pre-line;
}

/* Document Section */
.document-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.document-section:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.doc-icon {
  width: 60px;
  height: 60px;
  background: #fff5f5;
  color: #e53e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 1.75rem;
}

.doc-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a202c;
}

.doc-meta {
  font-size: 0.85rem;
  color: #a0aec0;
  margin-top: 0.25rem;
}

.btn-download {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.btn-download:hover {
  filter: brightness(1.1);
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
  color: white;
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .detail-header {
    padding: 3rem 1.5rem;
  }
  .detail-title {
    font-size: 1.75rem;
  }
  .detail-body {
    padding: 2.5rem 1.5rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .document-section {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .doc-info {
    flex-direction: column;
    gap: 1rem;
  }
  .btn-download {
    width: 100%;
    justify-content: center;
  }
}
