/* فایل تم‌های ادواری - نسخه بهبود یافته */

/* تم پیش‌فرض - کارودانش */
.advari-theme-default {
    --primary-color      : #930447;
    --secondary-color    : #b8055a;
    --accent-color       : #930447;
    --background-gradient: linear-gradient(135deg, #930447 0%, #b8055a 100%);
    --card-bg            : rgba(255, 255, 255, 0.95);
    --card-border        : #930447;
    --text-primary       : #930447;
    --text-secondary     : #b8055a;
    --shadow-light       : rgba(147, 4, 71, 0.15);
    --shadow-medium      : rgba(147, 4, 71, 0.25);
}

/* تم مهارت آزاد */
.advari-theme-maharat {
    --primary-color      : #00586C;
    --secondary-color    : #007A99;
    --accent-color       : #007A99;
    --background-gradient: linear-gradient(135deg, #00586C 0%, #007A99 100%);
    --card-bg            : rgba(255, 255, 255, 0.95);
    --card-border        : #00586C;
    --text-primary       : #00586C;
    --text-secondary     : #007A99;
    --shadow-light       : rgba(0, 88, 108, 0.15);
    --shadow-medium      : rgba(0, 88, 108, 0.25);
}

body {
    background: white !important;
    font-size : 13px !important;
}

/* استایل‌های مشترک برای هر دو تم */
.advari-theme-default,
.advari-theme-maharat {
    /* min-height   : 100vh; */
    /* background: white; var(--background-gradient); */
    background   : white;
    transition   : all 0.5s ease-in-out;
    font-family  : 'Vazir', 'Arial', sans-serif;
}

/* کانتینر اصلی */
.main-container {
    padding  : 30px 20px;
    max-width: 1200px;
    margin   : 0 auto;
}

/* ردیف‌های اصلی */
.path-selection-row {
    margin-bottom: 30px;
}

.info-section-row {
    margin-bottom: 30px;
}

.forms-section-row {
    margin-top: 40px;
}

/* کارت‌ها */
.advari-card {
    background     : var(--card-bg);
    border         : 2px solid var(--card-border);
    border-radius  : 15px;
    box-shadow     : 0 10px 30px var(--shadow-light);
    margin-bottom  : 25px;
    overflow       : hidden;
    transition     : all 0.4s ease;
    backdrop-filter: blur(10px);
}

.advari-card:hover {
    transform : translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

/* هدر کارت‌ها */
.advari-card-header {
    background   : linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color        : white;
    padding      : 20px 25px;
    border-bottom: none;
    font-weight  : bold;
    position     : relative;
    overflow     : hidden;
}

.advari-card-header::before {
    content   : '';
    position  : absolute;
    top       : 0;
    left      : -100%;
    width     : 100%;
    height    : 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.advari-card:hover .advari-card-header::before {
    left: 100%;
}

.advari-card-header h4,
.advari-card-header h5 {
    margin     : 0;
    color      : white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* بدنه کارت‌ها */
.advari-card-body {
    padding    : 25px;
    background : var(--card-bg);
    line-height: 1.6;
}

/* انتخابگر مسیر */
.advari-path-selector {
    border       : 3px solid #e9ecef;
    border-radius: 12px;
    padding      : 25px;
    background   : rgba(255, 255, 255, 0.9);
    transition   : all 0.4s ease;
    cursor       : pointer;
    position     : relative;
    overflow     : hidden;
}

.advari-path-selector::before {
    content   : '';
    position  : absolute;
    top       : 0;
    left      : -100%;
    width     : 100%;
    height    : 100%;
    background: linear-gradient(90deg, transparent, var(--shadow-light), transparent);
    transition: left 0.6s;
}

.advari-path-selector:hover::before {
    left: 100%;
}

.advari-path-selector:hover {
    border-color: var(--primary-color);
    background  : rgba(255, 255, 255, 0.95);
    transform   : translateY(-3px);
    box-shadow  : 0 8px 25px var(--shadow-light);
}

/* انتخابگر فعال */
.advari-path-selector:has(input:checked) {
    border-color: var(--primary-color);
    background  : rgba(255, 255, 255, 0.98);
    box-shadow  : 0 10px 30px var(--shadow-medium);
    transform   : scale(1.02);
}

/* رادیو باتن‌ها */
.advari-path-selector input[type="radio"] {
    transform   : scale(1.3);
    margin-left : 15px;
    accent-color: var(--primary-color);
}

.advari-path-selector label {
    font-weight: bold;
    color      : var(--text-primary);
    cursor     : pointer;
    margin     : 0;
    font-size  : 1.1em;
}

/* رنگ‌های متن */
.advari-text-primary {
    color: var(--text-primary) !important;
}

.advari-text-secondary {
    color: var(--text-secondary) !important;
}

/* پیام‌ها */
.advari-message {
    padding        : 18px 22px;
    border-radius  : 10px;
    margin         : 15px 0;
    border-left    : 5px solid;
    transition     : all 0.3s ease;
    backdrop-filter: blur(5px);
}

.advari-message.info {
    background       : rgba(91, 192, 222, 0.15);
    border-left-color: #5bc0de;
    color            : #31708f;
}

.advari-message.success {
    background       : rgba(92, 184, 92, 0.15);
    border-left-color: #5cb85c;
    color            : #3c763d;
}

.advari-message.warning {
    background       : rgba(240, 173, 78, 0.15);
    border-left-color: #f0ad4e;
    color            : #8a6d3b;
}

.advari-message.error {
    background       : rgba(217, 83, 79, 0.15);
    border-left-color: #d9534f;
    color            : #a94442;
}

/* فرم‌ها */
.form-control {
    border-radius: 8px;
    border       : 2px solid #e9ecef;
    padding      : 12px 18px;
    transition   : all 0.3s ease;
    font-size    : 14px;
}

.advari-theme-default .form-control:focus {
    border-color: var(--primary-color);
    box-shadow  : 0 0 0 0.25rem var(--shadow-light);
    outline     : none;
}

.advari-theme-maharat .form-control:focus {
    border-color: var(--primary-color);
    box-shadow  : 0 0 0 0.25rem var(--shadow-light);
    outline     : none;
}

/* دکمه‌های خاص Advari */
.advari-btn {
    border-radius  : 8px;
    padding        : 12px 25px;
    font-weight    : bold;
    transition     : all 0.3s ease;
    text-decoration: none;
    display        : inline-block;
    text-align     : center;
    border         : none;
    cursor         : pointer;
}

.advari-btn-primary {
    background : linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color      : white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.advari-btn-primary:hover {
    transform      : translateY(-2px);
    box-shadow     : 0 8px 20px var(--shadow-medium);
    filter         : brightness(1.1);
    color          : white;
    text-decoration: none;
}

.advari-btn-secondary {
    background: var(--accent-color);
    color     : white;
    padding   : 5px !important;
}

.advari-btn-secondary:hover {
    transform      : translateY(-2px);
    box-shadow     : 0 8px 20px var(--shadow-medium);
    filter         : brightness(1.1);
    color          : white;
    text-decoration: none;
}

/* انیمیشن‌ها */
.advari-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.advari-slide-in {
    animation: slideIn 1s ease-out;
}

.advari-bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity  : 0;
        transform: translateY(30px);
    }

    to {
        opacity  : 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity  : 0;
        transform: translateX(-50px);
    }

    to {
        opacity  : 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity  : 0;
        transform: scale(0.3);
    }

    50% {
        opacity  : 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity  : 1;
        transform: scale(1);
    }
}

/* انیمیشن تغییر تم */
.theme-transition {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }

    .advari-card {
        margin-bottom: 20px;
    }

    .advari-card-body {
        padding: 20px;
    }

    .path-selection-row,
    .info-section-row {
        margin-bottom: 25px;
    }

    .forms-section-row {
        margin-top: 30px;
    }

    .advari-path-selector {
        padding: 20px;
    }

    .advari-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 15px 10px;
    }

    .advari-card-header {
        padding: 15px 20px;
    }

    .advari-card-body {
        padding: 15px;
    }

    .advari-path-selector {
        padding: 15px;
    }
}

/* بهبود دسترسی */
.advari-path-selector:focus-within {
    outline       : 3px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline       : 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background   : var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}