/* =====================================================================
   team.css — SSS, Yol Haritası ve Destek baloncuğu stilleri
   Mevcut tema (html.dark) ve sınıflarla (main-card, dl-in, devlog-btn,
   primary-btn, fl, g2, chk) uyumludur. Tailwind yeniden derlemesi gerekmez.
   ===================================================================== */

:root {
    --tm-card: rgba(255, 255, 255, .78);
    --tm-panel: #ffffff;
    --tm-line: rgba(99, 102, 241, .24);
    --tm-soft: rgba(99, 102, 241, .1);
    --tm-mute: #64748b;
    --tm-acc: #6366f1;
    --tm-acc-text: #4f46e5;
    --tm-planned: #64748b;
    --tm-progress: #d97706;
    --tm-done: #16a34a;
}
html.dark {
    --tm-card: rgba(13, 17, 23, .72);
    --tm-panel: #0b0f15;
    --tm-line: rgba(129, 140, 248, .26);
    --tm-soft: rgba(99, 102, 241, .16);
    --tm-mute: #9aa4b2;
    --tm-acc-text: #c7d2fe;
    --tm-planned: #94a3b8;
    --tm-progress: #fbbf24;
    --tm-done: #4ade80;
}

/* üst menü: yeni bağlantılar yalnızca geniş ekranda (dar ekranda altbilgide de var) */
.navlink { white-space: nowrap; }
.navlink.nl-new { display: none; }
@media (min-width: 1180px) { .navlink.nl-new { display: inline-block; } }

#sss [hidden], #roadmap-main [hidden], #sp-root [hidden], #rm-dlg [hidden] { display: none !important; }

/* ---------------------------------------------------------------- SSS */
.faq-list { display: grid; gap: .75rem; margin-top: 1.5rem; max-width: 52rem; }
.faq-item {
    border: 1px solid var(--tm-line); border-radius: 16px; background: var(--tm-card);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: rgba(99, 102, 241, .5); }
.faq-item[open] { border-color: rgba(99, 102, 241, .6); box-shadow: 0 18px 40px -22px rgba(79, 70, 229, .6); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 700; font-size: .95rem; line-height: 1.4;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-radius: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ''; flex: none; width: .55rem; height: .55rem; margin-right: .25rem; opacity: .7;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:focus-visible { outline: 2px solid var(--tm-acc); outline-offset: 2px; }
.faq-a { padding: 0 1.25rem 1.15rem; font-size: .9rem; line-height: 1.75; color: var(--tm-mute); }
.faq-a a { color: var(--tm-acc-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-foot { margin-top: 1.25rem; font-size: .85rem; color: var(--tm-mute); }
.faq-foot button {
    font: inherit; font-weight: 700; color: var(--tm-acc-text); background: none; border: 0; padding: 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}

/* ---------------------------------------------------------- Destek balonu */
#to-top { bottom: 5.4rem; }
#sp-fab {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; width: 58px; height: 58px; border-radius: 50%;
    border: 0; cursor: pointer; color: #fff; display: grid; place-items: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 16px 34px -10px rgba(79, 70, 229, .75);
    transition: transform .25s ease, box-shadow .25s ease;
}
#sp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 22px 40px -10px rgba(79, 70, 229, .85); }
#sp-fab:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 3px; }
#sp-fab svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: opacity .2s ease, transform .25s ease; }
#sp-fab .ic-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
#sp-fab[aria-expanded="true"] .ic-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
#sp-fab[aria-expanded="true"] .ic-x { opacity: 1; transform: none; }
#sp-fab::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #8b5cf6; opacity: 0; pointer-events: none;
    animation: sp-ring 2.4s ease-out 1.5s 3;
}
@keyframes sp-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

#sp-panel {
    position: fixed; right: 1.25rem; bottom: 5.4rem; z-index: 56;
    width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 11rem)); height: min(560px, calc(100dvh - 11rem)); /* üstte sabit başlığa girmez */
    display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
    background: var(--tm-panel); color: inherit; border: 1px solid var(--tm-line);
    box-shadow: 0 30px 70px -20px rgba(2, 4, 10, .65); transform-origin: bottom right;
    animation: sp-in .25s ease;
}
#sp-panel[hidden] { display: none; }
@keyframes sp-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.sp-head {
    display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.sp-av { flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-weight: 800; }
.sp-ht { flex: 1; min-width: 0; line-height: 1.25; }
.sp-ht b { display: block; font-size: .95rem; }
.sp-ht span { display: block; font-size: .72rem; opacity: .85; }
.sp-x { flex: none; width: 32px; height: 32px; border-radius: 10px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.2rem; line-height: 1; }
.sp-x:hover { background: rgba(255, 255, 255, .28); }
.sp-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; scroll-behavior: smooth; }
.sp-msg { max-width: 88%; padding: .65rem .85rem; border-radius: 14px; font-size: .86rem; line-height: 1.6; overflow-wrap: anywhere; }
.sp-bot { align-self: flex-start; background: var(--tm-soft); border-bottom-left-radius: 4px; }
.sp-bot a { color: var(--tm-acc-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sp-me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); border-bottom-right-radius: 4px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sp-chip {
    font: inherit; font-size: .76rem; font-weight: 600; padding: .4rem .75rem; border-radius: 999px; cursor: pointer;
    color: var(--tm-acc-text); background: transparent; border: 1px solid var(--tm-line); transition: background .2s, color .2s, border-color .2s;
}
.sp-chip:hover, .sp-chip:focus-visible { background: #6366f1; color: #fff; border-color: #6366f1; outline: none; }
.sp-chip[disabled] { opacity: .5; cursor: default; pointer-events: none; }
.sp-fb { font-size: .76rem; color: var(--tm-mute); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sp-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .7rem .85rem; border-radius: 14px; background: var(--tm-soft); }
.sp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--tm-mute); animation: sp-bounce 1s infinite ease-in-out; }
.sp-typing i:nth-child(2) { animation-delay: .15s; } .sp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sp-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.sp-compose { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--tm-line); }
.sp-compose input {
    flex: 1; min-width: 0; font: inherit; font-size: .88rem; padding: .65rem .85rem; border-radius: 12px; color: inherit;
    background: transparent; border: 1px solid var(--tm-line);
}
.sp-compose input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.sp-send {
    flex: none; width: 42px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; display: grid; place-items: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); transition: transform .2s;
}
.sp-send:hover { transform: translateY(-2px); }
.sp-send svg { width: 18px; height: 18px; }
.sp-form { align-self: stretch; display: flex; flex-direction: column; gap: .55rem; padding: .85rem; border-radius: 14px; border: 1px solid var(--tm-line); background: var(--tm-panel); }
.sp-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .74rem; font-weight: 700; }
.sp-form input[type="text"], .sp-form input[type="email"], .sp-form textarea {
    font: inherit; font-size: .85rem; font-weight: 400; padding: .55rem .7rem; border-radius: 10px; color: inherit;
    background: transparent; border: 1px solid var(--tm-line); width: 100%;
}
.sp-form textarea { min-height: 5.2rem; resize: vertical; }
.sp-form input:focus, .sp-form textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.sp-form .sp-chk { flex-direction: row; align-items: flex-start; gap: .5rem; font-weight: 500; font-size: .72rem; line-height: 1.45; }
.sp-form .sp-chk input { margin-top: .15rem; flex: none; }
.sp-form .sp-chk a { color: var(--tm-acc-text); font-weight: 700; text-decoration: underline; }
.sp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sp-err { color: #dc2626; font-size: .76rem; font-weight: 600; }
html.dark .sp-err { color: #f87171; }
.sp-submit { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; padding: .65rem 1rem; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.sp-submit:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) {
    #sp-panel { right: .6rem; left: .6rem; width: auto; bottom: 5rem; height: calc(100vh - 10.6rem); height: calc(100dvh - 10.6rem); }
    #sp-fab { right: .9rem; bottom: .9rem; }
    #to-top { right: .9rem; bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
    #sp-fab::after, #sp-panel, .sp-typing i { animation: none !important; }
    #sp-fab, #sp-fab svg { transition: none; }
    .sp-log { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ Yol haritası */
#roadmap-main { display: none; }
body.view-roadmap #roadmap-main { display: flex; }
body.view-roadmap #home, body.view-roadmap #devlog-main { display: none; }

.rm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.rm-sum { flex: 1 1 18rem; max-width: 26rem; }
.rm-sum-text { font-size: .8rem; font-weight: 700; margin-bottom: .45rem; display: block; }
.rm-track { height: 8px; border-radius: 99px; background: var(--tm-soft); overflow: hidden; }
.rm-track > div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #a855f7); transition: width .8s ease; }
.rm-tools { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.rm-who { font-size: .8rem; color: var(--tm-mute); }
.rm-note { width: 100%; font-size: .8rem; color: var(--tm-mute); }
.rm-msg { font-size: .85rem; font-weight: 600; color: var(--tm-mute); }
.rm-msg.err { color: #dc2626; } html.dark .rm-msg.err { color: #f87171; }

.rm-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
@media (max-width: 880px) { .rm-board { grid-template-columns: 1fr; } }
.rm-col {
    border: 1px solid var(--tm-line); border-radius: 18px; background: var(--tm-card); padding: 1rem; min-height: 11rem;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s ease, background-color .2s ease;
}
.rm-col.over { border-color: #6366f1; background: var(--tm-soft); }
.rm-col-h { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-size: .95rem; font-weight: 800; }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rm-col[data-status="planned"] .rm-dot { background: var(--tm-planned); }
.rm-col[data-status="progress"] .rm-dot { background: var(--tm-progress); }
.rm-col[data-status="done"] .rm-dot { background: var(--tm-done); }
.rm-count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .12rem .55rem; border-radius: 99px; background: var(--tm-soft); color: var(--tm-acc-text); }
.rm-list { display: flex; flex-direction: column; gap: .7rem; }
.rm-empty { font-size: .8rem; color: var(--tm-mute); padding: .6rem .2rem; }

.rm-card {
    border: 1px solid var(--tm-line); border-radius: 14px; padding: .85rem .95rem; background: var(--tm-panel);
    display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rm-card:hover { border-color: rgba(99, 102, 241, .55); box-shadow: 0 14px 30px -20px rgba(79, 70, 229, .7); }
body.rm-team .rm-card { cursor: grab; }
.rm-card.drag { opacity: .45; transform: scale(.98); }
.rm-card h3 { margin: 0; font-size: .92rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.rm-card p { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--tm-mute); overflow-wrap: anywhere; white-space: pre-wrap; }
.rm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.rm-chip { font-size: .68rem; font-weight: 700; padding: .18rem .55rem; border-radius: 8px; background: var(--tm-soft); color: var(--tm-acc-text); }
.rm-chip.when { background: transparent; border: 1px solid var(--tm-line); color: var(--tm-mute); }
.rm-own { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; color: var(--tm-mute); }
.rm-own i {
    font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
}
.rm-upd { font-size: .68rem; color: var(--tm-mute); opacity: .85; }
.rm-act { display: none; gap: .35rem; flex-wrap: wrap; padding-top: .35rem; border-top: 1px dashed var(--tm-line); }
body.rm-team .rm-act { display: flex; }
.rm-btn {
    font: inherit; font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 9px; cursor: pointer;
    color: var(--tm-acc-text); background: transparent; border: 1px solid var(--tm-line); transition: background .2s, color .2s;
}
.rm-btn:hover, .rm-btn:focus-visible { background: #6366f1; color: #fff; border-color: #6366f1; outline: none; }
.rm-btn.sp { margin-left: auto; }

#rm-dlg, #rm-dlg-x { color: inherit; }
#rm-dlg { border: 0; background: transparent; padding: 0; margin: auto; width: min(36rem, 94vw); max-height: 92vh; overflow: auto; }
#rm-dlg::backdrop { background: rgba(2, 4, 10, .82); backdrop-filter: blur(6px); }
#rm-form { background-color: #fff !important; }
html.dark #rm-form { background-color: #0b0f15 !important; }
#rm-form select.dl-in { appearance: auto; }
.rm-del { margin-left: auto; color: #dc2626 !important; }
html.dark .rm-del { color: #f87171 !important; }
.rm-del.sure { background: #dc2626 !important; color: #fff !important; }

/* Destek kutusu (yalnızca ekip) */
.rm-inbox { border-top: 1px solid var(--tm-line); padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.rm-inbox-h { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 800; margin: 0; }
.rm-badge { font-size: .72rem; font-weight: 800; padding: .15rem .6rem; border-radius: 99px; color: #fff; background: #dc2626; }
.rm-mails { display: grid; gap: .75rem; }
.rm-mail { border: 1px solid var(--tm-line); border-radius: 14px; padding: .9rem 1rem; background: var(--tm-card); display: flex; flex-direction: column; gap: .45rem; }
.rm-mail.new { border-color: rgba(220, 38, 38, .45); }
.rm-mail.done { opacity: .6; }
.rm-mail-top { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: baseline; font-size: .8rem; }
.rm-mail-top b { font-size: .9rem; }
.rm-mail-top a { color: var(--tm-acc-text); text-decoration: underline; text-underline-offset: 3px; }
.rm-mail-top span { color: var(--tm-mute); }
.rm-mail p { margin: 0; font-size: .85rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.rm-mail-act { display: flex; gap: .4rem; flex-wrap: wrap; }
