/* VeioMonitor - Project Page Motion System */
/* Implementazione delle specifiche PROGETTO_PAGE_SPECIFICATIONS_BLAZOR.md */

/* ===== MOTION SYSTEM BASE ===== */

/* Fade in + Slide up animation pattern */
.fade-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Progressive delay system for sections */
.motion-delay-0 {
  transition-delay: 0s;
}

.motion-delay-300 {
  transition-delay: 0.3s;
}

.motion-delay-400 {
  transition-delay: 0.4s;
}

/* Hover effects with 0.3s duration */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== PROJECT HEADER STYLES ===== */

.project-header {
  background: linear-gradient(90deg, var(--forest-600), var(--tuff-600));
  padding: 4rem 0; /* py-16 equivalent */
  color: white;
  text-align: center;
}

.project-header h1 {
  font-size: 3rem; /* text-5xl */
  font-family: var(--font-roboto-condensed);
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-header p {
  font-size: 1.25rem; /* text-xl */
  opacity: 0.9;
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto;
}

/* ===== GALLERY SLIDER STYLES ===== */

.gallery-slider {
  position: relative;
  aspect-ratio: 21/9; /* Cinematographic ratio */
  background: linear-gradient(135deg, var(--forest-100), var(--tuff-100));
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery overlay gradient */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
}

.gallery-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
}

.gallery-content h3 {
  font-size: 1.875rem; /* text-3xl */
  font-family: var(--font-roboto-condensed);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery-content p {
  font-size: 1.125rem; /* text-lg */
  opacity: 0.9;
  margin-bottom: 1rem;
}

.gallery-content .photographer {
  font-size: 0.875rem; /* text-sm */
  opacity: 0.7;
}

/* Gallery navigation controls */
.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.gallery-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.gallery-nav-arrow.prev {
  left: 1rem;
}

.gallery-nav-arrow.next {
  right: 1rem;
}

.gallery-nav-arrow svg {
  width: 2rem;
  height: 2rem;
}

/* Gallery dots indicators */
.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.gallery-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gallery-dot.active {
  background: white;
}

/* Gallery placeholder for missing images */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.gallery-placeholder svg {
  width: 6rem;
  height: 6rem;
  color: var(--tuff-400);
  margin-bottom: 1.5rem;
}

.gallery-placeholder h3 {
  font-size: 1.5rem;
  font-family: var(--font-roboto-condensed);
  font-weight: 700;
  color: var(--tuff-600);
}

/* ===== DOCUMENTS SECTION STYLES ===== */

.documents-section {
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.documents-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.documents-header .icon-wrapper {
  padding: 0.75rem;
  background-color: var(--forest-100);
  border-radius: 50%;
}

.documents-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--forest-600);
}

.documents-header h2 {
  font-size: 2.25rem; /* text-4xl */
  font-family: var(--font-roboto-condensed);
  font-weight: 700;
  color: var(--tuff-700);
}

.documents-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .documents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.document-card {
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.document-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: var(--forest-300);
}

.document-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.document-icon {
  padding: 0.5rem;
  background-color: var(--gray-50);
  border-radius: 0.5rem;
}

.document-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.document-title {
  font-size: 1.25rem; /* text-xl */
  font-family: var(--font-roboto-condensed);
  font-weight: 700;
  color: var(--tuff-700);
  flex: 1;
}

.document-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid;
}

.document-badge.technical {
  background-color: var(--tuff-50);
  color: var(--tuff-700);
  border-color: var(--tuff-200);
}

.document-badge.scientific {
  background-color: var(--forest-50);
  color: var(--forest-700);
  border-color: var(--forest-200);
}

.document-badge.presentation {
  background-color: var(--terra);
  color: white;
  border-color: var(--terra);
  opacity: 0.9;
}

.document-badge.report {
  background-color: var(--salamander-50);
  color: var(--salamander-700);
  border-color: var(--salamander-200);
}

.document-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--tuff-500);
  margin-bottom: 1rem;
}

.document-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.document-meta svg {
  width: 1rem;
  height: 1rem;
}

.document-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-download {
  background-color: var(--forest-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-download:hover {
  background-color: var(--forest-700);
}

.btn-preview {
  background: transparent;
  color: var(--tuff-600);
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-preview:hover {
  background-color: var(--gray-50);
  border-color: var(--forest-300);
}

.btn-download svg,
.btn-preview svg {
  width: 1rem;
  height: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .project-header h1 {
    font-size: 2.5rem; /* Smaller on mobile */
  }
  
  .project-header p {
    font-size: 1.125rem;
  }
  
  .gallery-content {
    padding: 1rem;
  }
  
  .gallery-content h3 {
    font-size: 1.5rem;
  }
  
  .gallery-nav-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .gallery-nav-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .documents-header h2 {
    font-size: 1.875rem;
  }
  
  .document-actions {
    flex-direction: column;
  }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  .fade-slide-up,
  .gallery-slide,
  .hover-lift,
  .document-card,
  .gallery-nav-arrow,
  .gallery-dot,
  .btn-download,
  .btn-preview {
    transition: none;
  }
}

/* Focus states for accessibility */
.gallery-nav-arrow:focus,
.gallery-dot:focus,
.btn-download:focus,
.btn-preview:focus {
  outline: 2px solid var(--forest-500);
  outline-offset: 2px;
}
