/*
 Theme Name:     Banfile
 Theme URI:      https://banfile.ir/
 Description:    Network Marketing courses & Modern UI/UX.
 Author:         Amir Hossein
 Author URI:     https://banfile.ir/
 Template:       marketmlm
 Version:        1.3.0
*/

@import url("../marketmlm/style.css");

:root {
    /* --- Modern Tokens (Phases 1-4) --- */
    --mlm-primary: #00d084;
    --mlm-primary-rgb: 0, 208, 132;
    --mlm-secondary: #0ea5e9;
    --mlm-bg: #f8fafc;
    --mlm-surface: #ffffff;
    --mlm-text-main: #1e293b;
    --mlm-text-muted: #64748b;
    --mlm-glass-bg: rgba(255, 255, 255, 0.75);
    --mlm-blur: blur(15px);
    --mlm-shadow-modern: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mlm-radius: 16px;
    --mlm-radius-lg: 24px;
}

/* --- Phase 2 & 3 Recap: Header, Hero & Cards --- */
#header.app-fixed-header { background: var(--mlm-glass-bg) !important; backdrop-filter: var(--mlm-blur); }
.modern-product-card { border-radius: var(--mlm-radius); transition: all 0.4s ease; }

/* --- Phase 4: Sidebar & Widgets Modernization --- */

/* Widget Container Styling */
.mlm-widget, .mlm-top-user-widget {
    background: var(--mlm-surface) !important;
    border-radius: var(--mlm-radius) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: var(--mlm-shadow-sm, 0 1px 3px rgba(0,0,0,0.1)) !important;
    padding: 24px !important;
    margin-bottom: 30px !important;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.mlm-widget:hover {
    box-shadow: var(--mlm-shadow-modern) !important;
}

/* Widget Titles */
.mlm-box-title, .widget-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--mlm-text-main);
    position: relative;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    display: flex;
    align-items: center;
}

.mlm-box-title::after, .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--mlm-primary);
    border-radius: 50px;
}

/* Top Vendor & Story Rings */
.mlm-vendor-avatar-ring {
    position: relative;
    width: 135px;
    height: 135px;
    margin: 0 auto 20px;
    padding: 5px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50%;
    animation: rotateGradient 4s linear infinite;
}

@keyframes rotateGradient {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.mlm-vendor-avatar-ring img {
    border: 4px solid #fff !important;
    background: #fff;
}

.mlm-top-user-widget .vendor-name a {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--mlm-text-main) !important;
    transition: color 0.2s;
}

.mlm-top-user-widget .vendor-name a.verified::after {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--mlm-secondary);
    margin-right: 5px;
    font-size: 14px;
}

/* Vendor Stats & Buttons */
.vendor-text {
    line-height: 1.8;
    color: var(--mlm-text-muted);
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--mlm-radius-sm, 12px);
    margin-bottom: 20px !important;
}

.mlm-top-user-widget .btn-light {
    background: #f1f5f9 !important;
    border: none !important;
    color: var(--mlm-text-main) !important;
    font-weight: 700 !important;
    padding: 12px !important;
    border-radius: 50px !important;
    transition: all 0.3s;
}

.mlm-top-user-widget .btn-light:hover {
    background: var(--mlm-primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Sidebar List Items (Categories, Archives, etc.) */
.widget_categories ul, .widget_archive ul, .widget_nav_menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_categories li, .widget_archive li {
    padding: 10px 0 !important;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.widget_categories li:hover {
    transform: translateX(-5px);
}

.widget_categories li a {
    color: var(--mlm-text-main);
    font-weight: 500;
    text-decoration: none;
}

.widget_categories li span.count {
    background: #f1f5f9;
    color: var(--mlm-text-muted);
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 50px;
}