/* ═══════════════════════════════════════════════════════════
   رادیک وب — استایل صفحه گالری ویدئو
   فایل: assets/css/videos.css
   پیشوند: rw-vp-
   ═══════════════════════════════════════════════════════════ */

.rw-vp-section,
.rw-vp-section * {
    box-sizing: border-box;
}

.rw-vp-section {
    padding: 55px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    min-height: 60vh;
    direction: rtl;
    transition: background 0.3s ease;
}

.rw-vp-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══ سربرگ ═══ */
.rw-vp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 32px;
}
.rw-vp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(30,58,138,.06));
    color: var(--rw-primary, #2563EB) !important;
    border-radius: 50px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.rw-vp-badge i { font-size: 13px; color: var(--rw-primary) !important; }

.rw-vp-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: clamp(1.8rem, 3vw + 0.5rem, 2.8rem);
    color: var(--rw-heading, #1E3A8A) !important;
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
}
.rw-vp-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rw-primary, #2563EB), transparent);
    margin: 12px auto 0;
    border-radius: 3px;
}
.rw-vp-subtitle {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    color: var(--rw-muted, #64748B) !important;
    margin: 4px 0 0;
    line-height: 1.8;
    max-width: 640px;
}

/* ═══ نوار ابزار ═══ */
.rw-vp-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.rw-vp-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.rw-vp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    color: #4B5563 !important;
    text-decoration: none !important;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}
.rw-vp-chip i { font-size: 13px; color: inherit !important; }
.rw-vp-chip em {
    font-style: normal;
    padding: 1px 7px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    font-size: 10px;
    min-width: 20px;
    text-align: center;
}
.rw-vp-chip:hover {
    border-color: var(--cat-color, var(--rw-primary));
    color: var(--cat-color, var(--rw-primary)) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}
.rw-vp-chip.rw-vp-chip-active {
    background: var(--cat-color, var(--rw-primary)) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.rw-vp-chip.rw-vp-chip-active i,
.rw-vp-chip.rw-vp-chip-active em {
    color: #fff !important;
}
.rw-vp-chip.rw-vp-chip-active em {
    background: rgba(255, 255, 255, 0.25);
}

/* ═══ جستجو ═══ */
.rw-vp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    padding: 6px 6px 6px 14px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    transition: all 0.25s ease;
    position: relative;
}
.rw-vp-search:focus-within {
    border-color: var(--rw-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.rw-vp-search > i {
    font-size: 14px;
    color: #94A3B8 !important;
    flex-shrink: 0;
}
.rw-vp-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    color: #1F2937;
    padding: 8px 0;
    min-width: 0;
    box-shadow: none !important;
}
.rw-vp-search-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rw-primary, #2563EB), var(--rw-secondary, #1E3A8A)) !important;
    color: #fff !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}
.rw-vp-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.rw-vp-search-btn i { color: #fff !important; }

.rw-vp-search-clear {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #EF4444 !important;
    border-radius: 50%;
    text-decoration: none !important;
    font-size: 11px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.rw-vp-search-clear:hover {
    background: #EF4444 !important;
    color: #fff !important;
}
.rw-vp-search-clear i { color: inherit !important; }

/* ═══ گرید ═══ */
.rw-vp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.rw-vp-item {
    animation: rwVpIn 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes rwVpIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.rw-vp-item:nth-child(1) { animation-delay: 0.03s; }
.rw-vp-item:nth-child(2) { animation-delay: 0.06s; }
.rw-vp-item:nth-child(3) { animation-delay: 0.09s; }
.rw-vp-item:nth-child(4) { animation-delay: 0.12s; }
.rw-vp-item:nth-child(5) { animation-delay: 0.15s; }
.rw-vp-item:nth-child(6) { animation-delay: 0.18s; }
.rw-vp-item:nth-child(7) { animation-delay: 0.21s; }
.rw-vp-item:nth-child(8) { animation-delay: 0.24s; }
.rw-vp-item:nth-child(9) { animation-delay: 0.27s; }
.rw-vp-item:nth-child(10) { animation-delay: 0.30s; }
.rw-vp-item:nth-child(11) { animation-delay: 0.33s; }
.rw-vp-item:nth-child(12) { animation-delay: 0.36s; }

/* ═══ کارت ═══ */
.rw-vp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--rw-card-bg, #FFFFFF);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
    height: 100%;
}
.rw-vp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.2);
}

/* کاور */
.rw-vp-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B, #0F172A);
}
.rw-vp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.rw-vp-card:hover .rw-vp-cover img {
    transform: scale(1.08);
}
.rw-vp-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 56px;
}
.rw-vp-cover-empty {
    background: linear-gradient(135deg, #475569, #1E293B);
}

/* دکمه Play */
.rw-vp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rw-primary, #2563EB) !important;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    z-index: 3;
}
.rw-vp-play-btn i { line-height: 1; margin-right: -3px; color: inherit !important; }
.rw-vp-card:hover .rw-vp-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--rw-primary, #2563EB);
    color: #fff !important;
}
.rw-vp-card:hover .rw-vp-play-btn i { color: #fff !important; }

/* مدت */
.rw-vp-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    direction: ltr;
    z-index: 2;
}

/* بج دسته */
.rw-vp-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    color: #fff !important;
    border-radius: 20px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}
.rw-vp-cat i { font-size: 10px; color: #fff !important; }

/* اطلاعات */
.rw-vp-info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.rw-vp-card-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 17px;
    color: var(--rw-heading, #1E3A8A) !important;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.rw-vp-card:hover .rw-vp-card-title {
    color: var(--rw-primary, #2563EB) !important;
}
.rw-vp-card-desc {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    color: var(--rw-muted, #64748B) !important;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rw-vp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--rw-muted, #64748B) !important;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
}
.rw-vp-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rw-vp-meta i { font-size: 11px; opacity: 0.7; color: inherit !important; }
.rw-vp-source {
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary, #2563EB) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 10px;
}
.rw-vp-source i { color: var(--rw-primary) !important; }

/* ═══ صفحه‌بندی ═══ */
.rw-vp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.rw-vp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    color: #4B5563 !important;
    text-decoration: none !important;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.rw-vp-page-btn i { font-size: 12px; color: inherit !important; }
.rw-vp-page-btn:hover {
    border-color: var(--rw-primary);
    color: var(--rw-primary) !important;
    transform: translateY(-2px);
}
.rw-vp-page-btn.rw-vp-page-active {
    background: linear-gradient(135deg, var(--rw-primary, #2563EB), var(--rw-secondary, #1E3A8A)) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.rw-vp-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 42px;
    color: #94A3B8 !important;
    font-weight: 700;
}

/* ═══ حالت خالی ═══ */
.rw-vp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed rgba(0, 0, 0, 0.08);
}
.rw-vp-empty i {
    font-size: 64px;
    color: #CBD5E1 !important;
    opacity: 0.7;
}
.rw-vp-empty h3 {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 22px;
    color: var(--rw-heading, #1E3A8A) !important;
    margin: 0;
    font-weight: 400;
}
.rw-vp-empty p {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    color: var(--rw-muted, #64748B) !important;
    margin: 0;
    line-height: 1.8;
    max-width: 400px;
}
.rw-vp-empty strong {
    color: var(--rw-primary, #2563EB) !important;
}
.rw-vp-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--rw-primary, #2563EB), var(--rw-secondary, #1E3A8A)) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}
.rw-vp-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    color: #fff !important;
}
.rw-vp-view-all i { color: #fff !important; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════
   Dark Mode
   ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .rw-vp-section {
    background: linear-gradient(180deg, #0B1220 0%, #0F172A 100%);
}
[data-theme="dark"] .rw-vp-badge {
    background: rgba(96, 165, 250, 0.1);
    color: #60A5FA !important;
    border-color: rgba(96, 165, 250, 0.2);
}
[data-theme="dark"] .rw-vp-title { color: #F1F5F9 !important; }
[data-theme="dark"] .rw-vp-subtitle { color: #94A3B8 !important; }
[data-theme="dark"] .rw-vp-chip {
    background: #111C2F;
    border-color: #1E293B;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .rw-vp-chip em { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .rw-vp-search { background: #111C2F; border-color: #1E293B; }
[data-theme="dark"] .rw-vp-search-input { color: #E2E8F0; }
[data-theme="dark"] .rw-vp-card { background: #111C2F; border-color: #1E293B; }
[data-theme="dark"] .rw-vp-card-title { color: #F1F5F9 !important; }
[data-theme="dark"] .rw-vp-card-desc { color: #94A3B8 !important; }
[data-theme="dark"] .rw-vp-meta { color: #94A3B8 !important; border-top-color: #1E293B; }
[data-theme="dark"] .rw-vp-source { background: rgba(96, 165, 250, 0.15); color: #60A5FA !important; }
[data-theme="dark"] .rw-vp-source i { color: #60A5FA !important; }
[data-theme="dark"] .rw-vp-page-btn { background: #111C2F; border-color: #1E293B; color: #CBD5E1 !important; }
[data-theme="dark"] .rw-vp-page-btn:hover { color: #60A5FA !important; }
[data-theme="dark"] .rw-vp-page-dots { color: #64748B !important; }
[data-theme="dark"] .rw-vp-empty { background: #111C2F; border-color: #1E293B; }
[data-theme="dark"] .rw-vp-empty h3 { color: #F1F5F9 !important; }
[data-theme="dark"] .rw-vp-empty p { color: #94A3B8 !important; }
[data-theme="dark"] .rw-vp-empty i { color: #475569 !important; }

/* ═══════════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .rw-vp-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 768px) {
    .rw-vp-section { padding: 35px 0; }
    .rw-vp-container { padding: 0 14px; }
    .rw-vp-grid { gap: 14px; margin-bottom: 28px; }
    .rw-vp-card-title { font-size: 15px; }
    .rw-vp-play-btn { width: 50px; height: 50px; font-size: 20px; }
}
@media (max-width: 600px) {
    .rw-vp-grid { grid-template-columns: 1fr; gap: 14px; }
    .rw-vp-section { padding: 28px 0; }
    .rw-vp-filters { gap: 6px; }
    .rw-vp-chip { font-size: 11px; padding: 6px 12px; }
    .rw-vp-chip em { font-size: 9px; }
    .rw-vp-pagination { gap: 4px; }
    .rw-vp-page-btn { min-width: 36px; height: 36px; font-size: 12px; padding: 0 10px; }
}

.rw-vp-details-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 12px;
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--rw-primary, #2563EB) !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 11px;
    font-weight: 700;
    align-self: flex-start;
    transition: all 0.25s ease;
}
.rw-vp-details-link:hover {
    background: var(--rw-primary, #2563EB) !important;
    color: #fff !important;
    transform: translateX(-3px);
}
.rw-vp-details-link i {
    font-size: 11px;
    color: inherit !important;
}