﻿/*==================================================
                ROOT VARIABLES
==================================================*/

:root {
    --mgmt-primary: #2f8fef;
    --mgmt-primary-dark: #1c74d4;
    --mgmt-bg-start: #0a1120;
    --mgmt-bg-end: #17263f;
}

/*==================================================
                HEADER
==================================================*/

.article-admin-header {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mgmt-bg-start), var(--mgmt-bg-end));
}

    .article-admin-header::before {
        content: "";
        position: absolute;
        width: 400px;
        height: 400px;
        top: -150px;
        left: -100px;
        background: radial-gradient(circle, rgba(47,143,239,.18), transparent 70%);
    }

    .article-admin-header .container {
        position: relative;
        z-index: 2;
    }

    /*==================================================
                BADGE
==================================================*/

    .article-admin-header .mgmt-badge {
        display: inline-block;
        padding: 8px 18px;
        border-radius: 50px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.12);
        color: var(--mgmt-primary);
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    /*==================================================
                MAIN ROW (title / actions)
==================================================*/

    .article-admin-header .mgmt-header-main {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }

    .article-admin-header .mgmt-header-text {
        max-width: 600px;
    }

        .article-admin-header .mgmt-header-text h1 {
            color: #fff;
            font-size: 34px;
            font-weight: 800;
            margin: 0 0 12px;
        }

        .article-admin-header .mgmt-header-text p {
            color: #94a3b8;
            font-size: 15px;
            line-height: 1.9;
            margin: 0;
        }

    .article-admin-header .mgmt-header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 6px;
    }

    /*==================================================
                BUTTONS
==================================================*/

    .article-admin-header .mgmt-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        transition: .3s;
    }

    .article-admin-header .mgmt-btn-primary {
        background: var(--mgmt-primary);
        color: #fff;
        box-shadow: 0 8px 20px rgba(47,143,239,.35);
    }

        .article-admin-header .mgmt-btn-primary:hover {
            background: var(--mgmt-primary-dark);
            color: #fff;
            transform: translateY(-2px);
        }

    /*==================================================
                TOOLBAR (search + sort)
==================================================*/

    .article-admin-header .mgmt-toolbar {
        margin-top: 40px;
        max-width: 900px;
        display: flex;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 20px 45px rgba(0,0,0,.35);
        overflow: hidden;
    }

    .article-admin-header .mgmt-search-form {
        flex: 1;
        margin: 0;
    }

    .article-admin-header .mgmt-search {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 64px;
        padding: 0 22px;
    }

        .article-admin-header .mgmt-search i {
            color: #94a3b8;
            font-size: 16px;
        }

        .article-admin-header .mgmt-search input {
            flex: 1;
            height: 100%;
            border: none;
            outline: none;
            background: transparent;
            font-size: 14px;
            color: #0f172a;
        }

            .article-admin-header .mgmt-search input::placeholder {
                color: #94a3b8;
            }

    .article-admin-header .mgmt-sort-form {
        margin: 0;
        border-right: 1px solid #e5e7eb;
    }

        .article-admin-header .mgmt-sort-form select {
            height: 64px;
            min-width: 150px;
            padding: 0 22px;
            border: none;
            outline: none;
            background: transparent;
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
            cursor: pointer;
        }

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:768px) {

    .article-admin-header {
        padding: 50px 0 40px;
    }

        .article-admin-header .mgmt-header-text h1 {
            font-size: 26px;
        }

        .article-admin-header .mgmt-header-main {
            flex-direction: column;
        }

        .article-admin-header .mgmt-header-actions {
            margin-top: 15px;
        }

        .article-admin-header .mgmt-btn {
            width: 100%;
            justify-content: center;
        }

        .article-admin-header .mgmt-toolbar {
            margin-top: 25px;
            max-width: 100%;
            flex-direction: column;
        }

        .article-admin-header .mgmt-sort-form {
            border-right: none;
            border-top: 1px solid #e5e7eb;
        }

            .article-admin-header .mgmt-sort-form select {
                width: 100%;
            }
}

/*==================================================
                ROOT VARIABLES
==================================================*/

:root {
    --mgmt-primary: #2f8fef;
    --mgmt-primary-dark: #1c74d4;
    --mgmt-bg-start: #0a1120;
    --mgmt-bg-end: #17263f;
}

/*==================================================
                HEADER
==================================================*/

.article-list-header {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mgmt-bg-start), var(--mgmt-bg-end));
}

    .article-list-header::before {
        content: "";
        position: absolute;
        width: 400px;
        height: 400px;
        top: -150px;
        left: -100px;
        background: radial-gradient(circle, rgba(47,143,239,.18), transparent 70%);
    }

    .article-list-header .container {
        position: relative;
        z-index: 2;
    }

    /*==================================================
                BADGE
==================================================*/

    .article-list-header .mgmt-badge {
        display: inline-block;
        padding: 8px 18px;
        border-radius: 50px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.12);
        color: var(--mgmt-primary);
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    /*==================================================
                MAIN ROW
==================================================*/

    .article-list-header .mgmt-header-main {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }

    .article-list-header .mgmt-header-text {
        max-width: 600px;
    }

        .article-list-header .mgmt-header-text h1 {
            color: #fff;
            font-size: 34px;
            font-weight: 800;
            margin: 0 0 12px;
        }

        .article-list-header .mgmt-header-text p {
            color: #94a3b8;
            font-size: 15px;
            line-height: 1.9;
            margin: 0;
        }

    /*==================================================
                TOOLBAR (search + sort)
==================================================*/

    .article-list-header .mgmt-toolbar {
        margin-top: 40px;
        max-width: 900px;
        display: flex;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 20px 45px rgba(0,0,0,.35);
        overflow: hidden;
    }

    .article-list-header .mgmt-search-form {
        flex: 1;
        margin: 0;
    }

    .article-list-header .mgmt-search {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 64px;
        padding: 0 22px;
    }

        .article-list-header .mgmt-search i {
            color: #94a3b8;
            font-size: 16px;
        }

        .article-list-header .mgmt-search input {
            flex: 1;
            height: 100%;
            border: none;
            outline: none;
            background: transparent;
            font-size: 14px;
            color: #0f172a;
        }

            .article-list-header .mgmt-search input::placeholder {
                color: #94a3b8;
            }

    .article-list-header .mgmt-sort-form {
        margin: 0;
        border-right: 1px solid #e5e7eb;
    }

        .article-list-header .mgmt-sort-form select {
            height: 64px;
            min-width: 150px;
            padding: 0 22px;
            border: none;
            outline: none;
            background: transparent;
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
            cursor: pointer;
        }

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:768px) {

    .article-list-header {
        padding: 50px 0 40px;
    }

        .article-list-header .mgmt-header-text h1 {
            font-size: 26px;
        }

        .article-list-header .mgmt-toolbar {
            margin-top: 25px;
            max-width: 100%;
            flex-direction: column;
        }

        .article-list-header .mgmt-sort-form {
            border-right: none;
            border-top: 1px solid #e5e7eb;
        }

            .article-list-header .mgmt-sort-form select {
                width: 100%;
            }
}


/*====================================
        MANAGEMENT PAGE
====================================*/

.management-header {
    padding: 170px 0 70px;
    background: linear-gradient(135deg,#0f172a,#1e293b);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .management-header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right,rgba(0,168,255,.18),transparent 40%);
    }

.management-header-content {
    position: relative;
    z-index: 2;
}

.management-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    margin-bottom: 20px;
    font-size: .9rem;
}

.management-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.management-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 650px;
    margin-bottom: 35px;
    line-height: 2;
}

/*====================================
        TOOLBAR
====================================*/

.management-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.toolbar-search {
    flex: 1;
    min-width: 280px;
}

.search-box {
    position: relative;
}

    .search-box input {
        width: 100%;
        height: 56px;
        border: none;
        outline: none;
        border-radius: 14px;
        padding: 0 22px;
        background: #fff;
        color: #0f172a;
        font-size: .95rem;
        box-shadow: 0 10px 25px rgba(15,23,42,.15);
    }

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .toolbar-actions select {
        height: 56px;
        min-width: 180px;
        border: none;
        outline: none;
        border-radius: 14px;
        padding: 0 18px;
        background: #fff;
        color: #0f172a;
        box-shadow: 0 10px 25px rgba(15,23,42,.15);
        cursor: pointer;
    }

.toolbar-add-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #00a8ff;
    color: #fff;
    padding: 15px 22px;
    border-radius: 14px;
    font-weight: 700;
    transition: .3s;
}

    .toolbar-add-btn:hover {
        background: #0284c7;
        color: #fff;
    }

/*====================================
        PAGE LAYOUT
====================================*/

.management-content {
    padding: 70px 0;
    min-height: 100vh;
}

.management-sidebar {
    top: 110px;
}

.sidebar-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 10px 35px rgba(15,23,42,.06);
    border: 1px solid #edf2f7;
}

    .sidebar-card h5 {
        font-size: 1rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 20px;
    }

    .sidebar-card form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .sidebar-card select,
    .sidebar-card textarea {
        width: 100%;
        border: 1px solid #dbe3ee;
        border-radius: 12px;
        padding: 13px 16px;
        outline: none;
        transition: .3s;
        background: #fff;
    }

    .sidebar-card textarea {
        resize: none;
        min-height: 90px;
    }

        .sidebar-card select:focus,
        .sidebar-card textarea:focus {
            border-color: #00a8ff;
            box-shadow: 0 0 0 4px rgba(0,168,255,.12);
        }
    .sidebar-card .top-filter-btn {
        width: 100%;
        border: none;
        border-radius: 12px;
        background: #0f172a;
        color: #fff;
        padding: 14px;
        font-weight: 700;
        transition: .3s;
    }

        .sidebar-card .top-filter-btn:hover {
            background: #00a8ff;
        }

.reset-filter-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    background: #1e293b;
    color: #fff;
    text-decoration: none;
    transition: .3s;
    font-weight: 700;
}

    .reset-filter-btn:hover {
        background: #00a8ff;
        color: #fff;
    }

/*====================================
        ARTICLE CARDS
====================================*/


.article-item-div {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15,23,42,.08);
    transition: .35s;
    border: 1px solid #edf2f7;
}

    .article-item-div:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 45px rgba(15,23,42,.15);
    }

.article-picture {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.article-content {
    padding: 15px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 18px;
    min-height: 50px;
    /* حداکثر دو خط */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 13px;
}

    .article-meta span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.article-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #edf2f7;
    padding-top: 2px;
}

    .article-price small {
        background: #e0f2fe;
        color: #0284c7;
        padding: 8px 14px;
        border-radius: 10px;
        font-weight: 700;
    }

    .article-price form {
        margin: 0;
    }

.Remove-btn,
.edit-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;
    transition: .3s;
}

.Remove-btn {
    background: #fee2e2;
    color: #dc2626;
}

    .Remove-btn:hover {
        background: #dc2626;
        color: #fff;
    }

.edit-btn {
    background: #dbeafe;
    color: #2563eb;
}

    .edit-btn:hover {
        background: #2563eb;
        color: #fff;
    }

/*====================================
        RESPONSIVE
====================================*/

@media(max-width:1200px) {

    .articles-layout {
        grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    }
}

@media(max-width:991px) {

    .management-header {
        padding: 150px 0 60px;
        text-align: center;
    }

    .management-title {
        font-size: 2.3rem;
    }

    .management-toolbar {
        justify-content: center;
    }

    .toolbar-search {
        width: 100%;
    }

    .management-sidebar {
        position: static;
        margin-top: 50px;
    }

    .articles-layout {
        grid-template-columns: repeat(auto-fill,minmax(270px,1fr));
    }
}

@media(max-width:768px) {

    .management-title {
        font-size: 2rem;
    }

    .management-subtitle {
        font-size: .95rem;
    }

    .toolbar-actions {
        width: 100%;
        flex-direction: column;
    }

        .toolbar-actions select,
        .toolbar-add-btn {
            width: 100%;
        }

    .sidebar-card {
        padding: 20px;
    }

    .article-picture {
        height: 190px;
    }
}

@media(max-width:576px) {

    .management-header {
        padding: 135px 0 50px;
    }

    .management-title {
        font-size: 1.8rem;
    }

    .management-badge {
        font-size: .8rem;
    }

    .articles-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .article-item-div {
        width: 100%;
    }

    .article-content {
        padding: 18px;
    }

    .article-title {
        font-size: 1rem;
        min-height: auto;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-price {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

        .article-price > div {
            width: 100%;
            display: flex;
            justify-content: flex-end;
        }

    .Remove-btn,
    .edit-btn {
        width: 45px;
        height: 45px;
    }
}

.details-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #0f172a;
    color: #fff;
    padding: 11px 18px;
    border-radius: 12px;
    transition: .3s;
    font-size: .9rem;
    font-weight: 700;
}

    .details-btn:hover {
        background: #00a8ff;
        color: #fff;
    }

.article-content a {
    background: var(--primary);
    color: #111;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    transition: .3s;
}

    .article-content a:hover {
        background: #111;
        color: white;
    }

.article-item-div {
    width: 280px;
    max-width: none;
}

.articles-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(340px,1fr));
    gap: 30px;
    align-items: start;
}

/*==================================================
                ROOT VARIABLES
==================================================*/

:root {
    --software-primary: #f7b500;
    --software-primary-dark: #d89b00;
}

/*==================================================
                ARTICLE HERO SECTION
==================================================*/

.article-index-hero {
    position: relative;
    padding: 100px 0 120px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient( rgba(15,15,15,.94), rgba(15,15,15,.94) ), url("../../images/hero-bg.jpg");
    background-size: cover;
    background-position: center;
}

    .article-index-hero::before {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        right: -100px;
        top: -100px;
        background: radial-gradient( circle, rgba(247,181,0,.25), transparent 70% );
    }

    .article-index-hero::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        left: -100px;
        bottom: -120px;
        background: radial-gradient( circle, rgba(247,181,0,.15), transparent 70% );
    }

    .article-index-hero .container {
        position: relative;
        z-index: 2;
    }

    /*==================================================
                HERO CONTENT
==================================================*/

    .article-index-hero .hero-content {
        max-width: 850px;
    }

    /*==================================================
                BREADCRUMB
==================================================*/

    .article-index-hero .hero-breadcrumb {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
        font-size: 14px;
        color: #bbb;
    }

        .article-index-hero .hero-breadcrumb a {
            color: #ddd;
            text-decoration: none;
            transition: .3s;
        }

            .article-index-hero .hero-breadcrumb a:hover {
                color: var(--software-primary);
            }

        .article-index-hero .hero-breadcrumb span:last-child {
            color: var(--software-primary);
        }

    /*==================================================
                BADGE
==================================================*/

    .article-index-hero .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 22px;
        border-radius: 50px;
        background: rgba(247,181,0,.15);
        border: 1px solid rgba(247,181,0,.35);
        color: var(--software-primary);
        font-weight: 700;
        margin-bottom: 25px;
    }

        .article-index-hero .hero-badge i {
            font-size: 16px;
        }

    /*==================================================
                TITLE
==================================================*/

    .article-index-hero h1 {
        font-size: 52px;
        line-height: 75px;
        font-weight: 900;
        margin: 20px 0;
    }

    .article-index-hero p {
        max-width: 700px;
        color: #ddd;
        font-size: 18px;
        line-height: 38px;
        margin-bottom: 40px;
    }

    /*==================================================
                SEARCH BOX
==================================================*/

    .article-index-hero .software-search {
        width: 100%;
        max-width: 700px;
        height: 70px;
        background: #fff;
        border-radius: 20px;
        display: flex;
        align-items: center;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,.25);
        margin: 0;
        padding: 0;
    }

        .article-index-hero .software-search input {
            flex: 1;
            height: 100%;
            border: none;
            outline: none;
            padding: 0 25px;
            font-size: 16px;
            color: #333;
            background: transparent;
        }

            .article-index-hero .software-search input::placeholder {
                color: #999;
            }

        .article-index-hero .software-search button {
            width: 80px;
            height: 100%;
            border: none;
            background: linear-gradient( 135deg, var(--software-primary), var(--software-primary-dark) );
            color: #111;
            font-size: 22px;
            cursor: pointer;
            transition: .3s;
        }

            .article-index-hero .software-search button:hover {
                transform: scale(1.05);
            }

/*==================================================
                SORT SELECT
==================================================*/

.article-order-form {
    margin: 0;
    margin-top: 20px;
    display: inline-block;
}

    .article-order-form select {
        height: 55px;
        min-width: 180px;
        padding: 0 20px;
        border: none;
        outline: none;
        border-radius: 15px;
        background: #fff;
        color: #333;
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 10px 25px rgba(0,0,0,.15);
        cursor: pointer;
        appearance: auto;
    }

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:992px) {

    .article-index-hero {
        padding: 70px 0;
        text-align: center;
    }

        .article-index-hero .hero-breadcrumb {
            justify-content: center;
        }

        .article-index-hero .hero-content {
            margin: auto;
        }
}

@media(max-width:768px) {

    .article-index-hero {
        padding: 55px 0;
    }

        .article-index-hero h1 {
            font-size: 30px;
            line-height: 1.7;
        }

        .article-index-hero p {
            font-size: 15px;
            line-height: 2.2;
        }

        .article-index-hero .software-search {
            flex-direction: column;
            height: auto;
            gap: 15px;
            box-shadow: none;
            background: transparent;
        }

            .article-index-hero .software-search input {
                height: 55px;
                border-radius: 15px;
                background: #fff;
                box-shadow: var(--software-shadow, 0 15px 40px rgba(0,0,0,.08));
            }

            .article-index-hero .software-search button {
                width: 100%;
                height: 55px;
                border-radius: 15px;
            }

    .article-order-form {
        width: 100%;
    }

        .article-order-form select {
            width: 100%;
        }
}

@media(max-width:480px) {

    .article-index-hero h1 {
        font-size: 26px;
    }
}

@media(max-width:768px) {

    .course-index-hero .software-search,
    .article-index-hero .software-search {
        height: 55px;
        max-width: 100%;
    }

        .course-index-hero .software-search input,
        .article-index-hero .software-search input {
            font-size: 14px;
        }

        .course-index-hero .software-search button {
            width: 60px;
        }
}