/* turafan.sk – komunita, profil, absolvované túry (agent KOMUNITA). Tokeny z style.css. */

.tf-narrow { max-width: 640px; margin: 0 auto; }
.tab-pane, [id] { scroll-margin-top: calc(var(--tf-topbar-h) + 12px); }
.min-w-0 { min-width: 0; }
.tf-prewrap { white-space: pre-wrap; }

/* ---------- pills (záložky) ---------- */
.tf-pills { gap: 6px; }
.tf-pills .nav-link {
  border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem;
  color: var(--tf-muted); background: var(--tf-card-bg); border: 1px solid var(--tf-border); white-space: nowrap;
}
.tf-pills .nav-link.active { background: var(--tf-accent); border-color: var(--tf-accent); color: #fff; }
.tf-pills .nav-link .badge { vertical-align: middle; }
.tf-pills .nav-link.active .badge { background: rgba(255,255,255,.25) !important; color: #fff; border-color: transparent !important; }
.tf-pills-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
.tf-pills-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tf-pills-scroll { flex-wrap: wrap; margin: 0; padding: 0; } }

/* ---------- zoznamy kariet ---------- */
.tf-list { display: flex; flex-direction: column; gap: 10px; }
.tf-group-card, .tf-event-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--tf-card-bg); border: 1px solid var(--tf-border); border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow); color: var(--tf-text); text-decoration: none; transition: transform .08s ease, box-shadow .08s ease;
}
.tf-group-card:hover, .tf-event-card:hover { color: var(--tf-text); box-shadow: 0 6px 18px rgba(20,30,25,.1); transform: translateY(-1px); }
.tf-group-cover { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.tf-group-cover-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--tf-accent-soft); color: var(--tf-accent-dark); font-size: 1.5rem; }
.tf-group-cover-preview { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.tf-group-hero { width: 100%; height: 160px; object-fit: cover; display: block; }
@media (min-width: 768px) { .tf-group-hero { height: 240px; } }

.tf-event-date {
  flex: 0 0 auto; width: 52px; padding: 6px 0; text-align: center; border-radius: 12px;
  background: var(--tf-accent-soft); color: var(--tf-accent-dark); line-height: 1.05;
}
.tf-event-day { display: block; font-size: 1.35rem; font-weight: 800; }
.tf-event-month { display: block; font-size: .7rem; text-transform: uppercase; font-weight: 600; letter-spacing: .5px; }
.tf-event-date-lg { width: 64px; padding: 10px 0; }
.tf-event-date-lg .tf-event-day { font-size: 1.7rem; }
.tf-event-cancelled { opacity: .6; }
.tf-event-cancelled .tf-event-date { background: #f3e2e0; color: #a33; }
.tf-event-map { height: 240px; width: 100%; background: var(--tf-accent-soft); z-index: 0; }
.tf-event-map.tf-event-map-form { border-radius: 10px; border: 1px solid var(--tf-border); }
.tf-trail-link { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--tf-border); border-radius: 12px; text-decoration: none; color: var(--tf-text); background: var(--tf-bg); }
.tf-trail-link:hover { color: var(--tf-text); border-color: var(--tf-accent); }
.tf-trail-thumb-sm { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.tf-trail-thumb-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--tf-accent-soft); color: var(--tf-accent-dark); }

/* ---------- avatary ---------- */
.tf-avatar-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-avatar-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px;
  background: var(--tf-bg); border: 1px solid var(--tf-border); color: var(--tf-text); text-decoration: none; font-size: .85rem; max-width: 100%;
}
.tf-avatar-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-avatar-chip .tf-avatar { width: 28px; height: 28px; font-size: .7rem; }
.tf-avatar-lg.tf-avatar-initials { font-size: 1.6rem; }

/* ---------- odznaky overenia ---------- */
.tf-vbadge { font-weight: 600; font-size: .72rem; padding: .35em .6em; border-radius: 999px; white-space: nowrap; }
.tf-badge-verified { background: var(--tf-accent); color: #fff; }
.tf-badge-partial { background: #fff3cd; color: #7a5a00; }
.tf-badge-none { background: #e9ecef; color: #5b6560; }

/* ---------- feed / notifikácie ---------- */
.tf-feed-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--tf-accent-soft); color: var(--tf-accent-dark); flex: 0 0 auto;
}
.tf-notif-unread { background: #f1f8f4; }
.tf-notif-unread .tf-feed-icon { background: var(--tf-accent); color: #fff; }
.tf-participant-list li + li { border-top: 1px solid var(--tf-border); }

/* ---------- štatistiky ---------- */
.tf-stat-num { font-size: 1.4rem; font-weight: 800; color: var(--tf-accent-dark); line-height: 1.1; }
.tf-stat-label { font-size: .72rem; color: var(--tf-muted); text-transform: uppercase; letter-spacing: .3px; }
.tf-profile-stats { border-top: 1px solid var(--tf-border); padding-top: 10px; }
.tf-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tf-bg); font-weight: 700; font-size: .8rem; color: var(--tf-muted); flex: 0 0 auto; }
.tf-rank-top { background: #ffe9a8; color: #7a5a00; }

/* ---------- fotky ---------- */
.tf-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 768px) { .tf-photo-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; } }
.tf-photo-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--tf-accent-soft); }
.tf-photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-photo-private { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: .7rem; }
.tf-photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: .68rem; color: #fff; text-decoration: none; background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-photo-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
.tf-photo-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tf-photo-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

/* ---------- absolvoval som ---------- */
.tf-method-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tf-method-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px;
  border: 1px solid var(--tf-border); background: var(--tf-card-bg); color: var(--tf-muted); font-size: .78rem; font-weight: 600;
}
.tf-method-tab i { font-size: 1.3rem; }
.tf-method-tab.active { border-color: var(--tf-accent); background: var(--tf-accent-soft); color: var(--tf-accent-dark); }
.tf-method-pane { display: none; }
.tf-method-pane.active { display: block; }
.tf-evidence { background: var(--tf-bg); border-radius: 10px; padding: 8px 10px; }
.btn-strava { --bs-btn-bg: #fc4c02; --bs-btn-border-color: #fc4c02; --bs-btn-color: #fff; --bs-btn-hover-bg: #d94102; --bs-btn-hover-border-color: #d94102; --bs-btn-hover-color: #fff; }
.tf-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tf-bg); border: 1px solid var(--tf-border); flex: 0 0 auto; }
.tf-service-strava { color: #fc4c02; font-size: 1.2rem; }

/* ---------- check-in ---------- */
.tf-checkin-map { height: 260px; width: 100%; background: var(--tf-accent-soft); z-index: 0; }
.tf-progress { height: 10px; border-radius: 999px; }
.tf-progress .progress-bar { background: var(--tf-accent); transition: width .4s ease; }
.tf-checkin-log li { color: var(--tf-muted); }
.tf-checkin-log li.ok { color: var(--tf-accent-dark); }
.tf-checkin-log li.bad { color: #b02a37; }
.tf-user-marker { width: 18px; height: 18px; border-radius: 50%; background: #1e6fd9; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(30,111,217,.4); }

/* ---------- google tlačidlo (login/register) ---------- */
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid #dadce0; color: #3c4043; font-weight: 600; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; color: #202124; }
.tf-or { display: flex; align-items: center; gap: 10px; color: var(--tf-muted); font-size: .8rem; margin: 14px 0; }
.tf-or::before, .tf-or::after { content: ""; flex: 1; height: 1px; background: var(--tf-border); }

/* ---------- push výzva ---------- */
.tf-push-card { border-color: var(--tf-accent); }
