/* Fotoğrafla tanıma sayfası (/mantar-tani · /en/identify). Tokenlar mantar.css'ten. */

.tani-kahraman { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.tani-giris h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); max-width: 15ch; }
.tani-alt { font-size: 1.08rem; color: var(--soluk); max-width: 48ch; }
.tani-adimlar { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.tani-adimlar li { display: flex; gap: 12px; align-items: center; }
.tani-adimlar b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--safran-acik); color: var(--safran-koyu); font-family: var(--baslik); }
.tani-adimlar span { color: var(--soluk); font-size: .95rem; }
.tani-adimlar strong { color: var(--murekkep); }

/* yükleme kartı */
.tani-kart { position: relative; background: var(--kagit); border: 1.5px solid var(--cizgi); border-radius: 32px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--golge); }
.tani-birak { display: grid; justify-items: center; gap: 10px; padding: clamp(22px, 4vw, 36px) 16px; border: 2.5px dashed var(--cizgi); border-radius: 26px; background: var(--zemin) var(--spor-doku); transition: border-color .2s, background-color .2s; text-align: center; }
.tani-birak.uzerinde { border-color: var(--yosun); background-color: var(--yosun-acik); }
.tani-kamera { display: grid; justify-items: center; gap: 10px; cursor: pointer; }
.tani-kamera-daire { display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: var(--yosun-koyu); color: #fff; box-shadow: 0 0 0 10px var(--yosun-acik), var(--golge); transition: transform .2s; }
.tani-kamera-daire .ik { width: 54px; height: 54px; }
.tani-kamera:hover .tani-kamera-daire, .tani-kamera:focus-within .tani-kamera-daire { transform: scale(1.05); }
.tani-kamera:focus-within .tani-kamera-daire { outline: 3px solid var(--safran); outline-offset: 12px; }
.tani-kamera-yazi { font-family: var(--baslik); font-weight: 650; font-size: 1.45rem; margin-top: 6px; }
.tani-ya { margin: 0; font-size: .95rem; color: var(--soluk); }
.tani-galeri { cursor: pointer; color: var(--yosun-koyu); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 10px 4px; }
.tani-galeri:focus-within { outline: 3px solid var(--safran); border-radius: 6px; }

.tani-yuvalar { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tani-yuva { position: relative; aspect-ratio: 1; border-radius: 18px; border: 1.5px dashed var(--cizgi); background: var(--zemin); display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 6px; overflow: hidden; }
.tani-yuva-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--kagit); border: 1.5px solid var(--cizgi); font-weight: 800; font-size: .8rem; color: var(--soluk); }
.tani-yuva-ad { font-size: .8rem; line-height: 1.25; color: var(--soluk); font-weight: 700; }
.tani-yuva.dolu { border-style: solid; border-color: var(--yosun); }
.tani-yuva-foto { position: absolute; inset: 0; }
.tani-yuva-foto img { width: 100%; height: 100%; object-fit: cover; }
.tani-sil { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(42, 33, 25, .72); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.tani-mesaj { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--yuvarlak-k); background: var(--zehir-acik); color: #5E120D; font-weight: 700; font-size: .93rem; }
.tani-gonder { width: 100%; justify-content: center; margin-top: 16px; font-size: 1.1rem; min-height: 54px; }
.tani-gonder:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.tani-gizlilik { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: .85rem; color: var(--soluk); }
.tani-gizlilik .ik { color: var(--yosun); margin-top: 2px; }

/* yakında (anahtar yok) */
.tani-yakinda { text-align: center; display: grid; justify-items: center; gap: 6px; padding: clamp(10px, 3vw, 28px) 8px; }
.tani-yakinda-mantar { width: 120px; height: 120px; animation: tani-sallan 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.tani-yakinda h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 0; }
.tani-yakinda p { color: var(--soluk); max-width: 40ch; }

/* bekleme animasyonu */
.tani-bekle { display: grid; justify-items: center; gap: 8px; padding: 30px 10px; text-align: center; }
.tani-bekle[hidden] { display: none; }
.tani-bekle-mantar { width: 170px; height: 150px; overflow: visible; }
.tani-bekle-mantar .govde { animation: tani-zipla 1.4s cubic-bezier(.4, 0, .3, 1) infinite; transform-origin: 80px 126px; }
.tani-bekle-mantar .golge { fill: var(--cizgi); animation: tani-golge 1.4s cubic-bezier(.4, 0, .3, 1) infinite; transform-origin: 80px 128px; }
.tani-bekle-mantar .sap { fill: var(--kagit); stroke: var(--kestane); stroke-width: 3; }
.tani-bekle-mantar .sapka { fill: var(--safran); }
.tani-bekle-mantar .benek { fill: var(--kagit); }
.tani-bekle-mantar .lamel { stroke: var(--safran-koyu); stroke-width: 3; stroke-linecap: round; }
.tani-bekle-mantar .spor circle { fill: var(--kestane); opacity: 0; animation: tani-spor 2.8s ease-out infinite; }
.tani-bekle-mantar .spor circle:nth-child(2) { animation-delay: .5s; }
.tani-bekle-mantar .spor circle:nth-child(3) { animation-delay: 1s; }
.tani-bekle-mantar .spor circle:nth-child(4) { animation-delay: 1.5s; }
.tani-bekle-mantar .spor circle:nth-child(5) { animation-delay: 2s; }
.tani-bekle-yazi { font-family: var(--baslik); font-size: 1.2rem; margin: 0; min-height: 1.6em; }
@keyframes tani-zipla { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.06, .92); } 45% { transform: translateY(-22px) scale(.97, 1.04); } 75% { transform: translateY(0) scale(1.04, .95); } }
@keyframes tani-golge { 0%, 100% { transform: scale(1); opacity: 1; } 45% { transform: scale(.7); opacity: .55; } }
@keyframes tani-spor { 0% { opacity: 0; transform: translateY(18px); } 30% { opacity: .55; } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes tani-sallan { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* sonuç */
.tani-sonuc-alan { scroll-margin-top: 90px; outline: none; }
.tani-sonuc-alan:empty { display: none; }
.tani-sonuc { background: var(--kagit); border: 1.5px solid var(--cizgi); border-radius: 32px; padding: clamp(18px, 3.4vw, 40px); box-shadow: var(--golge); margin-block: 8px 24px; display: grid; gap: 22px; min-width: 0; }
.tani-sonuc-ornek { border: 2.5px dashed var(--zehir); }
.tani-ornek-serit { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 800; color: var(--zehir); }
.tani-sonuc h3 { font-size: 1.12rem; display: flex; gap: 8px; align-items: center; }
.tani-sonuc em { font-style: italic; }

.tani-olumcul { background: var(--zehir); color: #fff; border-radius: 24px; padding: clamp(16px, 2.6vw, 26px); }
.tani-olumcul-ust { display: flex; gap: 10px; align-items: center; margin: 0 0 4px; font-family: var(--baslik); font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.tani-olumcul-ust .ik { width: 1.4em; height: 1.4em; }
.tani-olumcul-alt { margin: 0 0 14px; opacity: .95; }
.tani-benzerler { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tani-benzer { display: grid; grid-template-columns: 92px 1fr; gap: 12px; background: var(--kagit); color: var(--murekkep); border-radius: 18px; padding: 10px; border: 3px solid var(--zehir); min-width: 0; }
.tani-benzer-foto img, .tani-benzer-foto .tani-yer-tutucu { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--zemin); }
.tani-benzer-metin { display: grid; gap: 2px; align-content: start; min-width: 0; }
.tani-benzer-metin .etiket { margin: 0 0 2px; }
.tani-benzer-metin em { font-size: .85rem; color: var(--soluk); }
.tani-benzer-metin p { margin: 4px 0 0; font-size: .88rem; line-height: 1.45; }
.tani-benzer-zehirli { border-color: var(--reishi); }

.tani-karar { display: grid; gap: 10px; justify-items: start; padding-bottom: 4px; }
.tani-karar-baslik { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0; overflow-wrap: anywhere; }
.tani-karar-baslik em { font-size: .55em; color: var(--soluk); font-weight: 500; }
.tani-ya-da { font-family: var(--govde); font-size: .5em; color: var(--kestane); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding-inline: .2em; }
.tani-rozet { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: .4em .85em; border-radius: 999px; }
.tani-rozet-kesin { background: var(--yosun-koyu); color: #fff; }
.tani-rozet-iki { background: var(--safran); color: var(--murekkep); }
.tani-rozet-familya { background: var(--istiridye-acik); color: var(--istiridye-koyu); }
.tani-rozet-tanimsiz { background: var(--cizgi); color: var(--murekkep); }
.tani-guven { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; width: min(100%, 520px); font-size: .95rem; color: var(--soluk); }
.tani-guven b { color: var(--murekkep); font-size: 1.1rem; }
.tani-cubuk { height: 10px; border-radius: 99px; background: var(--zemin); border: 1px solid var(--cizgi); overflow: hidden; }
.tani-cubuk.buyuk { height: 14px; }
.tani-cubuk span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--safran), var(--yosun)); }
.tani-not { font-size: .85rem; color: var(--soluk); margin: 0; }

.tani-adaylar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.tani-aday { background: var(--zemin); border: 1.5px solid var(--cizgi); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.tani-aday.tehlike { border: 3px solid var(--zehir); }
.tani-aday-foto img, .tani-aday-foto .tani-yer-tutucu { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--kestane-acik); }
.tani-aday-foto .tani-yer-tutucu { padding: 18% 22%; }
.tani-aday-metin { padding: 12px 14px 14px; display: grid; gap: 4px; align-content: start; }
.tani-aday-metin .etiket { margin: 0; }
.tani-aday-metin strong { font-family: var(--baslik); font-size: 1.15rem; }
.tani-aday-metin em { font-size: .85rem; color: var(--soluk); }
.tani-aday-metin p { margin: 4px 0 0; font-size: .9rem; line-height: 1.5; }
.tani-aday-guven { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-weight: 800; font-size: .9rem; }
.tani-bag { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-weight: 800; min-height: 32px; }
.tani-bag .ik { width: 1em; height: 1em; }
.tani-bag.yok { color: var(--soluk); font-weight: 600; font-size: .85rem; }

.tani-iki { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.tani-kutu { background: var(--zemin); border-radius: 20px; padding: 16px 18px; min-width: 0; }
.tani-kutu h3 { margin-bottom: .4em; }
.tani-kutu p { margin: 0 0 .5em; }
.tani-kutu .tani-cubuk { margin-top: 6px; }
.tani-kutu-safran { background: var(--safran-acik); }
.tani-ozellik { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tani-ozellik li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }
.tani-ozellik .ik { color: var(--yosun); margin-top: 3px; }
.tani-zehirli-blok h3 { color: var(--zehir); }
.tani-baglantilar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tani-sonuc .zehir-uyari { margin-top: 0; }

/* bilgi bölümü */
.tani-bilgi-ic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); }
.tani-bilgi h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tani-kararlar { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tani-kararlar li { display: grid; gap: 4px; justify-items: start; color: var(--soluk); }
.tani-neden p { color: var(--soluk); }

@media (max-width: 900px) {
	.tani-kahraman { grid-template-columns: 1fr; }
	.tani-bilgi-ic { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.tani-adimlar { display: none; }
	.tani-surukle { display: none; }
	.tani-kamera-daire { width: 112px; height: 112px; }
	.tani-guven { grid-template-columns: 1fr; gap: 6px; }
	.tani-aday { grid-template-columns: 96px 1fr; grid-template-rows: none; }
	.tani-aday-foto { padding: 12px 0 12px 12px; }
	.tani-aday-foto img, .tani-aday-foto .tani-yer-tutucu { width: 84px; height: 84px; aspect-ratio: 1; border-radius: 14px; }
	.tani-aday-foto .tani-yer-tutucu { padding: 14px; }
	.tani-benzer { grid-template-columns: 76px 1fr; }
	.tani-benzer-foto img, .tani-benzer-foto .tani-yer-tutucu { width: 76px; height: 76px; }
}
@media (hover: none) { .tani-surukle { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.tani-bekle-mantar *, .tani-yakinda-mantar { animation: none !important; }
}

.tani-riza { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 10px; font-size: .9rem; color: var(--soluk); cursor: pointer; }
.tani-riza input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--yosun-koyu); flex: none; }
.tani-riza a { color: var(--yosun-koyu); }
