﻿/* =========================================
   WORK SITES PAGE - FINAL PROFESSIONAL
========================================= */

:root {
    --primary: #724097;
    --primary-dark: #7f135f;
    --primary-soft: rgba(157, 24, 120, 0.08);
    --bg: #f6f7fb;
    --card-bg: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e5e7eb;
    --link: #2563eb;
    --link-hover: #9d1878;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.10);
}



/* WRAPPER - ستون باریک‌تر */
.worksite-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 80px;
    align-items: start;
}

/* CARD */
.worksite-category {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .worksite-category:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
        border-color: rgba(157, 24, 120, 0.25);
    }

/* CARD HEADER */
.category-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #724097;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-align: center; /* متن وسط */
    padding: 10px 0; /* فاصله بالا و پایین برای راحتی چشم */
    display: flex; /* برای مرکز کردن دقیق متن عمودی */
    justify-content: center; /* مرکز افقی */
    align-items: center; /* مرکز عمودی */
}

/* BODY */
.category-body {
    flex: 1;
    overflow-y: auto;

    background: #ffffff;
}

    /* SCROLLBAR */
    .category-body::-webkit-scrollbar {
        width: 7px;
    }

    .category-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .category-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

        .category-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* ITEMS - متن درشت‌تر */
.worksite-item {
    margin-bottom: 8px;
}

    .worksite-item:last-child {
        margin-bottom: 0;
    }

    .worksite-item a {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 46px;
        padding: 10px 12px;
        border-radius: var(--radius-md);
        font-size: 16px; /* درشت‌تر */
        font-weight: 700;
        color: var(--text);
        background: #ffffff;
        text-decoration: none;
        transition: 0.2s;
    }

        .worksite-item a:hover {
            background: var(--primary-soft);
            color: var(--primary);
            transform: translateX(-3px);
        }

    /* ICON */
    .worksite-item i {
        width: 30px;
        height: 30px;
        font-size: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: #f1f5f9;
        color: var(--link);
        transition: 0.2s;
    }

    .worksite-item a:hover i {
        background: var(--primary);
        color: #ffffff;
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .worksite-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .worksite-category {
        height: 560px;
    }
}

@media (max-width: 576px) {
    .worksite-wrapper {
        grid-template-columns: 1fr;
    }

    .worksite-category {
        height: auto;
    }

    .category-body {
        overflow: visible;
    }

    .worksite-item a {
        font-size: 15px;
        min-height: 44px;
    }
}

.worksiteEmpty {
    border-color: #e2bb33;
    background-color: white !important;
    color: #522474;
  
}
