/* AI Widget Styles — Hijri Calendar 2026 */

/* ── "What's Today in Islam?" Card ── */
.ai-today-widget {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.08), rgba(196, 163, 90, 0.02));
  border: 1px solid rgba(196, 163, 90, 0.2);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.ai-today-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c4a35a, #e8d5a3, #c4a35a);
}
.ai-today-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c4a35a;
  margin-bottom: 0.75rem;
}
.ai-today-hijri {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 0.25rem;
}
.ai-today-gregorian {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}
.ai-today-event {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(196, 163, 90, 0.15);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8d5a3;
  margin-bottom: 0.75rem;
}
.ai-today-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #e0d8cc;
}

/* ── Month Spiritual Guides ── */
.ai-month-guide {
  margin: 0.75rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}
.ai-month-guide:hover {
  border-color: rgba(196, 163, 90, 0.15);
}
.ai-month-guide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #c4a35a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}
.ai-month-guide-title::after {
  content: '\25BC';
  font-size: 0.55rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.ai-month-guide-title.expanded::after {
  transform: rotate(180deg);
}
.ai-month-guide-content {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #e0d8cc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s;
  padding-top: 0;
}
.ai-month-guide-content.expanded {
  max-height: 600px;
  padding-top: 0.75rem;
}

/* ── Date Query Widget ── */
.ai-date-query {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
}
.ai-query-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f5f0e8;
  margin-bottom: 0.75rem;
}
.ai-query-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ai-query-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #f5f0e8;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.ai-query-input:focus {
  border-color: rgba(196, 163, 90, 0.5);
}
.ai-query-input::placeholder {
  color: #6b7280;
}
.ai-query-btn {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #c4a35a, #b8943d);
  color: #0a0f1e;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.ai-query-btn:hover {
  opacity: 0.9;
}
.ai-query-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ai-query-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ai-query-chip {
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  color: #9ca3af;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-query-chip:hover {
  background: rgba(196, 163, 90, 0.1);
  border-color: rgba(196, 163, 90, 0.3);
  color: #e8d5a3;
}
.ai-query-answer {
  padding: 1rem;
  background: rgba(196, 163, 90, 0.05);
  border-left: 3px solid #c4a35a;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #e0d8cc;
  line-height: 1.7;
  font-size: 0.95rem;
  display: none;
}
.ai-query-answer.visible {
  display: block;
}

/* ── Loading States ── */
.ai-loading {
  position: relative;
  overflow: hidden;
  min-height: 1.5rem;
}
.ai-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 90, 0.06), transparent);
  animation: ai-shimmer 1.5s infinite;
}
@keyframes ai-shimmer {
  100% { left: 100%; }
}
.ai-loading-text {
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
}

/* ── Section Header ── */
.ai-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(196, 163, 90, 0.2);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ai-today-hijri { font-size: 1.25rem; }
  .ai-query-form { flex-direction: column; }
  .ai-query-btn { width: 100%; }
  .ai-today-widget, .ai-date-query { padding: 1.25rem; }
}
