@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    --bg:        #f4f3ee;
    --surface:   #ffffff;
    --ink:       #1a1a1a;
    --muted:     #6f6e6a;
    --line:      #e6e4dd;
    --accent:    #2f5d50;   /* derin yeşil */
    --accent-2:  #d97a4a;   /* sıcak vurgu */
    --danger:    #b3261e;
    --ok:        #2f5d50;
    --radius:    16px;
    --shadow:    0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(47,93,80,.06) 0%, transparent 45%),
        radial-gradient(120% 120% at 100% 0%, rgba(217,122,74,.06) 0%, transparent 45%),
        var(--bg);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.55;
    padding: 32px 16px 64px;
}

.wrap { max-width: 920px; margin: 0 auto; }
.narrow { max-width: 460px; }

/* Başlık */
.brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 28px;
}
.brand .dot {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--accent); color: #fff;
    display: grid; place-items: center;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px;
    box-shadow: var(--shadow);
}
.brand h1 {
    font-family: 'Sora', sans-serif; font-size: 19px; font-weight: 600;
    letter-spacing: -.01em;
}
.brand h1 span { color: var(--muted); font-weight: 400; }

/* Kart */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.card + .card { margin-top: 18px; }

h2.title {
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: 22px;
    letter-spacing: -.02em; margin-bottom: 6px;
}
.sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 8px; letter-spacing: .01em; }

input[type=number], input[type=text] {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid var(--line); border-radius: 12px;
    font: inherit; font-size: 16px; background: #fafafa;
    transition: border-color .15s, background .15s;
}
input:focus { outline: none; border-color: var(--accent); background: #fff; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 18px;
    background: var(--accent); color: #fff;
    border: none; border-radius: 12px;
    font: inherit; font-weight: 600; font-size: 15.5px;
    cursor: pointer; transition: transform .08s, opacity .15s, background .15s;
}
.btn:hover { background: #274c41; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; background: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: #f6f5f1; }

.alert {
    padding: 13px 16px; border-radius: 12px; font-size: 14px;
    margin-bottom: 18px; border: 1px solid;
}
.alert.err { background: #fdf1f0; color: var(--danger); border-color: #f3d3d0; }
.alert.ok  { background: #eef4f1; color: var(--accent); border-color: #cfe0d8; }
.alert.info{ background: #fbf6f0; color: #8a5a2b; border-color: #efe0cd; }

/* Kişi etiketi */
.person {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; border: 1px solid var(--line);
    border-radius: 12px; background: #fafafa; margin-bottom: 22px;
}
.person .no {
    width: 44px; height: 44px; border-radius: 10px; flex: none;
    background: var(--ink); color: #fff;
    display: grid; place-items: center;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px;
}
.person .meta b { font-family: 'Sora', sans-serif; font-size: 16px; }
.person .meta small { display: block; color: var(--muted); font-size: 13px; }

/* Tercih seçim alanı */
.tercih-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .tercih-grid { grid-template-columns: 1fr; } }

.panel-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 12px;
}
.panel-head h3 { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; }
.counter { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--muted); }
.counter b { color: var(--accent); font-size: 15px; }
.counter.full b { color: var(--accent-2); }

.list {
    border: 1px solid var(--line); border-radius: 12px;
    max-height: 420px; overflow-y: auto; background: #fafafa;
}
.list:empty::after {
    content: 'Henüz tercih eklemedin'; display: block;
    padding: 24px; text-align: center; color: var(--muted); font-size: 13.5px;
}

.item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-bottom: 1px solid var(--line);
    cursor: pointer; transition: background .12s; font-size: 14.5px;
    user-select: none;
}
.item:last-child { border-bottom: none; }
.item:hover { background: #f1efe9; }
.item .rank {
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    background: var(--accent); color: #fff;
    display: grid; place-items: center;
    font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
}
.item .name { flex: 1; }
.item .act { color: var(--muted); font-size: 18px; line-height: 1; }
.item.disabled { opacity: .35; pointer-events: none; }

.foot { margin-top: 22px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }

/* Sonuç tabloları */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font-family: 'Sora', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: none; }
.tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.tag.ok  { background: #eef4f1; color: var(--accent); }
.tag.no  { background: #fdf1f0; color: var(--danger); }
.tag.pref{ background: #f3efe9; color: var(--muted); }

.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.stat {
    flex: 1; min-width: 120px; padding: 16px;
    border: 1px solid var(--line); border-radius: 12px; background: #fafafa;
}
.stat .v { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700; }
.stat .l { font-size: 12.5px; color: var(--muted); }

.section-title {
    font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600;
    margin: 26px 0 12px; letter-spacing: -.01em;
}
