/* AI Adoption Page Specific Styles */

/* Scroll Reveal Animations */
[data-reveal="up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="up"].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Challenge-Solution Cards */
.challenge-solution-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.challenge-solution-card {
  min-height: 480px;
  overflow: hidden;
  position: relative;
  background: white;
  flex-basis: 350px;
  flex-grow: 1;
  max-width: 420px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.challenge-solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Class-based flip instead of hover */
.challenge-solution-card.is-flipped .challenge-state {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.challenge-solution-card.is-flipped .solution-state {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Action Button Styles */
.card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background-color: #eef2ff;
  color: #312e81;
}
.card-action-btn:hover {
  background-color: #e0e7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.card-action-btn-light {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}
.card-action-btn-light:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Card States */
.challenge-state, .solution-state {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column; 
  height: 100%;
}

.solution-state {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  border-radius: 16px;
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none; /* Fix: impedisce click su elementi invisibili */
  color: white; /* Accessibility fix */
}

/* Icon Styles */
.challenge-icon, .solution-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  
}
.challenge-title, .solution-title {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: center;
}
.solution-title {
    color: white; /* Accessibility fix */
}

.challenge-description, .solution-description {
  font-size: 0.9rem; /* 14.4px */
  line-height: 1.6;
  flex-grow: 1;
  text-align: left;
}
.challenge-description { color: #4b5563; }
.solution-description { color: #dbeafe; }

/* Source Link Styles */
.challenge-source, .solution-source {
  font-size: 0.75rem; /* 12px */
  font-weight: 500;
  text-decoration: none;
  display: block;
  word-break: break-word;
  line-height: 1.4;
}
.challenge-source { color: #3b82f6; }
.challenge-source:hover { text-decoration: underline; }
.solution-source { color: #bfdbfe; opacity: 0.9; transition: opacity 0.2s; }
.solution-source:hover { opacity: 1; text-decoration: underline; }

/* Button Styles (from second style block) */
.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #3B82F6;
  padding: 12px 24px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #3B82F6;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

