/* ============ إعدادات أساسية ============ */
:root {
    --radius: 12px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --gray-light: #f3f4f6;
    --gray-medium: #e5e7eb;
}

/* تأثير التحميل */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* حركة الـ skeleton */
.skeleton {
    background-image: linear-gradient(
        90deg,
        var(--gray-medium) 0px,
        var(--gray-light) 40px,
        var(--gray-medium) 80px
    );
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* ============ البطاقة العامة ============ */
.placeholder-card,
.news-placeholder {
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ============ placeholder البطاقة العادية (المشاريع) ============ */
.placeholder-card {
    padding: 25px;
    gap: 20px;
    height: 520px;
    justify-content: space-between;
}

.placeholder-card .image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius);
}

.placeholder-line {
    height: 12px;
    border-radius: 8px;
    margin-top: 6px;
}

.placeholder-line.short { width: 50%; }
.placeholder-line.medium { width: 70%; }
.placeholder-line.long { width: 90%; }

.placeholder-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.placeholder-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.placeholder-rect {
    width: 70px;
    height: 32px;
    border-radius: 6px;
}

.placeholder-button {
    width: 100%;
    height: 40px;
    border-radius: 12px;
}

.placeholder-card * {
    background-color: var(--gray-medium);
    background-image: linear-gradient(
        90deg,
        var(--gray-medium) 0px,
        var(--gray-light) 40px,
        var(--gray-medium) 80px
    );
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* ============ placeholder الأخبار ============ */
.news-placeholder {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 430px;
}

/* ✅ الصورة رمادية وفيها وميض أبيض */
.news-placeholder .image {
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
    background-color: #d1d5db; /* الرمادي الثابت */
    position: relative;
    overflow: hidden;
}

/* ✅ الوميض الأبيض */
.news-placeholder .image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    animation: shimmer 1.6s infinite;
}

/* باقي الكرت */
.news-placeholder .body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* النصوص */
.news-placeholder .tag,
.news-placeholder .title,
.news-placeholder .text-line,
.news-placeholder .button {
    background-color: #e5e7eb;
    border-radius: 6px;
}

/* التصنيف */
.news-placeholder .tag {
    width: 90px;
    height: 18px;
}

/* العنوان */
.news-placeholder .title {
    width: 80%;
    height: 16px;
    margin-top: 15px;
}

/* النص */
.news-placeholder .text-line {
    height: 10px;
    margin-top: 8px;
}

.news-placeholder .text-line.short { width: 60%; }
.news-placeholder .text-line.medium { width: 80%; }
.news-placeholder .text-line.long { width: 95%; }

/* زر اقرأ المزيد */
.news-placeholder .button {
    width: 120px;
    height: 32px;
    margin-top: 20px;
}

/* حركة الوميض الأبيض */
@keyframes shimmer {
    0% {
        transform: translateX(-150px);
    }
    100% {
        transform: translateX(300%);
    }
}
