/* Activities Component Styles */

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.activity-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

.activity-card__icon {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.activity-card:hover .activity-card__icon img {
  transform: scale(1.05);
}

.activity-card__content {
  padding: var(--spacing-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.activity-card__description {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.activity-card__details {
  display: flex;
  gap: var(--spacing-lg);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.activity-card__date,
.activity-card__location {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Dark mode adjustments */
[data-theme="dark"] .activity-card {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .activity-card:hover {
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .activity-card__icon {
  background-color: var(--color-border);
}

/* Responsive */
@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  .activity-card__details {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* Fallback when no images are available */
.activity-card__icon:not(:has(img)) {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  color: white;
  font-size: 3rem;
}

/* Alternative structure for Verein page */
.activity-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.activity-card:hover .activity-image img {
  transform: scale(1.05);
}

.activity-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  z-index: 1;
}

.activity-image:has(img) .activity-icon {
  display: none;
}

.activity-content {
  padding: var(--spacing-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.activity-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
}