/* Kahve falı sayfası: astroloji.css ve ruya.css'in üzerine. */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--card-border); border-radius: 16px; background: var(--card); font-size: 0.92rem; }
.steps b {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

/* --- Fotoğraf yuvaları --- */

.photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; }

.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px dashed rgba(243, 194, 107, 0.4);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  font-size: 0.86rem;
  text-align: center;
  cursor: pointer;
}

.photo-slot .slot-icon { font-size: 2rem; }
.photo-slot b { color: var(--foreground); font-size: 0.92rem; }
.photo-slot.is-required { border-color: rgba(255, 122, 0, 0.6); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.has-photo { border-style: solid; border-color: var(--gold); }

.slot-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* --- Sonuç --- */

.cup-photos { display: grid; gap: 10px; }
.cup-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid rgba(243, 194, 107, 0.4); border-radius: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.cup-photos.many { grid-template-columns: repeat(2, 1fr); }
.cup-photos.many img:first-child { grid-column: span 2; }

.symbol-list .yer { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(243, 194, 107, 0.14); color: var(--gold); font-size: 0.74rem; font-weight: 800; }
.wish { margin-top: 12px; border-color: rgba(255, 122, 0, 0.45); background: linear-gradient(140deg, rgba(255, 122, 0, 0.1), var(--card)); }
.advice { margin: 16px 0; font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--gold); text-align: center; }
.advice:empty { display: none; }

.rules { margin-bottom: 18px; }

@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; }
  .photo-slots { gap: 8px; }
  .photo-slot { font-size: 0.74rem; border-radius: 14px; }
  .photo-slot .slot-icon { font-size: 1.5rem; }
}

/* El falı: iki fotoğraf yuvası */
.photo-slots.two { grid-template-columns: repeat(2, 1fr); max-width: 440px; }
.symbol-list .gorunum { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(120, 160, 255, 0.14); color: #b9cbff; font-size: 0.74rem; font-weight: 700; }

/* Tek fotoğraflı bölümler (yüz okuma, fotoğraf analizi) */
.photo-slots.one { grid-template-columns: 1fr; max-width: 240px; }
.result-badges { margin: 4px 0 2px; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.swatch { display: inline-block; width: 18px; height: 18px; margin-right: 8px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 50%; vertical-align: -3px; }
.palette .swatch { width: 38px; height: 38px; margin: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
.chakra-card { border-color: rgba(160, 120, 255, 0.45); background: linear-gradient(140deg, rgba(140, 90, 230, 0.16), var(--card)); }
.element-grid.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .element-grid.five { grid-template-columns: repeat(2, 1fr); } }

/* Fotoğraf yuvası düğmeleri: kamera ya da galeri (foto-yuva.js) */
.photo-slot { cursor: default; padding: 8px; }
.slot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.slot-btn {
  padding: 7px 11px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(243, 194, 107, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.slot-btn:hover { background: rgba(243, 194, 107, 0.2); }
@media (max-width: 680px) { .slot-btn { padding: 6px 8px; font-size: 0.7rem; } .slot-hint { display: none; } }
/* Mobilde çok yuvalı formlar (kahve, el): yuvalar alt alta, yatay kart */
@media (max-width: 680px) {
  .photo-slots:not(.one) { grid-template-columns: 1fr; max-width: none; }
  .photo-slots:not(.one) .photo-slot { flex-direction: row; flex-wrap: wrap; aspect-ratio: auto; min-height: 96px; padding: 12px; gap: 6px 10px; }
  .photo-slots:not(.one) .photo-slot .slot-actions { flex-basis: 100%; margin-top: 2px; }
  .photo-slots:not(.one) .photo-slot.has-photo { aspect-ratio: 4 / 3; }
  .slot-btn { padding: 8px 12px; font-size: 0.82rem; }
}

/* Kamera penceresi (foto-yuva.js) */
.camera-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(3, 4, 12, 0.92); }
.camera-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(100%, 720px); }
.camera-video { width: 100%; max-height: 70vh; border: 2px solid rgba(243, 194, 107, 0.45); border-radius: 20px; background: #000; object-fit: cover; }
.camera-video.is-mirrored { transform: scaleX(-1); }
.camera-status { position: absolute; top: 40%; color: var(--gold); font-weight: 700; }
.camera-actions { display: flex; align-items: center; justify-content: center; gap: 22px; }
.camera-btn { padding: 10px 16px; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 999px; color: #fff; background: rgba(255, 255, 255, 0.08); font: inherit; font-weight: 700; cursor: pointer; }
.camera-shutter { width: 72px; height: 72px; border: 5px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.35); cursor: pointer; }
.camera-shutter:disabled { opacity: 0.4; cursor: progress; }
.camera-shutter:active { transform: scale(0.94); }
.slot-btn { font-family: inherit; line-height: 1.2; }

/* El falı çizgi ölçümü: fotoğraf kırpılmadan gösterilir, çizgiler SVG ile üstüne çizilir */
.olcum-foto { position: relative; margin: 0; }
.cup-photos.many .olcum-foto { grid-column: span 2; }
.cup-photos .olcum-foto img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.olcum-foto svg { position: absolute; top: 2px; left: 2px; width: calc(100% - 4px); height: auto; aspect-ratio: auto; pointer-events: none; }
.olcum-foto figcaption { margin-top: 6px; color: var(--muted); font-size: 0.74rem; line-height: 1.35; }
.olcum-cizgi { fill: none; stroke: #8b0000; stroke-linecap: round; stroke-linejoin: round; opacity: 0.92; }
.olcum-yazi { fill: #fff; stroke: rgba(70, 0, 0, 0.85); paint-order: stroke; font-weight: 800; font-family: system-ui, sans-serif; text-anchor: middle; }
.symbol-list .olcu-etiket { display: block; margin: 2px 0 6px; color: #ffb4a0; font-size: 0.78rem; font-weight: 700; }

/* Netlik ve kahve falı resmi (2026-10-04) */
.belirsiz-etiket { display: inline-block; margin-left: 8px; font-family: Manrope, sans-serif; padding: 1px 8px; border: 1px dashed rgba(243, 194, 107, 0.6); border-radius: 999px; color: #f3d58a; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle; }
.fal-resim { display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 560px; margin: 8px auto 0; border-radius: 20px; overflow: hidden; border: 1px solid rgba(201, 145, 82, 0.45); background: radial-gradient(circle at 50% 40%, #3b2414, #120a05); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.fal-resim img { width: 100%; height: 100%; object-fit: cover; }
.fal-resim span { color: #e8c99a; font-weight: 700; }
.fal-resim.bekliyor { background: linear-gradient(110deg, #2a170b 30%, #4a2c16 50%, #2a170b 70%); background-size: 220% 100%; animation: fal-isilti 1.6s linear infinite; }
@keyframes fal-isilti { to { background-position: -220% 0; } }
.fal-resim-kart .section-note { text-align: center; }
