/* ================= بخش کلی بخش آثار برگزیده (پس‌زمینه روشن) ================= */
.portfolios-premium-section {
    padding: 100px 0;
    background-color: var(--bg-light); /* استفاده از رنگ روشن روت پروژه */
    overflow: hidden;
    position: relative;
}

/* ================= سربرگ بخش (متناسب با پس‌زمینه روشن) ================= */
.portfolios-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolios-header .pre-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.portfolios-header h2 {
    font-size: 2.3rem;
    color: var(--primary-color); /* رنگ تیره سرمه‌ای برای خوانایی روی پس‌زمینه روشن */
    font-weight: 800;
    margin: 10px 0 0 0;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.header-decoration .line {
    width: 60px;
    height: 1px;
    background-color: rgba(15, 23, 42, 0.15); /* خطوط تیره ملایم روی پس‌زمینه روشن */
}

.header-decoration .star-accent {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* ================= پوشش بیرونی اسلایدر برای کنترل فلش‌ها در لبه‌ها ================= */
.portfolios-slider-outer-wrapper {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px; 
}

/* محفظه نمایش کارت‌ها */
.portfolios-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* ریل متحرک اسلایدر */
.portfolios-slider-track {
    display: flex;
    direction: rtl;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* ابعاد متوازن کارت‌ها در گرید */
.portfolio-slider-item {
    flex: 0 0 calc(25% - 18px);
    min-width: 250px;
    box-sizing: border-box;
}

/* ================= ساختار کارت لوکس تیره بر روی پس‌زمینه روشن ================= */
.portfolio-card {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    height: 400px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s ease;
}

/* افکت شیمِر نوری */
.shimmer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 70%
    );
    background-size: 200% 200%;
    background-position: 200% 0;
    transition: background-position 0.8s ease;
    pointer-events: none;
    z-index: 4;
}

/* قاب عکس پرتره اثر */
.portfolio-card .card-image-wrapper {
    position: relative;
    height: 240px;
    margin: 10px 10px 0 10px;
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                filter 0.6s ease;
}

.portfolio-card .card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--primary-color) 0%, transparent 40%);
    pointer-events: none;
}

/* نشان روی کارت مربوط به رشته تحصیلی اثر */
.portfolio-card .premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(217, 56, 108, 0.15); /* هماهنگ با رنگ سرخابی */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(217, 56, 108, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

/* مشخصات متنی */
.portfolio-info-box {
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    position: relative;
}

.portfolio-info-box .bg-watermark {
    position: absolute;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.02);
    left: 10px;
    bottom: -10px;
    pointer-events: none;
    transition: color 0.4s ease, transform 0.4s ease;
}

.portfolio-title {
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 800;
    margin: 0 0 4px 0;
    z-index: 2;
    transition: color 0.3s ease;
}

.student-creator {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    z-index: 2;
}

.portfolio-card .card-footer-laser {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.4s ease;
}

/* ================= جزییات هاور کارت‌ها ================= */
.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 56, 108, 0.35);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3), 
                0 0 20px rgba(217, 56, 108, 0.15);
}

.portfolio-card:hover .shimmer-overlay {
    background-position: -200% 0;
}

.portfolio-card:hover .card-image-wrapper img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.portfolio-card:hover .portfolio-title {
    color: var(--accent-color);
}

.portfolio-card:hover .bg-watermark {
    color: rgba(217, 56, 108, 0.05);
    transform: scale(1.1) rotate(-10deg);
}

.portfolio-card:hover .card-footer-laser {
    width: 80%;
}

/* ================= دکمه‌های ناوبری چپ و راست کناری ================= */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(15, 23, 42, 0.9); /* سرمه‌ای تیره برای نمایان بودن روی پس‌زمینه روشن */
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slider-nav-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.slider-nav-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(217, 56, 108, 0.4);
}

.prev-btn { right: 5px; }
.next-btn { left: 5px; }

.prev-btn:hover i { transform: translateX(3px); }
.next-btn:hover i { transform: translateX(-3px); }

/* ================= دکمه فراخوان ورود به گالری پایین اسلایدر ================= */
.portfolios-action {
    margin-top: 50px;
    text-align: center;
}

.premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.premium-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(217, 56, 108, 0.3);
    transform: translateY(-2px);
}

.premium-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.premium-btn:hover i {
    transform: translateX(-5px);
}

/* حالت خالی بودن گالری آثار */
.empty-portfolios {
    text-align: center;
    padding: 50px;
    width: 100%;
    color: var(--text-dark); /* رنگ مناسب پس‌زمینه روشن */
}

.empty-portfolios i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* ================= واکنش‌گرایی ================= */
@media (max-width: 992px) {
    .portfolios-slider-outer-wrapper {
        padding: 0 10px;
    }
    .slider-nav-btn { display: none; }
    .portfolios-slider-viewport {
        overflow-x: auto;
        padding: 10px;
    }
}