﻿/* =========================================
   Ultra-Premium Announcements Area
   ========================================= */

.premium-news-section {
    background-color: #f4f6f8; /* رنگ پس‌زمینه بسیار مدرن و خنثی */
    padding: 100px 0;
}

/* ساختار اصلی کارت با سایه چندلایه (Layered Shadow) */
.premium-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    /* سایه ۳ لایه برای عمق‌دهی فوق‌العاده */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 12px 24px rgba(0, 0, 0, 0.04), 0 24px 48px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    isolation: isolate; /* مدیریت دقیق لایه‌ها */
}

    /* افکت صعود و تعمیق سایه در هاور */
    .premium-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03), 0 24px 40px rgba(0, 0, 0, 0.06), 0 32px 64px rgba(0, 0, 0, 0.08);
    }

/* افکت شاین (نور متحرک روی کارت هنگام هاور) */
.premium-card-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 10;
    transition: none;
    pointer-events: none;
}

.premium-card:hover .premium-card-shine {
    animation: shine-sweep 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes shine-sweep {
    100% {
        left: 200%;
    }
}

/* نگهدارنده تصویر با حاشیه داخلی متمایز */
.premium-image-wrapper {
    position: relative;
    height: 260px;
    margin: 8px 8px 0 8px; /* ایجاد یک حاشیه سفید جذاب دور عکس */
    border-radius: 18px;
    overflow: hidden;
}

.premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* اورلی (هاله تیره) ملایم روی عکس برای خوانایی تگ */
.premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%);
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.premium-card:hover .premium-img {
    transform: scale(1.08);
}

.premium-card:hover .premium-overlay {
    opacity: 0.2;
}

/* تگ تاریخ با استایل دارک‌گلس (Dark Glassmorphism) و نقطه چشمک‌زن */
.premium-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
    z-index: 2;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* رنگ سبز زمردی */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* محتوای متنی */
.premium-content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    direction: rtl;
    text-align: right;
}

/* افکت جادویی زیرخط دار شدن عنوان (Magic Underline) */
.premium-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .premium-title a {
        color: #0f172a;
        text-decoration: none;
        /* افکت خط زیرین که با هاور پر می‌شود */
        background-image: linear-gradient(to right, #0ea5e9, #2563eb);
        background-size: 0% 3px;
        background-repeat: no-repeat;
        background-position: right bottom; /* راست به چپ برای فارسی */
        transition: background-size 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease;
        padding-bottom: 4px;
    }

.premium-card:hover .premium-title a {
    background-size: 100% 3px;
    color: #2563eb;
}

/* فوتر کارت و دکمه مینیمال */
.premium-footer {
    margin-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
}

.premium-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s ease;
    width: max-content;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* انیمیشن جذاب دکمه در هاور */
.premium-card:hover .premium-btn {
    color: #2563eb;
}

.premium-card:hover .btn-icon {
    background: #2563eb;
    color: #ffffff;
    transform: translateX(-6px); /* حرکت فلش به سمت چپ در زبان فارسی */
}
