/* Diary Tab CSS - Diary entries and content */

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-icon {
  font-size: 3em;
  margin-bottom: 15px;
  opacity: 0.5;
}

.diary-content {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.diary-entry {
  background: white;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #ddd;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.diary-entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.diary-entry:hover::before {
  transform: translateX(100%);
}

.diary-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.diary-entry.good {
  border-left-color: #4caf50;
  background: linear-gradient(135deg, #f8fff8, #f0fff0);
}

.diary-entry.caution {
  border-left-color: #ff9800;
  background: linear-gradient(135deg, #fffbf0, #fff8e1);
}

.diary-entry.avoid {
  border-left-color: #f44336;
  background: linear-gradient(135deg, #fff5f5, #ffebee);
}

.diary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.diary-rating {
  font-size: 1.4em;
}

.diary-time {
  font-size: 0.85em;
  color: #666;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 8px;
}

.diary-meal {
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
}

.diary-advice {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  border-radius: 10px;
}
