/* کانتینر اصلی صفحه سوالات */
.questions-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    padding-bottom: 5rem;
}

/* هدر چسبان (Sticky) برای کادر جستجو */
.sticky-header {
    position: sticky;
    top: 80px; /* این مقدار را از 60 به 80 یا 90 افزایش دهید تا زیر نوبار نرود */
    z-index: 5;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%), rgba(15, 15, 20, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #0ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    text-align: center;
}

.sticky-header h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-shadow: 0 0 15px #1e6fff;
}

/* کادر جستجو */
.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-box .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 15px;
    box-sizing: border-box;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ffff;
    border-radius: 25px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

/* چیدمان شبکه‌ای کارت‌ها */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 40px;
}

/* استایل کارت سوال */
.question-card {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%), rgba(15, 15, 20, 0.8);
    border: 1px solid #0ff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

.question-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 255, 255, 0.15);
    border-color: #1e6fff;
}

/* تگ دسته‌بندی */
.question-category {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #00ffff, #0088ff);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 255, 255, 0.4);
}

/* متن سوال */
.question-text {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* لیست گزینه‌ها */
.options-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.option-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
    font-size: 0.95rem;
}

/* هایلایت گزینه صحیح */
.option-item.correct {
    background: rgba(0, 255, 128, 0.15);
    border-color: #00ff80;
    color: #00ff80;
    font-weight: bold;
    box-shadow: inset 0 0 10px rgba(0, 255, 128, 0.1);
}

/* انیمیشن لودینگ (اسپینر نئونی) */
.loading-container {
    text-align: center;
    padding: 2rem 0;
    color: #00ffff;
}

.neon-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.2);
    border-top-color: #00ffff;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* پیام پایان */
.end-message {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

.end-message i {
    color: #00ff80;
    margin-left: 5px;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .options-list {
        grid-template-columns: 1fr; /* یک ستونه در موبایل */
    }
    .sticky-header {
        padding: 1rem;
    }
}
