﻿/* ======================================================
   🔒 NEWS PAGE – ISOLATED & FIXED LAYOUT
   ====================================================== */

/* ===============================
   CARD BASE
================================ */
.news-card {
    background: var(--card-bg);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    }

    /* الصورة */
    .news-card img {
        height: 220px;
        object-fit: cover;
        width: 100%;
    }

/* ===============================
   STATUS BADGE
================================ */
.badge-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    z-index: 5;
}

    .badge-status.active {
        background: linear-gradient(135deg, #22c55e, #16a34a);
    }

    .badge-status.inactive {
        background: linear-gradient(135deg, #ef4444, #b91c1c);
    }

/* ===============================
   FLOATING ACTION BUTTONS
================================ */
.news-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    margin-top: -28px;
    z-index: 10;
}

.circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .circle-btn:hover {
        transform: scale(1.15);
        box-shadow: 0 0 12px rgba(0,0,0,.4);
    }

.btn-view {
    background: #0d6efd;
}

.btn-edit {
    background: #ffc107;
    color: #000;
}

.btn-delete {
    background: #dc3545;
}

/* ===============================
   CARD BODY
================================ */
.news-card .p-4 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    flex: 1;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.news-date {
    font-size: 0.85rem;
    color: var(--label-color);
}

/* ===============================
   FOOTER BUTTONS (FIXED)
================================ */
.news-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

    .news-footer .btn {
        flex: 1;
        height: 42px;
        border-radius: 22px !important;
        font-size: 0.9rem;
        font-weight: bold;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

/* ===============================
   SOCIAL SHARE ICONS
================================ */
.social-share {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

    .social-share a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        background: rgba(0,0,0,0.08);
        transition: transform .25s ease, box-shadow .25s ease;
    }

        .social-share a:hover {
            transform: scale(1.2);
            box-shadow: 0 0 10px rgba(0,0,0,.35);
        }

/* DARK MODE FIX */
body.dark-mode .news-card {
    background: rgba(18,22,51,0.9);
    border: 1px solid rgba(0,230,255,0.25);
    box-shadow: 0 12px 30px rgba(0,0,0,.6);
}

body.dark-mode .news-title {
    color: #e6e9ff;
}

body.dark-mode .news-date {
    color: #a5b0ff;
}

body.dark-mode .social-share a {
    background: rgba(255,255,255,0.1);
}
