/* ==============================
   NOVENAS & INTENTIONS STYLES
   ============================== */

/* --- Neuvaines section in prayers view --- */
.novena-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.novena-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface, #fff);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e0d8c8);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: left;
  width: 100%;
}

.novena-card:active {
  transform: scale(0.98);
}

.novena-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.novena-card-info {
  flex: 1;
  min-width: 0;
}

.novena-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text, #2d2418);
  margin-bottom: 2px;
}

.novena-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary, #6b5e4f);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.novena-card-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.novena-badge-active {
  background: var(--liturgical-color, #4a7c59);
  color: #fff;
}

.novena-badge-start {
  background: var(--color-border, #e0d8c8);
  color: var(--color-text-secondary, #6b5e4f);
}

/* --- Novena day view --- */
.novena-day-view {
  padding-bottom: 20px;
}

.novena-progress-header {
  text-align: center;
  margin-bottom: 20px;
}

.novena-progress-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text, #2d2418);
  margin-bottom: 4px;
}

.novena-progress-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-secondary, #6b5e4f);
  margin-bottom: 12px;
}

.novena-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-border, #e0d8c8);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.novena-progress-fill {
  height: 100%;
  background: var(--liturgical-color, #4a7c59);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.novena-progress-text {
  font-size: 0.8rem;
  color: var(--color-text-secondary, #6b5e4f);
  text-align: center;
}

.novena-day-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 20px;
}

.novena-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border, #e0d8c8);
  transition: background 0.3s;
}

.novena-dot.done {
  background: var(--liturgical-color, #4a7c59);
}

.novena-dot.current {
  background: var(--liturgical-color, #4a7c59);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.25);
}

/* Day content sections */
.novena-section {
  margin-bottom: 20px;
}

.novena-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--liturgical-color, #4a7c59);
  margin-bottom: 6px;
}

.novena-section-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text, #2d2418);
  white-space: pre-line;
}

.novena-section-text.intention-text {
  font-style: italic;
  padding: 12px 16px;
  background: rgba(74, 124, 89, 0.06);
  border-left: 3px solid var(--liturgical-color, #4a7c59);
  border-radius: 0 8px 8px 0;
}

.novena-section-text.prayer-text {
  padding: 12px 16px;
  background: var(--color-surface, #fff);
  border-radius: 8px;
  border: 1px solid var(--color-border, #e0d8c8);
}

.novena-pray-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  background: var(--liturgical-color, #4a7c59);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.novena-pray-btn:active {
  transform: scale(0.97);
}

.novena-pray-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.novena-completed-msg {
  text-align: center;
  padding: 24px 16px;
  background: rgba(74, 124, 89, 0.08);
  border-radius: 12px;
  margin-top: 20px;
}

.novena-completed-msg .emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.novena-completed-msg p {
  color: var(--color-text, #2d2418);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Intentions section --- */
.intentions-section {
  margin-top: 24px;
}

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

.intentions-header h3 {
  margin: 0;
}

.intention-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--liturgical-color, #4a7c59);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  line-height: 1;
}

.intention-add-btn:active {
  transform: scale(0.9);
}

/* Add intention form */
.intention-form {
  padding: 16px;
  background: var(--color-surface, #fff);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e0d8c8);
  margin-bottom: 16px;
}

.intention-form textarea {
  width: 100%;
  border: 1px solid var(--color-border, #e0d8c8);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 60px;
  background: var(--color-background, #f8f5ef);
  color: var(--color-text, #2d2418);
  font-family: inherit;
  box-sizing: border-box;
}

.intention-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.intention-cat-btn {
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--color-border, #e0d8c8);
  background: transparent;
  font-size: 0.8rem;
  color: var(--color-text-secondary, #6b5e4f);
  cursor: pointer;
  transition: all 0.2s;
}

.intention-cat-btn.active {
  background: var(--liturgical-color, #4a7c59);
  color: #fff;
  border-color: var(--liturgical-color, #4a7c59);
}

.intention-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.intention-form-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.intention-save-btn {
  background: var(--liturgical-color, #4a7c59);
  color: #fff;
}

.intention-cancel-btn {
  background: var(--color-border, #e0d8c8);
  color: var(--color-text, #2d2418);
}

/* Intention list */
.intention-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intention-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-surface, #fff);
  border-radius: 10px;
  border: 1px solid var(--color-border, #e0d8c8);
  transition: all 0.3s;
}

.intention-item.answered {
  opacity: 0.6;
}

.intention-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-border, #ccc);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  margin-top: 2px;
  padding: 0;
  font-size: 0.7rem;
  color: transparent;
}

.intention-item.answered .intention-check {
  background: var(--liturgical-color, #4a7c59);
  border-color: var(--liturgical-color, #4a7c59);
  color: #fff;
}

.intention-content {
  flex: 1;
  min-width: 0;
}

.intention-text {
  font-size: 0.9rem;
  color: var(--color-text, #2d2418);
  line-height: 1.4;
}

.intention-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.intention-category-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(74, 124, 89, 0.1);
  color: var(--liturgical-color, #4a7c59);
  font-weight: 600;
}

.intention-date {
  font-size: 0.7rem;
  color: var(--color-text-secondary, #6b5e4f);
}

.intention-delete {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary, #999);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  padding: 0;
}

.intention-delete:hover,
.intention-delete:active {
  color: #c0392b;
}

/* Answered section toggle */
.answered-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--color-text-secondary, #6b5e4f);
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.answered-toggle-arrow {
  transition: transform 0.2s;
  font-size: 0.7rem;
}

.answered-toggle-arrow.open {
  transform: rotate(90deg);
}

.intention-empty {
  text-align: center;
  padding: 20px;
  color: var(--color-text-secondary, #6b5e4f);
  font-size: 0.9rem;
  font-style: italic;
}

/* Answered celebration animation */
@keyframes intentionAnswered {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); background: rgba(74, 124, 89, 0.12); }
  100% { transform: scale(1); }
}

.intention-item.just-answered {
  animation: intentionAnswered 0.5s ease;
}

/* Category icons map */
.cat-icon::before {
  margin-right: 4px;
}
