/* ============================================================
   Zone2 — components.css
   /assets/css/components.css
   Kart, buton, modal, chip, halka vb. bileşenler
   ============================================================ */

/* ── Kart ─────────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}
.card + .card, .card + .card-accent { margin-top: 14px; }

.card-accent {
    border-radius: var(--radius-xl);
    padding: 18px 20px;
}

/* ── Stat grid ────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    gap: 10px;
}
.stat-grid-2 { grid-template-columns: 1fr 1fr; }
.stat-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.stat-cell {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    text-align: center;
}
.stat-cell .stat-val {
    font-family: 'Bebas Neue', cursive;
    font-size: 44px;
    line-height: 1;
}
.stat-cell .stat-unit {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 2px;
}
.stat-cell .stat-label {
    font-size: 18px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── Butonlar ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: .5px;
    transition: transform .15s, box-shadow .15s;
    border-radius: var(--radius-md);
}
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 15px 24px;
    width: 100%;
    box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 0 36px var(--accent-glow); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 13px;
    padding: 8px 16px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger {
    background: rgba(232,64,64,.12);
    border: 1px solid rgba(232,64,64,.3);
    color: var(--health);
    font-size: 13px;
    padding: 8px 16px;
}

/* ── Chip (tag seçimi) ────────────────────────────────────── */
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-sub);
    transition: all .2s;
}
.chip.on {
    border-color: var(--accent);
    background: rgba(255,106,0,.14);
    color: var(--accent);
}

/* ── Difficulty dots ──────────────────────────────────────── */
.diff-dots { display: flex; gap: 8px; align-items: center; }
.diff-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all .2s;
    background: transparent;
}
.diff-dot.on {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ── Check row ────────────────────────────────────────────── */
.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.check-row.on {
    border-color: rgba(255,106,0,.4);
    background: rgba(255,106,0,.07);
}
.check-box {
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
    font-size: 13px;
    color: #fff;
}
.check-row.on .check-box {
    background: var(--accent);
    border-color: var(--accent);
}
.check-row span { font-size: 18px; color: var(--text-sub); }
.check-row.on span { color: var(--text); }

/* ── Pill tabs ────────────────────────────────────────────── */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill-tab {
    padding: 7px 18px;
    border-radius: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-sub);
    transition: all .2s;
}
.pill-tab.on { background: var(--accent); color: #fff; }

/* ── Bottom sheet modal ───────────────────────────────────── */
.sheet-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.72);
    z-index: 198;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.sheet {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 430px;
    background: var(--surface);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 2px solid rgba(255,106,0,.3);
    z-index: 199;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: none;
    animation: slideUp .32s cubic-bezier(.32,.72,0,1);
}
.sheet::-webkit-scrollbar { display: none; }
.sheet-handle {
    display: flex; justify-content: center;
    padding: 12px 0 4px;
}
.sheet-handle span {
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--border);
    display: block;
}
.sheet-body { padding: 12px 22px 100px; }

.sheet-close-btn {
    position: absolute;
    top: 5px; right: 5px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.sheet-close-btn:hover { background: var(--border); color: var(--text); }

/* ── EKG SVG animasyon ────────────────────────────────────── */
.ekg-path {
    stroke-dasharray: 0 400;
    animation: ekgDraw 2s linear infinite;
}

/* ── Pulsing heart ────────────────────────────────────────── */
.heart-pulse {
    display: inline-block;
    animation: heartBeat .9s ease-in-out infinite;
}

/* ── Streak badge ─────────────────────────────────────────── */
.streak-badge {
    background: rgba(255,106,0,.1);
    border: 1px solid rgba(255,106,0,.28);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    text-align: center;
}
.streak-fire { font-size: 20px; animation: fireWiggle .9s ease-in-out infinite; }
.streak-val  { font-family: 'Bebas Neue', cursive; font-size: 30px; color: var(--accent); line-height: 1; }
.streak-lbl  { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; color: rgba(255,106,0,.6); letter-spacing: .5px; }

/* ── Score preview badge ──────────────────────────────────── */
.score-badge {
    background: var(--score-glow);
    border: 1px solid rgba(245,197,24,.35);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    text-align: center;
    min-width: 80px;
}
.score-badge .score-val {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    color: var(--score);
    line-height: 1;
}
.score-badge .score-lbl {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: .5px;
}

/* ── Section label ────────────────────────────────────────── */
.sec-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ── Tag chips (read-only) ────────────────────────────────── */
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 14px; }
.tag-green  { background: rgba(0,204,106,.12); color: var(--green); }
.tag-cyan   { background: rgba(0,184,212,.12); color: var(--cyan); }
.tag-accent { background: rgba(255,106,0,.12); color: var(--accent); }
.tag-score  { background: rgba(245,197,24,.12); color: var(--score); }

/* ── Comparison row ───────────────────────────────────────── */
.compare-cell {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

/* ── Achievement card ─────────────────────────────────────── */
.achievment-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    opacity: .5;
    transition: all .3s;
}
.achievment-card.unlocked {
    background: rgba(255,106,0,.07);
    border-color: rgba(255,106,0,.28);
    opacity: 1;
}

/* ── Weekly ring wrapper ──────────────────────────────────── */
.ring-wrap { display: flex; align-items: center; gap: 14px; }

/* ── Chart container ──────────────────────────────────────── */
.chart-wrap { position: relative; }
.chart-wrap canvas { max-height: 160px; }

/* ── Heat map cell ────────────────────────────────────────── */
.heat-grid { display: flex; gap: 2px; width: max-content; }
.heat-col  { display: flex; flex-direction: column; gap: 2px; }
.heat-cell {
    width: 11px; height: 11px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform .15s;
}
.heat-cell:hover { transform: scale(1.7); }
.heat-scroll { overflow-x: auto; padding-bottom: 4px; }

/* ── History ride card ────────────────────────────────────── */
.ride-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.ride-card:hover {
    border-color: rgba(255,106,0,.4);
    background: var(--accent-glow);
}
.ride-card-chevron { color: var(--text-muted); font-size: 14px; }

/* ── Admin panel stilleri (genel) ────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; font-size: 11px; color: var(--text-muted); }
.admin-table tr:hover td { background: var(--card-bg); }
.badge-active   { background: var(--green-glow); color: var(--green); padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-frozen   { background: var(--health-glow); color: var(--health); padding: 2px 8px; border-radius: 10px; font-size: 11px; }
