﻿/* ======================================================
   SERVICES CARDS – MATCH NEWS STYLE
   ====================================================== */

/* VARIABLES */
body.theme-light {
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --label-color: #6b7280;
}

body.theme-dark {
    --card-bg: rgba(18,22,51,0.9);
    --text-main: #e6e9ff;
    --label-color: #a5b0ff;
}

/* CARD */
.service-card.news-card {
    background: var(--card-bg);
    border-radius: 22px;
    overflow: hidden;
    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%;
}

    .service-card.news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    }

/* IMAGE */
.service-card img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

/* BODY */
.service-card .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

/* DESCRIPTION */
.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* PRICE */
.price-tag {
    margin-top: auto;
    font-size: 1rem;
    font-weight: bold;
    color: #0d6efd;
}

/* DARK MODE BORDER */
body.theme-dark .service-card {
    border: 1px solid rgba(0,230,255,0.25);
}

/* ACCESSIBILITY */
.service-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,110,253,.35);
}
/* ===============================
   ADMIN ACTION BUTTONS
================================ */
.service-wrapper {
    position: relative;
}

.news-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .circle-btn:hover {
        transform: scale(1.15);
        box-shadow: 0 10px 25px rgba(0,0,0,.5);
    }

.btn-edit {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #000;
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}
/* إخفاء أزرار الأدمن حتى hover */
.service-wrapper .news-actions {
    opacity: 0;
    transform: translateY(-6px);
    transition: .25s ease;
}

.service-wrapper:hover .news-actions {
    opacity: 1;
    transform: translateY(0);
}
