/* assets/css/style.css */
/* Transparência Ativa - PMRR */
/* Design Moderno, Elegante e Sofisticado */

/* ========================================
   SISTEMA DE DESIGN - VARIÁVEIS CSS
======================================== */

:root {
  /* Paleta de Cores PMRR */
  --primary-color: #1e3c72;
  --primary-dark: #152d5a;
  --primary-light: #2a5298;
  --secondary-color: #667eea;
  --accent-color: #764ba2;

  /* Cores Neutras */
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Cores de Status */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;

  /* Tipografia */
  --font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Sombras Sofisticadas */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 60px rgba(0, 0, 0, 0.2);

  /* Transições Suaves */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 50px;
}

/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   BREADCRUMB
======================================== */

.breadcrumb-section {
  background: var(--gray-50);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: var(--gray-600);
}

.breadcrumb-item i {
  margin-right: 0.25rem;
}

/* ========================================
   HERO SECTION - GRADIENTE ELEGANTE
======================================== */

.hero-transparencia {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

/* Padrão de fundo animado */
.hero-transparencia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(118, 75, 162, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(102, 126, 234, 0.15) 0%,
      transparent 50%
    );
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.min-vh-40 {
  min-height: 40vh;
}

.badge-custom {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInDown 0.6s ease-out;
}

.badge-custom i {
  margin-right: 0.5rem;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.6s ease-out;
}

.stat-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-box h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   SEÇÃO DE INFORMAÇÕES
======================================== */

.info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.8s ease-out;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
  border-left-color: var(--secondary-color);
}

.feature-item i {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-item h5 {
  margin-bottom: 0.5rem;
  color: var(--gray-900);
  font-weight: 600;
}

.feature-item p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Card de Informação */
.info-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.legal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.legal-list li:last-child {
  border-bottom: none;
}

.legal-list i {
  font-size: 1.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ========================================
   BUSCA / FILTRO
======================================== */

.search-box {
  position: relative;
  animation: fadeInDown 0.6s ease-out;
}

.search-box i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.25rem;
  pointer-events: none;
}

.search-box .form-control {
  padding: 1rem 1rem 1rem 3.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.search-box .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
  outline: none;
}

/* ========================================
   CARDS DE DEPARTAMENTOS
======================================== */

.hover-lift {
  transition: all var(--transition-normal);
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl) !important;
}

.card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.card:hover::before {
  transform: scaleX(1);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--transition-normal);
}

.card:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
}

/* Cores dos ícones */
.bg-primary-subtle {
  background-color: rgba(30, 60, 114, 0.1);
}

.bg-success-subtle {
  background-color: rgba(40, 167, 69, 0.1);
}

.bg-warning-subtle {
  background-color: rgba(255, 193, 7, 0.1);
}

.bg-info-subtle {
  background-color: rgba(23, 162, 184, 0.1);
}

.bg-purple-subtle {
  background-color: rgba(118, 75, 162, 0.1);
}

.bg-danger-subtle {
  background-color: rgba(220, 53, 69, 0.1);
}

.text-purple {
  color: #764ba2;
}

/* Lista de Documentos */
.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}

.doc-list::-webkit-scrollbar {
  width: 6px;
}

.doc-list::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

.doc-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.doc-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list li:hover {
  padding-left: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.doc-list i {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.doc-list a {
  color: var(--gray-800);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  transition: color var(--transition-fast);
  flex: 1;
}

.doc-list a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-50px, -50px);
  }
}

.cta-section h3 i {
  margin-right: 0.75rem;
}

/* ========================================
   BACKGROUND GRADIENTE
======================================== */

.bg-gradient-subtle {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}

/* ========================================
   ANIMAÇÕES
======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação de entrada dos cards */
.department-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.department-card:nth-child(1) {
  animation-delay: 0.1s;
}
.department-card:nth-child(2) {
  animation-delay: 0.2s;
}
.department-card:nth-child(3) {
  animation-delay: 0.3s;
}
.department-card:nth-child(4) {
  animation-delay: 0.4s;
}
.department-card:nth-child(5) {
  animation-delay: 0.5s;
}
.department-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 991.98px) {
  .hero-transparencia {
    padding: 3rem 0 2rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .display-6 {
    font-size: 2rem;
  }

  .stat-box h3 {
    font-size: 2rem;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .hero-transparencia {
    padding: 2rem 0 1.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .badge-custom {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
  }

  .stat-box {
    padding: 1.25rem;
  }

  .feature-item {
    padding: 1.25rem;
  }

  .info-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* ========================================
   ACESSIBILIDADE
======================================== */

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   MODO DE IMPRESSÃO
======================================== */

@media print {
  .hero-transparencia,
  .cta-section,
  .search-box,
  .breadcrumb-section {
    display: none !important;
  }

  .card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd;
  }

  body {
    background: white;
    color: black;
  }
}
