﻿/* ==========================================================================
   NCALab TaskList Styles - Cognitive & Neuroscience Modern Theme
   File: /css/taskList.css
   ========================================================================== */

:root {
    --task-primary: #0062eb;
    --task-primary-hover: #004dc0;
    --task-cyan: #00d2ff;
    --task-navy: #091322;
    --task-green: #0d8a43;
    --task-green-hover: #086b33;
    --task-text-dark: #0f172a;
    --task-text-muted: #64748b;
    --task-border: #e2e8f0;
    --task-bg-card: #ffffff;
    --task-bg-light: #f8fafc;
    --task-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --task-shadow-card: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.task-list-page-wrapper {
    max-width: 1100px;
    margin: 20px auto 60px auto;
    padding: 0 16px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--task-text-dark);
}

/* مسیر ناوبری (Breadcrumb) */
.task-breadcrumb {
    font-size: 0.88rem;
    color: var(--task-text-muted);
    margin-bottom: 20px;
}

    .task-breadcrumb a {
        color: var(--task-primary);
        text-decoration: none;
        transition: color 0.2s;
    }

        .task-breadcrumb a:hover {
            color: var(--task-primary-hover);
        }

    .task-breadcrumb span {
        color: #94a3b8;
        margin: 0 6px;
    }

/* بنر هدر مدرن */
.task-hero-banner {
    background: linear-gradient(135deg, #091322 0%, #0d2346 50%, #0052cc 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(9, 19, 34, 0.12);
    margin-bottom: 25px;
    color: #ffffff;
}

.task-banner-content {
    flex: 1 1 58%;
    padding: 35px 40px;
}

.task-banner-badge {
    display: inline-block;
    background: rgba(0, 210, 255, 0.18);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: var(--task-cyan);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.task-banner-title {
    font-size: 1.85rem;
    font-weight: 900;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #ffffff;
}

.task-banner-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

.task-banner-visual {
    flex: 1 1 42%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .task-banner-visual img {
        max-width: 100%;
        height: auto;
        max-height: 200px;
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        object-fit: cover;
    }

/* نوار دسترسی به خوشه‌های نقشه سایت */
.sitemap-cluster-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.cluster-pill {
    background: #ffffff;
    border: 1px solid var(--task-border);
    color: #475569;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .cluster-pill:hover {
        background: #eff6ff;
        border-color: #93c5fd;
        color: var(--task-primary);
        transform: translateY(-2px);
    }

    .cluster-pill.highlight-pill {
        background: rgba(0, 98, 235, 0.08);
        border-color: rgba(0, 98, 235, 0.3);
        color: var(--task-primary);
        font-weight: 700;
    }

/* باکس جستجوی آزمون‌ها */
.task-search-wrapper {
    background: #ffffff;
    border: 1px solid var(--task-border);
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 28px;
    box-shadow: var(--task-shadow-card);
}

.task-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input-icon {
    font-size: 1.1rem;
    opacity: 0.6;
}

.task-search-input {
    flex-grow: 1;
    border: 1.5px solid var(--task-border);
    border-radius: 10px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--task-text-dark);
    outline: none;
    transition: all 0.25s ease;
    background: #ffffff;
}

    .task-search-input:focus {
        border-color: var(--task-primary);
        box-shadow: 0 0 0 3px rgba(0, 98, 235, 0.12);
    }

.btn-search-action {
    background: linear-gradient(135deg, #0062eb 0%, #004dc0 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 98, 235, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .btn-search-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 98, 235, 0.35);
    }

/* کانتینر محتوایی لیست آزمون‌ها */
.task-content-card {
    background: #ffffff;
    border: 1px solid var(--task-border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--task-shadow-soft);
    margin-bottom: 35px;
}

.task-intro-header {
    border-right: 4px solid var(--task-primary);
    padding-right: 16px;
    margin-bottom: 28px;
}

    .task-intro-header h2 {
        font-size: 1.35rem;
        font-weight: 850;
        color: var(--task-navy);
        margin: 0 0 8px 0;
    }

    .task-intro-header p {
        font-size: 0.95rem;
        color: var(--task-text-muted);
        line-height: 2;
        margin: 0;
        text-align: justify;
    }

/* کارت‌های آیتم‌های آزمون */
.task-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    margin-bottom: 14px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--task-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    gap: 15px;
}

    .task-item-card:hover {
        transform: translateY(-3px);
        border-color: #93c5fd;
        box-shadow: 0 8px 22px rgba(0, 98, 235, 0.08);
        background: #fcfdfe;
    }

.task-primary-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.task-icon-bullet {
    font-size: 1.6rem;
    background: #eff6ff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.task-titles-box h3 {
    margin: 0 0 5px 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.task-name-link {
    color: var(--task-text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .task-name-link:hover {
        color: var(--task-primary);
    }

.task-code-badge {
    display: inline-block;
    color: var(--task-text-muted);
    font-size: 0.8rem;
    font-family: Arial, sans-serif;
    direction: ltr;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* دکمه‌های اکشن کارت آزمون */
.task-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-task-details {
    background: #ffffff;
    color: var(--task-primary) !important;
    border: 1px solid #bfdbfe;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .btn-task-details:hover {
        background: #eff6ff;
        border-color: var(--task-primary);
    }

.btn-task-buy {
    background: linear-gradient(135deg, #0d8a43 0%, #086b33 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(13, 138, 67, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .btn-task-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(13, 138, 67, 0.35);
    }

/* بلوک پایگاه دانش هوش مصنوعی */
.ai-task-knowledge-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: var(--task-shadow-card);
}

    .ai-task-knowledge-box h3 {
        color: #1e3a8a;
        font-size: 1.15rem;
        font-weight: 800;
        margin: 0 0 12px 0;
    }

    .ai-task-knowledge-box p {
        color: #334155;
        line-height: 2;
        font-size: 0.94rem;
        text-align: justify;
        margin: 0 0 14px 0;
    }

.citation-hint-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e40af;
}

    .citation-hint-link a {
        color: var(--task-primary);
        text-decoration: underline;
    }

/* ==========================================================================
   ریسپانسیو تبلت و موبایل
   ========================================================================== */
@media (max-width: 850px) {
    .task-hero-banner {
        flex-direction: column;
        text-align: center;
    }

    .task-banner-content {
        padding: 30px 20px 20px 20px;
    }

    .task-banner-description {
        text-align: center;
    }

    .task-banner-visual {
        padding: 0 20px 25px 20px;
    }
}

@media (max-width: 650px) {
    .task-search-form {
        flex-direction: column;
    }

    .task-search-input {
        width: 100%;
    }

    .btn-search-action {
        width: 100%;
        text-align: center;
    }

    .task-content-card {
        padding: 20px 14px;
    }

    .task-item-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 14px;
    }

    .task-primary-info {
        flex-direction: column;
    }

    .task-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-task-details,
    .btn-task-buy {
        width: 100%;
        text-align: center;
    }
}
