

/* gallery category_list.html */


/* =========================================
   STUNNING BIG CARD CSS
   ========================================= */
:root {
    --card-radius: 20px;
    --transition-speed: 0.4s;
}

.stunning-wide-grid {
    display: grid;
    /* Increased minimum width to 380px to keep them BIG */
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.category-node {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Enforced cinematic ratio */
    border-radius: var(--card-radius);
    overflow: hidden;
    text-decoration: none !important;
    transition: all var(--transition-speed);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-node:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.main-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--transition-speed), transform 0.6s;
}

.category-node:hover .main-bg {
    filter: brightness(0.5);
    transform: scale(1.05);
}

/* Content Overlay */
.node-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    text-align: center;
}

.node-title {
    font-size: 1.8rem; /* Bigger title */
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.node-desc {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 10px;
    line-height: 1.6;
    /* Keeps it from overflowing if description is massive */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mini Thumbnails */
.mini-thumbs-strip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.tiny-thumb {
    width: 65px; /* Bigger mini-thumbnails */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 2px solid white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}



/* gallery video_list.html  */



/* Layout & Sidebar */
.gallery-layout { display: flex; gap: 40px; padding: 40px 5%; align-items: flex-start; }
.sidebar-nav { flex: 0 0 280px; position: sticky; top: 20px; }
.main-content { flex: 1; min-width: 0; }

.sidebar-glass-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 25px;
}

.sidebar-heading { font-weight: 800; margin-bottom: 20px; color: #1e293b; }

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 15px;
    text-decoration: none !important;
    color: #64748b;
    transition: 0.3s;
    background: white;
}

.active-cat { background: #3b82f6; color: white !important; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }

/* Video Card Button Styles */
.play-btn-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: 0.4s;
}

.play-btn-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.2rem;
}

.play-text {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
}

.video-card:hover .play-btn-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.video-card:hover .card-img {
    filter: brightness(0.4) blur(2px);
}

/* Ensure the Hero is a full pill shape as requested */
.video-hero {
    background: #0f172a;
    border-radius: 40px; /* Fully rounded top and bottom */
    padding: 60px 40px;
    margin-bottom: 40px;
    color: white;
}



/* --- THE VIDEO GRID ENGINE --- */
.video-grid {
    display: grid;
    /* This allows up to 4 cards in a row, but stays responsive */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Enforces cinematic shape */
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    display: block;
    text-decoration: none !important;
    transition: all 0.4s ease;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
    display: block;
    transition: 0.5s ease;
}

/* --- OVERLAY & TEXT --- */
.card-overlay {
    position: absolute;
    inset: 0;
    /* Dark gradient so text is readable */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    z-index: 1;
}

.card-info {
    position: absolute;
    bottom: 15px;
    right: 15px;
    left: 15px;
    color: white;
    z-index: 2;
    transition: transform 0.3s ease;
}

.v-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.v-brief {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 4px;
    line-height: 1.4;
}

/* Push text up slightly when play button appears on hover */
.video-card:hover .card-info {
    transform: translateY(-5px);
}




/* gallery video_detail.html */


/* ----------------------------------------------
   استایل‌های کلی
   ---------------------------------------------- */
body {
    font-family: "IRANSans", "Tahoma", sans-serif;
    background-color: #f8f9fa;      /* پس‌زمینهٔ روشن */
    color: #212529;                /* رنگ متن پیش‌فرض */
}

/* عنوان صفحه */
h1 {
    font-size: 2.2rem;
    line-height: 1.3;
}

/* متن توضیحات */
.article-content {
    background-color: #fff;
    border-radius: .5rem;
    line-height: 1.7;
}

/* ----------------------------------------------
   ویدیو
   ---------------------------------------------- */
.video-container .ratio {
    border-radius: .5rem;
    overflow: hidden;
    background-color: #000;
}

/* ----------------------------------------------
   کارت‌های تصویر
   ---------------------------------------------- */
.card {
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: .5rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,.15);
}

/* تصویر داخل کارت */
.card-img-top {
    object-fit: cover;
    height: 200px;               /* ارتفاع ثابت برای یکنواختی */
}

/* متن توضیح تصویر (اختیاری) */
.card-text {
    margin: 0;
    color: #555;
}

/* ----------------------------------------------
   برچسب دسته‌بندی
   ---------------------------------------------- */
.badge {
    font-size: .85rem;
    padding: .35em .6em;
}

/* ----------------------------------------------
   واکنش‌گرایی
   ---------------------------------------------- */
@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    .card-img-top { height: 150px; }
}



