/* Luna Oracle — Dynamic Content Styles */

/* Content Cards */
.content-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(107, 76, 154, 0.08);
  border: 1px solid rgba(107, 76, 154, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 76, 154, 0.12);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(107, 76, 154, 0.1);
}

.content-header h3 {
  color: #6b4c9a;
  font-size: 1.3em;
  margin: 0;
}

.content-date {
  color: #999;
  font-size: 0.85em;
}

.content-badge {
  background: linear-gradient(135deg, #f8f0ff, #fff0f5);
  color: #6b4c9a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
}

.premium-badge {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #5a3d00;
}

.holiday-badge {
  background: linear-gradient(135deg, #ff6b6b, #ffa07a);
  color: white;
}

/* Ratings */
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #f8f0ff, #fff0f5);
  border-radius: 12px;
}

.rating-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-label {
  text-transform: capitalize;
  font-weight: 600;
  color: #6b4c9a;
  font-size: 0.85em;
}

.rating-stars {
  font-size: 0.9em;
}

/* Lucky Elements */
.lucky-elements {
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f8ff, #f5f0ff);
  border-radius: 12px;
  font-size: 0.9em;
}

.lucky-label {
  font-weight: 600;
  color: #6b4c9a;
}

.lucky-item {
  color: #555;
}

/* Content Body */
.content-body {
  line-height: 1.8;
  color: #333;
}

.content-body p {
  margin-bottom: 12px;
}

/* Week Theme */
.week-theme, .month-theme {
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f0ff, #fff5f8);
  border-radius: 10px;
  margin-bottom: 16px;
  color: #6b4c9a;
  font-style: italic;
  border-left: 3px solid #6b4c9a;
}

/* Key Days */
.key-days {
  margin: 16px 0;
}

.key-day {
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #fafafa;
  border-radius: 8px;
  font-size: 0.9em;
}

/* Key Dates Section */
.key-dates-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(107, 76, 154, 0.2);
}

.key-dates-section h4 {
  color: #6b4c9a;
  margin-bottom: 12px;
}

.key-date {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #f8f8ff;
  border-radius: 8px;
}

.date-badge {
  display: inline-block;
  background: #6b4c9a;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 8px;
}

/* Affirmation */
.affirmation {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #fff8e1, #fff0f5);
  border-radius: 12px;
  text-align: center;
  font-size: 1.1em;
  color: #6b4c9a;
  font-style: italic;
}

/* Holiday Content */
.holiday-header {
  background: linear-gradient(135deg, #fff0f0, #fff5e6);
  margin: -24px -24px 16px -24px;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
}

.ritual-box {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #f0fff0, #f5f0ff);
  border-radius: 12px;
  border: 1px dashed #6b4c9a;
}

.ritual-box h4 {
  color: #6b4c9a;
  margin-bottom: 8px;
}

/* Overview Card */
.overview-card {
  background: linear-gradient(135deg, #f8f0ff, #fff0f5);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.retrograde-alert {
  background: #fff3cd;
  color: #856404;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}

.today-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.event-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.event-badge.high {
  background: linear-gradient(135deg, #ff6b6b, #ffa07a);
  color: white;
}

.event-badge.medium {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #5a3d00;
}

.event-badge.low {
  background: #e8e8e8;
  color: #666;
}

.upcoming-section h4 {
  color: #6b4c9a;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.upcoming-item {
  padding: 4px 0;
  font-size: 0.85em;
  color: #555;
}

.upcoming-date {
  display: inline-block;
  background: #6b4c9a;
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-right: 6px;
}

/* Content Tabs */
.content-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: #f5f0ff;
  padding: 4px;
  border-radius: 12px;
}

.content-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #6b4c9a;
  transition: all 0.2s;
  font-size: 0.9em;
}

.content-tab:hover {
  background: rgba(107, 76, 154, 0.1);
}

.content-tab.active {
  background: white;
  box-shadow: 0 2px 8px rgba(107, 76, 154, 0.15);
}

/* Sign Selector */
.sign-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.sign-btn {
  padding: 10px 8px;
  border: 2px solid rgba(107, 76, 154, 0.2);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-size: 0.85em;
}

.sign-btn:hover {
  border-color: #6b4c9a;
  background: #f8f0ff;
}

.sign-btn.active {
  border-color: #6b4c9a;
  background: linear-gradient(135deg, #6b4c9a, #9b59b6);
  color: white;
}

.sign-btn .sign-icon {
  display: block;
  font-size: 1.5em;
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .sign-selector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .content-tabs {
    flex-wrap: wrap;
  }
  
  .content-tab {
    flex: none;
    width: calc(50% - 2px);
  }
  
  .ratings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sign-selector-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .sign-btn {
    padding: 8px 4px;
    font-size: 0.75em;
  }
}
