/* ========================================
   SORU-CEVAP SİSTEMİ - KOMPAKT TASARIM
   Maksimum 10px boşluk, temaya uyumlu
   ======================================== */

/* === FORM WRAPPER === */
.qa-form-wrapper {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.qa-form-header h1 {
    font-size: 22px;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.qa-form-header p {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
}

/* === FORM KOMPAKT === */
.qa-form-compact .qa-field {
    margin-bottom: 10px;
}

.qa-form-compact label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
}

.qa-form-compact .req {
    color: #eb3349;
}

.qa-form-compact .opt {
    color: #999;
    font-weight: 400;
    font-size: 12px;
}

.qa-form-compact input[type="text"],
.qa-form-compact input[type="email"],
.qa-form-compact textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.qa-form-compact input:focus,
.qa-form-compact textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.qa-form-compact textarea {
    resize: vertical;
}

.word-count {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

/* Yan Yana Alanlar */
.qa-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .qa-field-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* === UYARI === */
.qa-warning {
    background: #fff3cd;
    border-left: 3px solid #f59e0b;
    padding: 8px 10px;
    margin: 10px 0;
    font-size: 13px;
    color: #856404;
}

/* === BUTON === */
.qa-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.qa-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.qa-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* === MESAJ === */
.qa-message {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

.qa-message.success {
    background: #d1fae5;
    border: 1px solid #11998e;
    color: #0f5132;
}

.qa-message.error {
    background: #f8d7da;
    border: 1px solid #eb3349;
    color: #842029;
}

/* === SON SORULAR BÖLÜMÜ (YATAY SCROLL) === */
.qa-recent-section {
    padding: 10px;
}

.qa-recent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    margin-bottom: 10px;
}

.qa-header-icon {
    font-size: 20px;
    line-height: 1;
}

.qa-recent-header h2 {
    font-size: 18px;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
}

.qa-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.qa-scroll-item {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.qa-scroll-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.qa-scroll-link {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.qa-scroll-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 6px;
}

.qa-scroll-status.answered {
    background: #11998e;
    color: #fff;
    font-weight: 700;
}

.qa-scroll-status.answered::before {
    content: '✓ ';
}

.qa-scroll-status.pending {
    background: #eb3349;
    color: #fff;
}

.qa-scroll-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qa-scroll-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.qa-scroll-author {
    font-size: 13px; /* 11px * 1.15 = 12.65px ≈ 13px */
}

.qa-scroll-date {
    font-size: 10px;
    color: #999;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

/* Eski card stilleri kaldırıldı - Artık yatay scroll kullanılıyor */

/* === STATUS BADGE (SINGLE PAGE) === */
.qa-status {
    display: inline-block;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
}

.qa-status.answered {
    background: #11998e;
    color: #fff;
    font-weight: 700;
}

.qa-status.answered::before {
    content: '✓ ';
}

.qa-status.pending {
    background: #eb3349;
    color: #fff;
    font-weight: 700;
}

/* === BOŞ DURUM === */
.qa-empty {
    text-align: center;
    padding: 30px 10px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 6px;
}

.qa-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.qa-empty h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.qa-empty p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ========================================
   SINGLE SORU SAYFASI
   ======================================== */

.qa-single-question {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.qa-single-header h1 {
    font-size: 19px; /* 24px * 0.8 = 19.2px ≈ 19px */
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.qa-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.qa-single-meta .qa-author {
    font-size: 15px; /* 13px * 1.15 = 14.95px ≈ 15px */
}

.qa-single-content {
    font-size: 17px; /* 15px * 1.15 = 17.25px ≈ 17px */
    line-height: 1.6;
    color: #333;
}

.qa-single-content p {
    margin-bottom: 10px;
}

/* === YANITLAR BÖLÜMÜ === */
.qa-answers-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.qa-answers-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.qa-answers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-answer {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px;
}

.qa-answer.admin-answer {
    background: #f0fdf8;
    border-left: 3px solid #11998e;
}

.qa-answer.user-answer {
    background: #f8f9ff;
    border-left: 3px solid #667eea;
}

.qa-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.qa-answer-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17.5px; /* 14px * 1.25 = 17.5px */
}

.qa-admin-badge {
    background: #11998e;
    color: #fff;
    font-size: 14px; /* 11px * 1.25 = 13.75px ≈ 14px */
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.qa-answer-date {
    font-size: 14px; /* 11px * 1.25 = 13.75px ≈ 14px */
    color: #999;
}

.qa-answer-content {
    font-size: 17.5px; /* 14px * 1.25 = 17.5px */
    line-height: 1.5;
    color: #333;
}

.qa-answer-content p {
    margin: 0 0 8px 0; /* 6px * 1.25 = 7.5px ≈ 8px */
}

.qa-answer-content p:last-child {
    margin-bottom: 0;
}

/* === YANIT FORMU === */
.qa-reply-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.qa-reply-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.qa-reply-form .qa-field {
    margin-bottom: 10px;
}

.qa-reply-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
}

.qa-reply-form input,
.qa-reply-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.qa-reply-form input:focus,
.qa-reply-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.qa-reply-form textarea {
    resize: vertical;
}

/* === GERİ DÖN === */
.qa-back-link {
    margin-top: 10px;
}

.qa-back-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.qa-back-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* === YASAL UYARI === */
.qa-legal-notice {
    background: #fff9e6;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.qa-legal-notice h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qa-legal-notice p {
    font-size: 13px;
    line-height: 1.6;
    color: #78350f;
    margin: 0 0 6px 0;
}

.qa-legal-notice p:last-child {
    margin-bottom: 0;
}

.qa-legal-notice strong {
    color: #92400e;
}

/* ========================================
   MOBİL UYUMLULUK
   ======================================== */

@media (max-width: 768px) {
    .qa-form-header h1 {
        font-size: 20px;
    }

    .qa-form-header p {
        font-size: 13px;
    }

    .qa-single-header h1 {
        font-size: 16px; /* 20px * 0.8 = 16px */
    }

    .qa-answers-title,
    .qa-reply-title {
        font-size: 16px;
    }
}
