/* ====== صفحة التمرير العمودي بنمط TikTok ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.swipe-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.swipe-container::-webkit-scrollbar { display: none; }

.swipe-card {
    position: relative;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* حاوية الصورة بشكل عمودي مثل الهاتف */
.swipe-img-wrap {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 100%;
    margin: 0 auto;
}
.swipe-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* فيديو الإعلان بملء الشاشة (نمط TikTok) */
.ad-swipe-card .swipe-img-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.ad-swipe-card .swipe-bottom h2 { color: #fff; font-size: 22px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.ad-swipe-card .swipe-badge { background: rgba(225,29,72,.85); border: 1px solid rgba(255,255,255,.2); }

.swipe-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.3) 0%,
        rgba(0,0,0,0) 25%,
        rgba(0,0,0,0) 55%,
        rgba(0,0,0,.7) 85%,
        rgba(0,0,0,.95) 100%
    );
}

/* ---- معلومات أسفل الصورة (في المنتصف) ---- */
.swipe-bottom {
    position: absolute;
    left: 0; right: 0; bottom: 96px;
    padding: 0 20px;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.swipe-user { text-align: center; }
.swipe-user h2 a { color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.swipe-handle { color: rgba(255,255,255,.85); font-size: 14px; margin: 4px 0 10px; }
.swipe-online {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-left: 6px;
    box-shadow: 0 0 0 2px rgba(0,0,0,.4);
    vertical-align: middle;
}
.swipe-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 14px;
    background: #e11d48;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
}

/* ---- زر الزيارة أسفل الصورة (احترافي) ---- */
.swipe-actions {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    padding: 0 20px 20px;
    justify-content: center;
}
.swipe-actions a {
    width: 100%;
    max-width: 460px;          /* يطابق عرض حاوية الصورة */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.swipe-actions a:active { transform: scale(.98); }
.sa-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
}

/* زر Visit (أزرق مصمت) */
.sa-visit {
    background: #0ea5e9;
    color: #fff;
    border: 1px solid #0284c7;
}
.sa-visit:hover { background: #0284c7; box-shadow: 0 6px 20px rgba(14,165,233,.55); }

.sa-label { white-space: nowrap; }

/* ---- شريط علوي ---- */
.swipe-top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
}
.swipe-logo {
    background: #e11d48;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .5px;
}

/* مؤشر تحميل */
.swipe-loading {
    display: none;
    text-align: center;
    padding: 14px;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}
.swipe-container .swipe-loading:last-child { display: block; }