/* ========================================
   LECTIO DIVINA MODULE
   ======================================== */

/* Step indicator */
.lectio-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 20px 0 28px;
  padding: 0 12px;
}

.lectio-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #b8a88a;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #b8a88a;
  transition: all 0.4s ease;
  flex-shrink: 0;
  position: relative;
}

.lectio-step-dot.active {
  background: #8b6914;
  border-color: #8b6914;
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(139, 105, 20, 0.3);
}

.lectio-step-dot.done {
  background: #6b8f71;
  border-color: #6b8f71;
  color: #fff;
}

.lectio-step-line {
  width: 28px;
  height: 2px;
  background: #d4c9b8;
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.lectio-step-line.done {
  background: #6b8f71;
}

.lectio-step-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  margin-top: 6px;
  margin-bottom: 20px;
}

.lectio-step-label {
  font-size: 10px;
  color: #a09080;
  text-align: center;
  width: 70px;
  transition: color 0.3s ease;
}

.lectio-step-label.active {
  color: #8b6914;
  font-weight: 600;
}

/* Content area */
.lectio-content {
  animation: lectioFadeIn 0.5s ease;
}

@keyframes lectioFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lectio-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.4rem;
  color: #5a4a2a;
  margin-bottom: 6px;
  text-align: center;
}

.lectio-instruction {
  font-size: 0.9rem;
  color: #8a7a6a;
  text-align: center;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.5;
  padding: 0 8px;
}

/* Gospel text */
.lectio-gospel-text {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: #3a2a1a;
  padding: 20px;
  background: linear-gradient(135deg, #faf6f0 0%, #f5efe5 100%);
  border-radius: 12px;
  border-left: 3px solid #c9a84c;
  margin-bottom: 24px;
  max-height: 50vh;
  overflow-y: auto;
}

.lectio-gospel-text.faded {
  opacity: 0.45;
  max-height: 30vh;
  font-size: 1rem;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.lectio-gospel-ref {
  font-size: 0.8rem;
  color: #a09080;
  text-align: right;
  margin-top: 8px;
  font-style: italic;
}

/* Timer */
.lectio-timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0;
}

.lectio-timer-circle {
  position: relative;
  width: 140px;
  height: 140px;
}

.lectio-timer-circle svg {
  transform: rotate(-90deg);
  width: 140px;
  height: 140px;
}

.lectio-timer-circle .timer-bg {
  fill: none;
  stroke: #e8e0d4;
  stroke-width: 4;
}

.lectio-timer-circle .timer-progress {
  fill: none;
  stroke: #8b6914;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.lectio-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 300;
  color: #5a4a2a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

/* Large timer for contemplatio */
.lectio-timer-circle.large {
  width: 200px;
  height: 200px;
}

.lectio-timer-circle.large svg {
  width: 200px;
  height: 200px;
}

.lectio-timer-circle.large .timer-bg,
.lectio-timer-circle.large .timer-progress {
  stroke-width: 3;
}

.lectio-timer-circle.large .lectio-timer-text {
  font-size: 2.8rem;
}

/* Duration selector */
.lectio-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #8a7a6a;
}

.lectio-duration select {
  padding: 4px 8px;
  border: 1px solid #d4c9b8;
  border-radius: 6px;
  background: #faf6f0;
  color: #5a4a2a;
  font-size: 0.85rem;
}

/* Notes textarea */
.lectio-notes {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #d4c9b8;
  border-radius: 12px;
  background: #fdfbf7;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #3a2a1a;
  resize: vertical;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.lectio-notes:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.lectio-notes::placeholder {
  color: #c0b0a0;
  font-style: italic;
}

/* Navigation button */
.lectio-next-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #8b6914, #a37c1c);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lectio-next-btn:active {
  transform: scale(0.98);
}

.lectio-next-btn:hover {
  box-shadow: 0 4px 12px rgba(139, 105, 20, 0.25);
}

.lectio-next-btn.finish {
  background: linear-gradient(135deg, #6b8f71, #5a7d60);
}

/* Contemplatio special layout */
.lectio-contemplatio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}

.lectio-contemplatio .lectio-instruction {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* Dark theme overrides */
.dark .lectio-title {
  color: #e0d4c0;
}

.dark .lectio-instruction {
  color: #a89888;
}

.dark .lectio-gospel-text {
  background: linear-gradient(135deg, #2a2520 0%, #252018 100%);
  color: #d8cfc0;
  border-left-color: #8b6914;
}

.dark .lectio-timer-text {
  color: #e0d4c0;
}

.dark .lectio-timer-circle .timer-bg {
  stroke: #3a352e;
}

.dark .lectio-notes {
  background: #2a2520;
  border-color: #4a4035;
  color: #d8cfc0;
}

.dark .lectio-notes:focus {
  border-color: #8b6914;
}

.dark .lectio-step-dot {
  border-color: #6a5a4a;
  color: #8a7a6a;
}

.dark .lectio-step-line {
  background: #4a4035;
}

.dark .lectio-duration select {
  background: #2a2520;
  border-color: #4a4035;
  color: #d8cfc0;
}

/* Sepia theme overrides */
.sepia .lectio-gospel-text {
  background: linear-gradient(135deg, #f4ecd8 0%, #efe6d0 100%);
}

.sepia .lectio-notes {
  background: #f4ecd8;
}
