/* در ابتدای فایل style_soals_app.css */
@font-face {
    font-family: 'Vazir';
    src: url('/static/fonts/Vazir.woff2') format('woff2'),
         url('/static/fonts/Vazir.woff') format('woff'),
         url('/static/fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* اعمال روی کل سایت */
body, 
body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.glyphicon) {
    font-family: 'Vazir', sans-serif !important;
}

:root {
    direction: rtl;
}
/* ==================== QUESTIONS PAGE STYLES ==================== */

/* فیلترها */
.filter-section {
    margin-bottom: 30px;
}

.filter-box {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
    font-size: 0.95rem;
}

.form-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.3s;
}

.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid;
    background: white;
    font-weight: 500;
    cursor: pointer;
}

.btn-group .btn.active {
    color: white;
}

.btn-outline-primary.active { background: #007bff; border-color: #007bff; }
.btn-outline-success.active { background: #28a745; border-color: #28a745; }
.btn-outline-warning.active { background: #ffc107; border-color: #ffc107; color: #000; }
.btn-outline-danger.active { background: #dc3545; border-color: #dc3545; }

.btn-outline-primary { color: #007bff; border-color: #007bff; }
.btn-outline-success { color: #28a745; border-color: #28a745; }
.btn-outline-warning { color: #ffc107; border-color: #ffc107; }
.btn-outline-danger { color: #dc3545; border-color: #dc3545; }

.btn-group .btn:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-primary:hover:not(.active) { background: #007bff; color: white; }
.btn-outline-success:hover:not(.active) { background: #28a745; color: white; }
.btn-outline-warning:hover:not(.active) { background: #ffc107; color: #000; }
.btn-outline-danger:hover:not(.active) { background: #dc3545; color: white; }

/* کارت سوال */
.questions-grid {
    margin-top: 20px;
}

.questions-grid .col-12 {
    margin-bottom: 25px;
}

.question-card-container {
    width: 100%;
    background-color: white;
    margin: 0 auto;
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    min-height: fit-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.question-card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

/* بخش لوگو */
.card-logo-section {
    width: 20%;
    min-width: 150px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #dee2e6;
}

.card-logo-section img {
    width: 100%;
    max-width: 130px;
    height: auto;
    max-height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* بخش محتوا */
.card-content-section {
    width: 80%;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* عنوان سوال */
.question-title-section {
    width: 100%;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.question-title-section h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-weight: 700;
}

/* محتوای سوال */
.question-content-section {
    width: 100%;
    margin-bottom: 18px;
}

.question-content-section p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 15px 0;
    padding: 0;
    text-align: justify;
    max-height: 90px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* اطلاعات سوال */
.question-info-section {
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.info-items {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #495057;
}

.info-item i {
    color: #6c757d;
    font-size: 1.1rem;
}

/* سطح‌های دشواری */
.difficulty-badge {
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.easy-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.medium-badge {
    background: linear-gradient(135deg, #fd7e14, #ffa94d);
}

.hard-badge {
    background: linear-gradient(135deg, #dc3545, #e4606d);
}

/* تصویر سوال */
.question-image-section {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.question-image-section img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    padding: 5px;
    background: white;
}

/* دکمه‌های اقدام */
.question-actions-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-button {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-button i {
    font-size: 1.2rem;
}

.video-btn {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
}

.solution-btn {
    background: linear-gradient(135deg, #17a2b8, #39c0d6);
    color: white;
}

.download-btn {
    background: linear-gradient(135deg, #28a745, #3dd36f);
    color: white;
}

.member-btn {
    background: linear-gradient(135deg, #6c757d, #8a939b);
    color: white;
    width: 100%;
}

.no-file-btn {
    background: linear-gradient(135deg, #adb5bd, #ced4da);
    color: #495057;
    cursor: not-allowed;
}

.action-button:hover:not(.no-file-btn) {
    opacity: 0.95;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* پیام عدم وجود سوال */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
}

.no-results i {
    font-size: 5rem;
    margin-bottom: 25px;
    opacity: 0.4;
}

.no-results h5 {
    font-size: 1.3rem;
    font-weight: normal;
    color: #495057;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* موبایل (تا 768px) */
@media (max-width: 768px) {
    /* کارت سوال در موبایل */
    .question-card-container {
        flex-direction: column;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
    }
    
    .card-logo-section {
        width: 100% !important;
        min-width: auto;
        padding: 20px;
        border-left: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .card-logo-section img {
        max-width: 110px;
        max-height: 110px;
    }
    
    .card-content-section {
        width: 100% !important;
        padding: 20px;
    }
    
    .question-title-section h4 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .question-content-section p {
        -webkit-line-clamp: 4;
        max-height: none;
        font-size: 0.95rem;
        text-align: right;
    }
    
    .info-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .question-image-section img {
        max-height: 180px;
    }
    
    .question-actions-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-button {
        width: 100%;
        margin: 0;
        padding: 14px;
        font-size: 1.05rem;
    }
    
    /* فیلترها در موبایل */
    .filter-box {
        padding: 15px;
    }
    
    .mobile-btn-group .btn {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .form-select {
        padding: 12px;
        font-size: 16px;
    }
    
    .no-results {
        padding: 60px 15px;
    }
    
    .no-results i {
        font-size: 4rem;
    }
    
    .no-results h5 {
        font-size: 1.1rem;
    }
}

/* تبلت (769px تا 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .question-card-container {
        width: 100%;
    }
    
    .card-logo-section {
        width: 25%;
        min-width: 140px;
    }
    
    .card-logo-section img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .card-content-section {
        width: 75%;
    }
    
    .question-content-section p {
        -webkit-line-clamp: 4;
    }
    
    .action-button {
        min-width: 140px;
        padding: 12px 16px;
    }
}

/* دسکتاپ بزرگ (1025px به بالا) */
@media (min-width: 1025px) {
    .question-card-container {
        max-width: 100%;
    }
    
    .question-content-section p {
        -webkit-line-clamp: 3;
    }
}






/* ==================== FOOTER FIX ==================== */
body .footer-hamid {
    background: url(../images/banner-bg-footer.jpg) no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #6c757d !important;
    
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px 0 !important;
    margin-top: 50px !important;
}

/* اگر می‌خواهی فقط رنگ طوسی باشد (بدون تصویر) */
/*
body .footer-hamid {
    background: #6c757d !important;
    background-image: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
*/

/* برای مطمئن شدن بیشتر */
footer.footer-hamid {
    background: #6c757d !important;
}
