/* SanaHelwa — Frontend Styles */

/* ─── YouTube Video Card ─────────────────────────────────────────────────── */
.sh-video-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 540px;
    margin: 20px auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    background: #fff;
    font-family: inherit;
}

/* Thumbnail wrapper */
.sh-video-thumb-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.sh-video-thumb-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.25s ease;
}

.sh-video-thumb-wrap:hover img {
    opacity: 0.85;
}

/* Circular play button overlay */
.sh-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 0, 0.88);
    border-radius: 50%;
    pointer-events: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Triangle inside play icon using clip-path */
.sh-play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent #fff;
}

.sh-video-thumb-wrap:hover .sh-play-icon {
    background: rgba(200, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.08);
}

/* Card body */
.sh-video-info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sh-video-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    direction: rtl;
    text-align: right;
}

/* Watch button */
.sh-watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff0000;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    align-self: flex-start;
    transition: background 0.2s ease, transform 0.15s ease;
    direction: rtl;
}

.sh-watch-btn:hover,
.sh-watch-btn:focus {
    background: #cc0000;
    color: #fff !important;
    transform: translateY(-1px);
    outline: none;
}

.sh-watch-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .sh-video-card {
        max-width: 100%;
        border-radius: 8px;
    }

    .sh-play-icon {
        width: 50px;
        height: 50px;
    }

    .sh-watch-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }
}
