/* Custom styles for Declarații de Avere și Interese component */

/* Material Symbols configuration */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced hover effects for document cards */
.document-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.document-card:hover {
  transform: translateY(-2px);
}

/* Animated gradient for primary elements */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


/* Enhanced button styles */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Subtle animations for icons */
.icon-animate {
  transition: all 0.3s ease;
}

.icon-animate:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Enhanced footer links */
.footer-link {
  position: relative;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #10b981;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Responsive typography — unified mobile scale (see media-queries.css) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .section-title {
    font-size: 1.375rem;
  }
}

/* Loading animation for document cards */
@keyframes pulse-subtle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.loading {
  animation: pulse-subtle 2s infinite;
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
.focus-visible:focus {
  outline: 2px solid #00450d;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  button {
    display: none;
  }

  main {
    padding: 0;
    max-width: 100%;
  }

  .document-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}
