/* thanks-cloud.page.scss */

.gratitude-container {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.gratitude-card {
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  
  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
}

.card-header {
  display: flex;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--ion-color-primary) 0%, var(--ion-color-primary-tint) 100%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.date-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 16px;
  min-width: 50px;
  
  .date-number {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
  }
  
  .date-weekday {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}

.time-weather {
  flex-grow: 1;
  
  .time {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  
  .weather-mood {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    .weather {
      font-size: 16px;
      opacity: 0.9;
    }
    
    .mood {
      font-size: 24px;
      margin-left: 8px;
    }
  }
}

.card-content {
  padding: 0;
  background: var(--ion-color-light);
  
  .content-text {
    padding: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ion-color-dark);
    border-bottom: 1px solid var(--ion-color-light-shade);
    white-space: pre-line;
  }
}

.tags-section {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--ion-color-light-shade);
  
  ion-chip {
    --background: transparent;
    --color: var(--ion-color-primary);
    --border-color: var(--ion-color-primary-tint);
    font-size: 12px;
    height: 24px;
    
    ion-label {
      padding: 0 8px;
    }
  }
}

.accordion-content {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ion-color-medium);
  background-color: var(--ion-color-light);
  white-space: pre-line;
}

ion-accordion {
  margin: 0;
  
  ion-item {
    --background: var(--ion-color-light);
    --background-activated: var(--ion-color-light-shade);
    --padding-start: 16px;
    --padding-end: 16px;
    
    ion-label {
      font-size: 14px;
      font-weight: 500;
      color: var(--ion-color-primary);
    }
  }
  
  &[expanded] {
    ion-item {
      --background: var(--ion-color-light-shade);
    }
  }
}

/* 响应式调整 */
@media (max-width: 576px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  
  .date-section {
    flex-direction: row;
    align-items: center;
    margin-right: 0;
    margin-bottom: 8px;
    
    .date-number {
      font-size: 24px;
      margin-right: 8px;
    }
    
    .date-weekday {
      font-size: 13px;
    }
  }
  
  .time-weather {
    width: 100%;
    
    .time {
      font-size: 16px;
    }
  }
  
  .content-text {
    font-size: 15px;
    padding: 12px;
  }
}