/* Zaman hesaplayıcısı — öz değerlendirme kartıyla aynı görünüm.
   Düzen: solda tür seçimi (alt alta), sağda değerler (alt alta), altta çubuk grafik + geri kazanılan. */
.v5-content .time-calc {
  margin-top: 46px;
  padding: clamp(20px, 4vw, 38px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--orange);
  border-radius: 8px;
}

.v5-content .time-calc h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.5vw, 34px);
}

.v5-content .time-calc .time-calc-lead {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.6;
}

.v5-content .time-calc .time-calc-claim {
  margin: 0 0 24px;
  max-width: 900px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.time-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px clamp(24px, 4vw, 48px);
  align-items: start;
}

.time-calc fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.time-calc legend {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Tür seçimi: alt alta üç satır, seçili olan turuncu çerçeveli */
.time-calc-types {
  display: grid;
  gap: 10px;
}

.time-calc-type {
  position: relative;
  display: block;
  cursor: pointer;
}

.time-calc-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-calc-type-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.time-calc-type:hover .time-calc-type-body {
  border-color: var(--muted);
}

.time-calc-type input:checked + .time-calc-type-body {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.time-calc-type input:focus-visible + .time-calc-type-body {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.time-calc-type-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.time-calc-type strong {
  font-size: 16px;
}

.time-calc-type small {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.time-calc-type em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
}

.v5-content .time-calc .time-calc-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* Sağ sütun: değerler alt alta */
.time-calc-right {
  display: grid;
  gap: 14px;
  padding-top: 30px;
}

.time-calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.time-calc-field span {
  color: var(--muted);
}

.time-calc-field input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
}

.time-calc-field input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.time-calc-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}

.time-calc-check input {
  margin: 0;
  accent-color: var(--orange);
}

.time-calc-past-field {
  margin-top: 4px;
}

.time-calc-past-field[hidden] {
  display: none;
}

/* Sonuç: solda çubuk grafik, sağda geri kazanılan */
.time-calc-output {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.time-calc-chart {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.time-calc-bar-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 14px;
}

.time-calc-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.time-calc-bar-track {
  height: 26px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--line) 45%, transparent);
  overflow: hidden;
}

.time-calc-bar {
  width: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.35s ease;
}

.time-calc-bar.is-today {
  background: var(--muted);
  opacity: 0.55;
}

.time-calc-bar.is-recipe {
  background: var(--orange);
}

.time-calc-bar-value {
  display: flex;
  flex-direction: column;
  text-align: end;
}

.time-calc-bar-value strong {
  font-size: 18px;
  line-height: 1.25;
}

.time-calc-bar-value small {
  font-size: 12px;
  color: var(--muted);
}

.v5-content .time-calc .time-calc-per {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.time-calc-gain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--orange);
  border-radius: 6px;
}

.time-calc-gain h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.time-calc-gain strong {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
}

.time-calc-gain small {
  font-size: 13px;
  color: var(--muted);
}

.time-calc-gain small.time-calc-gain-label {
  margin-top: -2px;
  font-size: 12px;
}

.time-calc-message {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.time-calc-message[hidden] {
  display: none;
}

/* Sonuçtan danışmanlığa geçiş: tahmin → birlikte ölçme */
.time-calc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--orange);
  border-radius: 6px;
}

.time-calc-cta h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.v5-content .time-calc .time-calc-cta p {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.time-calc-cta .button {
  flex-shrink: 0;
}

.v5-content .time-calc .time-calc-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 900px) {
  .time-calc-layout,
  .time-calc-output {
    grid-template-columns: 1fr;
  }

  .time-calc-right {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  /* Telefonda çubuk satırı: etiket ve değer üstte, çubuk altta */
  .time-calc-bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label value" "track track";
    gap: 6px 12px;
  }

  .time-calc-bar-label { grid-area: label; }
  .time-calc-bar-value { grid-area: value; }
  .time-calc-bar-track { grid-area: track; }

  .time-calc-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
