/* themes/yaradocs/assets/css/custom.css */

/* متغیرهای رنگ */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* استایل‌های سفارشی برای پوسته مستندات */

/* هیرو سکشن */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    margin-top: 76px; /* برای fixed navbar */
}

.hero-code {
    background: #1e1e1e !important;
    border-left: 4px solid var(--warning-color);
}

.hero-code pre {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* آیکون ویژگی‌ها */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* کارت‌های مستندات */
.doc-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.doc-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

.doc-badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* نسخه‌نمایی */
.version-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* ناوبری */
.navbar-brand {
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* بخش‌بندی */
section {
    scroll-margin-top: 80px;
}

/* دکمه‌ها */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* فوتر */
footer a:hover {
    color: var(--warning-color) !important;
}

/* هایلایت کد */
code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: var(--danger-color);
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-code {
        margin-top: 2rem;
    }
    
    .navbar .form-inline {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
}

/* انیمیشن‌های ظریف */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}