/* ================================================
   VACCINATIONS PAGE STYLES
   Australian vaccination tracking interface
   ================================================ */

/* Page Hero */
.page-hero {
  padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
  background: linear-gradient(135deg, 
    rgba(255, 107, 157, 0.05) 0%, 
    rgba(78, 205, 196, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.page-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-lg);
}

.page-hero .hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-pink);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: var(--space-xs);
}

.page-hero .hero-image {
  position: relative;
}

.page-hero .hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.image-overlay {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
}

.overlay-card {
  background: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent-teal);
  font-weight: 500;
}

/* Quick Actions */
.quick-actions {
  padding: var(--space-xl) 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}

.action-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn.primary {
  background: var(--accent-pink);
  color: white;
  border-color: var(--accent-pink);
}

.action-btn.secondary {
  background: var(--accent-teal);
  color: white;
  border-color: var(--accent-teal);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-btn.primary:hover {
  background: #E91E63;
  border-color: #E91E63;
}

.action-btn.secondary:hover {
  background: #26A69A;
  border-color: #26A69A;
}

/* Main Content */
.main-content {
  padding: var(--space-3xl) 0;
  background: var(--gray-50);
  min-height: 60vh;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Upcoming Section */
.upcoming-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  height: fit-content;
  position: sticky;
  top: calc(70px + var(--space-xl));
}

.upcoming-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.upcoming-card {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  cursor: pointer;
}

.upcoming-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.vaccine-name {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 1.125rem;
}

.due-badge {
  background: var(--accent-pink);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

.due-badge.soon {
  background: var(--accent-orange);
}

.due-badge.later {
  background: var(--accent-teal);
}

.card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.detail-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-weight: 500;
  color: var(--gray-700);
}

.card-actions {
  display: flex;
  gap: var(--space-sm);
}

.action-btn-small {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: white;
  color: var(--gray-600);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn-small:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

.action-btn-small.primary {
  background: var(--accent-pink);
  color: white;
  border-color: var(--accent-pink);
}

/* Recent Section */
.recent-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.vaccination-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.vaccination-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.vaccination-item:hover {
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-sm);
}

.vaccination-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.vaccination-name {
  font-weight: 600;
  color: var(--gray-800);
}

.vaccination-date {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.vaccination-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.detail-separator {
  color: var(--gray-300);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--gray-500);
}

.empty-icon {
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}

.empty-state p {
  margin-bottom: var(--space-lg);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: var(--space-lg);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.modal-content.large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--gray-200);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  display: flex;
  gap: var(--space-lg);
  justify-content: flex-end;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-200);
}

/* Vaccine Info Panel */
.vaccine-info {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.vaccine-info h4 {
  color: var(--gray-800);
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.info-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.info-value {
  color: var(--gray-700);
  font-weight: 500;
}

/* NIP Schedule */
.schedule-info {
  max-height: 70vh;
  overflow-y: auto;
}

.schedule-intro {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.schedule-timeline {
  position: relative;
}

.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-pink), var(--accent-teal));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-left: 60px;
}

.timeline-marker {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}

.timeline-marker.birth { background: var(--accent-pink); }
.timeline-marker.two-months { background: var(--accent-teal); }
.timeline-marker.four-months { background: var(--accent-mint); }
.timeline-marker.six-months { background: var(--accent-orange); }
.timeline-marker.twelve-months { background: var(--accent-purple); }
.timeline-marker.eighteen-months { background: #F97316; }

.timeline-content h3 {
  color: var(--gray-800);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.vaccine-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.vaccine-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.vaccine-item strong {
  display: block;
  color: var(--gray-800);
  margin-bottom: var(--space-xs);
}

.vaccine-item small {
  color: var(--gray-600);
  line-height: 1.4;
}

.schedule-notes {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
}

.schedule-notes h4 {
  color: var(--gray-800);
  margin-bottom: var(--space-md);
}

.schedule-notes ul {
  color: var(--gray-600);
  line-height: 1.6;
  padding-left: var(--space-lg);
}

.schedule-notes li {
  margin-bottom: var(--space-sm);
}

/* Form Enhancements */
.form-help {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-hero .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-stats {
    justify-content: center;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-section {
    position: relative;
    top: auto;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .upcoming-card .card-details {
    grid-template-columns: 1fr;
  }

  .vaccination-details {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: var(--space-md);
  }

  .modal-footer {
    flex-direction: column;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .schedule-timeline::before {
    left: 15px;
  }

  .timeline-marker {
    left: 3px;
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: calc(70px + var(--space-lg)) 0 var(--space-lg);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: 2rem;
  }

  .vaccine-list {
    gap: var(--space-sm);
  }

  .vaccine-item {
    padding: var(--space-md);
  }

  .timeline-item {
    padding-left: 40px;
  }

  .schedule-timeline::before {
    left: 10px;
  }
}

/* Animation Classes */
.slide-in {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Status Indicators */
.status-completed {
  color: var(--success-500);
}

.status-upcoming {
  color: var(--accent-orange);
}

.status-overdue {
  color: var(--error-500);
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}