/**
 * Frontend Styles - Pro Tools (Shahkar / Blu User Panel)
 * Version: 4.0.0
 * Text Domain: pro-tools
 */

/* ==========================================================================
   1. کانتینر اصلی داشبورد و بنرها (Main Dashboard Layout)
   ========================================================================== */

.pro-tools-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    font-family: inherit;
    box-sizing: border-box;
    direction: rtl;
}

.pro-tools-dashboard-wrapper * {
    box-sizing: border-box;
}

/* نوار اعلان نارنجی (Notification Bar) */
.pro-tools-notice-bar {
    background: linear-gradient(90deg, #E69A38 0%, #D88926 100%);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(230, 154, 56, 0.25);
}

.pro-tools-notice-bar .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    flex-shrink: 0;
}

/* هیرو بنر سرمه‌ای (Hero Banner) */
.pro-tools-hero-banner {
    background: linear-gradient(135deg, #1E224F 0%, #121535 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 35px 35px;
    box-shadow: 0 10px 25px rgba(18, 21, 53, 0.22);
    position: relative;
    overflow: hidden;
}

/* پترن نوری پس‌زمینه هیرو بنر */
.pro-tools-hero-banner::after {
    content: "";
    position: absolute;
    left: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(244, 196, 67, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pro-tools-hero-content {
    position: relative;
    z-index: 2;
}

.pro-tools-hero-banner h2 {
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    font-size: 22px !important;
    font-weight: 800;
    line-height: 1.4;
}

.pro-tools-hero-banner h3 {
    color: #F4C443 !important;
    margin: 0 0 14px 0 !important;
    font-size: 15px !important;
    font-weight: 500;
}

.pro-tools-hero-banner p {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

/* ==========================================================================
   2. کارت‌های آماری (Stats Grid & Cards)
   ========================================================================== */

.pro-tools-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.pro-tools-stat-card {
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pro-tools-stat-card:hover {
    transform: translateY(-4px);
}

.pro-tools-stat-card .card-icon {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 14px;
    flex-shrink: 0;
}

.pro-tools-stat-card .card-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pro-tools-stat-card .card-info {
    flex-grow: 1;
}

.pro-tools-stat-card .card-info h4 {
    margin: 0 0 4px 0 !important;
    font-size: 15px !important;
    font-weight: 700;
}

.pro-tools-stat-card .card-info .card-value {
    font-size: 12.5px;
    font-weight: 400;
    display: block;
}

/* دکمه‌های حاشیه‌دار (Outline Buttons) */
.pro-tools-stat-card .card-btn.btn-outline {
    border-width: 1.5px;
    border-style: solid;
    padding: 7px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-block;
}

/* کارت کیف پول (بنفش) */
.card-purple {
    background: linear-gradient(135deg, #7A3BAF 0%, #5D2A92 100%);
    box-shadow: 0 8px 18px rgba(93, 42, 146, 0.25);
    color: #ffffff;
}

.card-purple .card-icon {
    background: rgba(255, 255, 255, 0.18);
}

.card-purple .card-icon .dashicons {
    color: #ffffff;
}

.card-purple .card-info h4 {
    color: #ffffff !important;
}

.card-purple .card-info .card-value {
    color: rgba(255, 255, 255, 0.82);
}

.card-purple .card-btn.btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
}

.card-purple .card-btn.btn-outline:hover {
    background: #ffffff;
    color: #5D2A92;
    border-color: #ffffff;
}

/* کارت تیکت (زرد طلایی) */
.card-yellow {
    background: linear-gradient(135deg, #F8CE5A 0%, #F4C443 100%);
    box-shadow: 0 8px 18px rgba(244, 196, 67, 0.28);
    color: #24292e;
}

.card-yellow .card-icon {
    background: rgba(0, 0, 0, 0.08);
}

.card-yellow .card-icon .dashicons {
    color: #24292e;
}

.card-yellow .card-info h4 {
    color: #24292e !important;
}

.card-yellow .card-info .card-value {
    color: #4a5568;
}

.card-yellow .card-btn.btn-outline {
    color: #24292e;
    border-color: rgba(0, 0, 0, 0.35);
    background: transparent;
}

.card-yellow .card-btn.btn-outline:hover {
    background: #24292e;
    color: #F4C443;
    border-color: #24292e;
}

/* ==========================================================================
   3. کارت پروفایل و سایدبار ووکامرس (Sidebar & User Card)
   ========================================================================== */

/* کانتینر کلی سایدبار و محتوا در صفحه ووکامرس */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: right;
    width: 28%;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: left;
    width: 69%;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 16px;
    padding: 26px;
    border: 1px solid #EDF2F7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* کارت مشخصات کاربر بالای ناوبری */
.pro-tools-sidebar-profile {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    border: 1px solid #EDF2F7;
}

.pro-tools-avatar svg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.pro-tools-user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.4;
}

.pro-tools-user-details .user-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-tools-user-details .user-email {
    font-size: 12px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: right;
}

/* استایل منوی ناوبری ووکامرس */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 12px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #EDF2F7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: 11px;
    color: #4A5568;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #F7FAFC;
    color: #3182CE;
    transform: translateX(-3px);
}

/* آیتم انتخاب شده / تب فعال */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #EBF8FF;
    color: #2B6CB0;
    font-weight: 700;
}

/* دکمه خروج قرمز رنگ در انتهای منو */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #E2E8F0 !important;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #E53E3E;
    background-color: #FFF5F5;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background-color: #FED7D7;
    color: #C53030;
    transform: translateX(-3px);
}

/* ==========================================================================
   4. ریسپانسیو و موبایل (Responsive Media Queries)
   ========================================================================== */

@media (max-width: 860px) {
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .pro-tools-hero-banner {
        padding: 24px 20px;
    }

    .pro-tools-hero-banner h2 {
        font-size: 19px !important;
    }

    .pro-tools-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pro-tools-stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .pro-tools-stat-card .card-btn.btn-outline {
        width: 100%;
        text-align: center;
    }
}
