/* Video Posts Styles */
.gamiato-video-posts-section {
    padding: 20px 0;
    max-width: 1440px;
    margin: 40px auto 0;
}

.gamiato-video-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gamiato-video-posts-title {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gamiato-video-posts-title .gamiato-video-posts-icon-wrapper {
    background: #e20a0b;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.gamiato-video-posts-title .gamiato-video-posts-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

body.dark-mode .gamiato-video-posts-title {
    color: #ffffff;
}

.gamiato-video-posts-actions .gamiato-video-posts-view-all {
    font-size: 16px;
    color: #666666;
    text-decoration: none;
}

body.dark-mode .gamiato-video-posts-actions .gamiato-video-posts-view-all {
    color: #cccccc;
}

.gamiato-video-posts-actions .gamiato-video-posts-view-all:hover {
    color: #e20a0b;
}

.gamiato-video-posts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    direction: ltr;
}

.gamiato-video-posts-left {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gamiato-video-posts-right {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
}

.gamiato-video-posts-row {
    display: flex;
    gap: 15px;
}

.gamiato-video-posts-card {
    flex: 1;
    width: 100%;
}

.gamiato-video-posts-right-card {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gamiato-video-posts-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
}

/* استایل عمومی برای پست‌های سمت چپ */
.gamiato-video-posts-left .gamiato-video-posts-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

/* استایل خاص برای پست سمت راست */
.gamiato-video-posts-right .gamiato-video-posts-image-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    flex-grow: 1;
    aspect-ratio: 16 / 9;
}

.gamiato-video-posts-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.gamiato-video-posts-card-link:hover .gamiato-video-posts-image {
    opacity: 0.7;
}

.gamiato-video-posts-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

.gamiato-video-posts-play-icon img {
    width: 60px;
    height: 60px;
    transition: width 0.3s ease, height 0.3s ease;
}

.gamiato-video-posts-card-link:hover .gamiato-video-posts-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
}

.gamiato-video-posts-card-link:hover .gamiato-video-posts-play-icon img {
    width: 70px;
    height: 70px;
}

body.dark-mode .gamiato-video-posts-play-icon img {
    filter: brightness(0) invert(1);
}

.gamiato-video-posts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    background: linear-gradient(to bottom, transparent 20%, rgb(0 0 0 / .95));
    transition: background 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

.gamiato-video-posts-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
    text-align: right; /* راست‌چین کردن عنوان */
    direction: rtl; /* تنظیم جهت متن برای RTL */
}

.gamiato-video-posts-card-link:hover .gamiato-video-posts-card-title {
    opacity: 0;
}

.gamiato-video-posts-card-link:hover .gamiato-video-posts-overlay {
    background: linear-gradient(to bottom, transparent 20%, rgb(0 0 0 / .85));
}

@media (max-width: 768px) {
    .gamiato-video-posts-container {
        grid-template-columns: 1fr;
        gap: 15px;
        direction: ltr;
    }

    .gamiato-video-posts-left {
        grid-column: 1 / 2;
        order: 2;
    }

    .gamiato-video-posts-right {
        grid-column: 1 / 2;
        order: 1;
    }

    .gamiato-video-posts-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .gamiato-video-posts-card {
        flex: 0 0 calc(50% - 5px);
    }

    .gamiato-video-posts-left .gamiato-video-posts-image-container {
        aspect-ratio: 1 / 1;
        flex-grow: 0;
    }

    .gamiato-video-posts-right .gamiato-video-posts-image-container {
        aspect-ratio: 2 / 1;
        flex-grow: 0;
    }

    .gamiato-video-posts-title {
        font-size: 20px;
    }

    .gamiato-video-posts-title .gamiato-video-posts-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .gamiato-video-posts-title .gamiato-video-posts-icon {
        width: 20px;
        height: 20px;
    }

    .gamiato-video-posts-actions .gamiato-video-posts-view-all {
        font-size: 14px;
    }

    .gamiato-video-posts-card-title {
        font-size: 14px;
    }

    .gamiato-video-posts-play-icon {
        width: 60px;
        height: 60px;
    }

    .gamiato-video-posts-play-icon img {
        width: 40px;
        height: 40px;
    }

    .gamiato-video-posts-card-link:hover .gamiato-video-posts-play-icon img {
        width: 50px;
        height: 50px;
    }
}