/* ═══════════════════════════════════════════════
   TOSIGO PROFILSEITE / USER PROFILE CSS
   ═══════════════════════════════════════════════ */

/* ── HEADER ── */
.tsg-profile-header {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 16px;
}
.tsg-profile-banner {
    height: 70px;
    background: linear-gradient(135deg, var(--pv-btn-bg, #039BE5), var(--pv-btn-bg, #039BE5));
}
.tsg-profile-main {
    padding: 0 28px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.tsg-profile-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.tsg-profile-avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pv-btn-bg, #039BE5), var(--pv-btn-bg, #039BE5));
    color: #fff; font-weight: 800; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    border: 4px solid #fff; margin-top: -36px; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.tsg-profile-info { padding-top: 10px; }
.tsg-profile-name { font-size: 20px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; }
.tsg-profile-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tsg-badge-verified {
    display: inline-flex; align-items: center; gap: 3px;
    background: #ffd700; color: #000; padding: 3px 10px;
    border-radius: 12px; font-size: 10px; font-weight: 700;
}
.tsg-badge-type {
    display: inline-flex; align-items: center; gap: 3px;
    background: #e8f5e9; color: #2e7d32; padding: 3px 10px;
    border-radius: 12px; font-size: 10px; font-weight: 700;
}
.tsg-badge-business { background: #e3f2fd; color: #1565c0; }
.tsg-profile-stats { font-size: 12px; color: #888; line-height: 1.6; }
.tsg-profile-stats strong { color: #1a1a2e; }
.tsg-profile-actions { display: flex; gap: 8px; margin-top: 10px; }
.tsg-btn-profile {
    padding: 8px 20px; border-radius: 20px; font-size: 12px;
    font-weight: 700; cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; gap: 5px;
}
.tsg-btn-follow-profile {
    background: linear-gradient(135deg, var(--pv-btn-bg, #039BE5), var(--pv-btn-bg, #039BE5));
    color: #fff; border: none; box-shadow: 0 2px 6px rgba(50,105,22,.2);
}
.tsg-btn-follow-profile:hover { background: linear-gradient(135deg, var(--pv-btn-bg, #039BE5), var(--pv-btn-bg, #039BE5)); transform: translateY(-1px); }
.tsg-btn-share-profile {
    background: #fff; color: var(--pv-btn-bg, #039BE5); border: 1.5px solid rgba(3,155,229,0.25);
}
.tsg-btn-share-profile:hover { background: rgba(3,155,229,0.07); border-color: var(--pv-btn-bg, #039BE5); }

/* Rechte Seite */
.tsg-profile-right { padding-top: 14px; text-align: right; }
.tsg-profile-contact {
    font-size: 13px; color: #555; margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px; justify-content: flex-end;
}
.tsg-profile-contact i { color: var(--pv-btn-bg, #039BE5); width: 16px; text-align: center; }
.tsg-profile-contact a { color: var(--pv-btn-bg, #039BE5); text-decoration: none; font-weight: 600; }
.tsg-profile-contact a:hover { text-decoration: underline; }
.tsg-profile-legal {
    font-size: 12px; color: var(--pv-btn-bg, #039BE5); cursor: pointer; font-weight: 600;
    margin-top: 8px; text-align: right;
}
.tsg-profile-legal:hover { text-decoration: underline; }

/* Entfernung */
.tsg-profile-distance {
    display: inline-flex; align-items: center; gap: 5px;
    background: #e8f5e9; color: #2e7d32;
    padding: 4px 12px; border-radius: 12px;
    font-size: 11px; font-weight: 600;
    margin-top: 8px; float: right;
}

/* ── CONTENT GRID ── */
.tsg-profile-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    margin-top: 20px;
}

/* ── SIDEBAR ── */
.tsg-profile-sidebar {}
.tsg-sidebar-card {
    background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
}
.tsg-sidebar-title { font-size: 13px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; }
.tsg-sidebar-search { display: flex; gap: 6px; }
.tsg-sidebar-input {
    flex: 1; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 8px 10px; font-size: 12px; font-family: inherit;
}
.tsg-sidebar-input:focus { outline: none; border-color: var(--pv-btn-bg, #039BE5); }
.tsg-sidebar-search-btn {
    background: var(--pv-btn-bg, #039BE5); color: #fff; border: none; border-radius: 8px;
    width: 34px; cursor: pointer; font-size: 12px;
    transition: background .15s;
}
.tsg-sidebar-search-btn:hover { background: var(--pv-btn-bg, #039BE5); }
.tsg-sidebar-price-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.tsg-sidebar-price { width: 70px; text-align: center; }
.tsg-sidebar-filter-btn {
    width: 100%; padding: 7px; background: rgba(3,155,229,0.07); color: var(--pv-btn-bg, #039BE5);
    border: 1.5px solid rgba(3,155,229,0.25); border-radius: 8px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all .15s;
}
.tsg-sidebar-filter-btn:hover { background: rgba(3,155,229,0.12); border-color: var(--pv-btn-bg, #039BE5); }
.tsg-sidebar-check {
    display: block; font-size: 12px; color: #555; margin-bottom: 6px;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.tsg-sidebar-check input { accent-color: var(--pv-btn-bg, #039BE5); }

/* ── ANZEIGEN-LISTE ── */
.tsg-profile-adverts {}
.tsg-advert-row {
    background: #fff; border-radius: 12px;
    display: flex; overflow: hidden; margin-bottom: 12px;
    cursor: pointer; transition: box-shadow .2s, transform .15s;
    border: 1px solid #e8eaed;
}
.tsg-advert-row:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
.tsg-advert-row-img {
    width: 190px; min-height: 130px;
    background-size: cover; background-position: center;
    flex-shrink: 0; position: relative;
}
.tsg-advert-row-count {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.6); color: #fff;
    padding: 2px 8px; border-radius: 4px;
    font-size: 10px; backdrop-filter: blur(4px);
}
.tsg-advert-row-body {
    padding: 12px 16px; flex: 1;
    display: flex; flex-direction: column;
}
.tsg-advert-row-top {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #888; margin-bottom: 4px;
}
.tsg-advert-row-top .advert_location {
    display: inline; font-size: 11px; color: #888; margin: 0;
}
.tsg-advert-row-title {
    font-size: 15px; font-weight: 700; color: #1a1a2e;
    text-decoration: none; margin-bottom: 4px;
}
.tsg-advert-row-title:hover { color: var(--pv-btn-bg, #039BE5); }
.tsg-advert-row-desc {
    font-size: 12px; color: #888; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 6px;
}
.tsg-advert-row-price {
    font-size: 16px; font-weight: 800; color: var(--pv-btn-bg, #039BE5); margin-top: auto;
}
.tsg-no-adverts {
    text-align: center; padding: 40px; color: #888;
    background: #fff; border-radius: 12px; font-size: 14px;
}

/* ── PAGINATION ── */
.tsg-pagination {
    display: flex; justify-content: center; gap: 6px; margin-top: 16px; flex-wrap: wrap;
}
.tsg-page-btn {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1.5px solid rgba(3,155,229,0.25); background: #fff; color: var(--pv-btn-bg, #039BE5);
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .15s;
}
.tsg-page-btn:hover { background: rgba(3,155,229,0.07); border-color: var(--pv-btn-bg, #039BE5); }
.tsg-page-btn.active {
    background: linear-gradient(135deg, var(--pv-btn-bg, #039BE5), var(--pv-btn-bg, #039BE5));
    color: #fff; border-color: transparent;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .tsg-profile-main { grid-template-columns: 1fr; }
    .tsg-profile-right { text-align: left; }
    .tsg-profile-contact { justify-content: flex-start; }
    .tsg-profile-content { grid-template-columns: 1fr; }
    .tsg-advert-row { flex-direction: column; }
    .tsg-advert-row-img { width: 100%; height: 180px; }
}


/* ── Rating-Badges ── */
.tsg-rating-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; margin-bottom: 6px; }
.tsg-badge-rating {
    display: inline-flex; align-items: center; gap: 3px;
    background: #7c3aed; color: #fff; padding: 3px 10px;
    border-radius: 12px; font-size: 10px; font-weight: 700;
}
.tsg-badge-rating-naja { background: #dc3545; }
.tsg-badge-sustainability {
    display: inline-flex; align-items: center; gap: 3px;
    background: #059669; color: #fff; padding: 3px 10px;
    border-radius: 12px; font-size: 10px; font-weight: 700;
}
.tsg-response-time {
    display: flex; align-items: center; gap: 8px;
    background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px;
    padding: 8px 14px; margin-top: 6px; font-size: 12px; color: #0c4a6e; font-weight: 500;
}
.tsg-response-time i { color: #0284c7; font-size: 14px; }
.tsg-rating-newuser { font-size: 11px; color: #94a3b8; font-style: italic; margin-top: 2px; }
