/* Swipes — Profil-Discovery */

.swipes-section {
    min-height: calc(100vh - 120px);
    padding: 1rem 0 2rem;
    background: radial-gradient(ellipse at 50% -10%, rgba(255, 140, 0, 0.1), transparent 50%);
}

.swipes-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px);
}

.swipes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.swipes-header h2,
.swipes-page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.swipes-seo-intro {
    order: 99;
    flex-shrink: 0;
    margin-top: auto;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0.5rem clamp(0.75rem, 4vw, 2.5rem) 0;
    font-size: 0.62rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.28);
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    letter-spacing: 0.01em;
}

.swipes-seo-intro strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.38);
}

.swipes-seo-intro a {
    color: rgba(255, 184, 77, 0.45);
    text-decoration: none;
}

.swipes-seo-intro a:hover {
    color: rgba(255, 210, 127, 0.65);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.swipes-stats-strip {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.swipes-stats-strip .swipes-stat-likes {
    color: #ff6b81;
}

.swipes-stage {
    position: relative;
    min-height: 480px;
    margin-bottom: 1rem;
}

.swipes-mobile-guide {
    display: none;
}

.swipes-card-stack {
    position: relative;
    width: 100%;
    height: 480px;
}

.swipes-card-shadow {
    position: absolute;
    inset: 10px 14px 0;
    border-radius: 22px;
    background: rgba(20, 20, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: scale(0.97) translateY(8px);
    z-index: 0;
}

.swipes-card {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 22px;
    overflow: hidden;
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    touch-action: none;
    cursor: grab;
    user-select: none;
    will-change: transform;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.swipes-card:active {
    cursor: grabbing;
}

.swipes-card.swipes-card--like {
    box-shadow: 0 0 36px rgba(46, 213, 115, 0.4);
}

.swipes-card.swipes-card--pass {
    box-shadow: 0 0 36px rgba(255, 71, 87, 0.4);
}

.swipes-stamp {
    position: absolute;
    top: 1.1rem;
    z-index: 5;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
    border: 3px solid currentColor;
}

.swipes-stamp--pass {
    left: 1rem;
    color: #ff4757;
    border-color: #ff4757;
    background: rgba(0, 0, 0, 0.45);
    transform: rotate(-14deg);
}

.swipes-stamp--like {
    right: 1rem;
    color: #2ed573;
    border-color: #2ed573;
    background: rgba(0, 0, 0, 0.45);
    transform: rotate(14deg);
}

.swipes-card-drag-tint {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.swipes-card-drag-tint--pass {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.38) 0%, transparent 50%);
}

.swipes-card-drag-tint--like {
    background: linear-gradient(270deg, rgba(46, 213, 115, 0.38) 0%, transparent 50%);
}

.swipes-card-media {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.swipes-card-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    background: #1a1a1f;
}

.swipes-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 3.5rem 1rem 1rem;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 28%,
        rgba(0, 0, 0, 0.82) 72%,
        rgba(0, 0, 0, 0.94) 100%
    );
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 55%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.swipes-card-overlay__main {
    flex-shrink: 0;
}

.swipes-card-name {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.swipes-card-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.swipes-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.swipes-badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-transform: capitalize;
}

.swipes-card-snippet {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    flex-shrink: 0;
}

.swipes-profile-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0 0.25rem;
}

.swipes-profile-picker__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.swipes-profile-select {
    min-width: 0;
    max-width: min(100%, 220px);
    flex: 1 1 140px;
    padding: 10px 30px 10px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.28);
    background: rgba(20, 20, 24, 0.95);
    color: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffa500' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.swipes-profile-select:focus {
    outline: none;
    border-color: rgba(255, 165, 0, 0.55);
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.15);
}

.swipes-profile-select option {
    background: #1a1a1e;
    color: #fff;
}

.swipes-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: stretch;
    padding: 0;
}

.swipes-actions-row {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    align-items: center;
}

.swipes-action-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.35rem;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.swipes-action-label {
    display: none;
}

.swipes-action-btn:active {
    transform: scale(0.96);
}

.swipes-action-btn--pass {
    background: linear-gradient(145deg, #ff5e6c, #e63946);
    box-shadow: 0 6px 22px rgba(255, 71, 87, 0.4);
}

.swipes-action-btn--like {
    background: linear-gradient(145deg, #3ae374, #27ae60);
    box-shadow: 0 6px 22px rgba(46, 213, 115, 0.4);
}

.swipes-empty,
.swipes-login-hint {
    text-align: center;
    padding: 3rem 1.25rem;
    border-radius: 20px;
    background: rgba(20, 20, 24, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.swipes-empty p,
.swipes-login-hint p {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.swipes-empty-hint {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.58);
}

.swipes-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

body.view-swipes .site-footer {
    display: none;
}

html.xn-route-swipes #home,
html.xn-route-swipes #seo-intro,
html.xn-route-swipes #services,
html.xn-route-swipes #chat,
html.xn-route-swipes #shop,
html.xn-route-swipes #profile,
html.xn-route-swipes #feed,
html.xn-route-swipes #beichten,
html.xn-route-swipes #communities,
html.xn-route-swipes #community-detail-view,
html.xn-route-swipes #telegram-channels,
html.xn-route-swipes #bilder-markt {
    display: none !important;
}

html.xn-route-swipes #swipes {
    display: block !important;
}

@media (max-width: 600px) {
    .swipes-section {
        min-height: 100dvh;
        min-height: 100vh;
        padding: 0.35rem 0 0;
        display: flex;
        flex-direction: column;
    }

    .swipes-container {
        max-width: 100%;
        padding: 0 0.75rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .swipes-header {
        margin-bottom: 0.55rem;
    }

    .swipes-header h2 {
        font-size: 1.15rem;
    }

    .swipes-stage {
        flex: 1;
        min-height: 0;
        margin-bottom: 0.65rem;
        display: flex;
        flex-direction: column;
    }

    .swipes-card-stack {
        flex: 1 1 auto;
        width: 100%;
        min-height: min(52dvh, 520px);
        height: min(52dvh, 520px);
        max-height: min(56dvh, 560px);
        position: relative;
    }

    .swipes-card-shadow {
        inset: 6px 8px 0;
        border-radius: 20px;
    }

    .swipes-card {
        border-radius: 20px;
    }

    .swipes-card-overlay {
        max-height: 48%;
        padding-top: 2.5rem;
    }

    .swipes-card-name {
        font-size: 1.2rem;
    }

    .swipes-mobile-guide {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 0 0.25rem;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .swipes-mobile-guide__pass {
        color: #ff6b7a;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .swipes-mobile-guide__like {
        color: #3ae374;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .swipes-actions {
        flex-shrink: 0;
        gap: 0.45rem;
        padding-top: 0.15rem;
    }

    .swipes-actions-row {
        gap: 0.75rem;
    }

    .swipes-action-btn {
        flex: 1;
        max-width: none;
        width: auto;
        height: auto;
        min-height: 48px;
        border-radius: 14px;
        font-size: 1.1rem;
    }

    .swipes-action-label {
        display: inline;
        font-size: 0.92rem;
        font-weight: 700;
    }

    .swipes-seo-intro {
        padding: 0.4rem clamp(0.65rem, 3vw, 1.25rem) 0.1rem;
        font-size: 0.58rem;
        line-height: 1.3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swipes-card {
        transition: none;
    }

    .swipes-action-btn {
        transition: none;
    }
}
