/* ==========================================================================
   PYTANIA I ODPOWIEDZI (aurora-qa)
   Plik: assets/css/components/product-qa.css
   ========================================================================== */

.aurora-qa { padding: 40px 0 10px; }

.aurora-qa-title {
    font-size: 1.5rem;
    margin: 0 0 24px;
    color: var(--aurora-navy, #1e293b);
    position: relative;
    padding-bottom: 12px;
}
.aurora-qa-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--aurora-gradient, linear-gradient(135deg, #f59e0b, #6366f1));
}

.aurora-qa-list { list-style: none; margin: 0 0 30px; padding: 0; }

.aurora-qa-item {
    padding: 20px;
    border: 1px solid var(--aurora-border, #e2e8f0);
    border-radius: 16px;
    margin-bottom: 14px;
    background: #fff;
}

.aurora-qa-q,
.aurora-qa-a { display: flex; gap: 12px; align-items: flex-start; }
.aurora-qa-a { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--aurora-border, #e2e8f0); }

.aurora-qa-badge {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    background: #eef2ff;
    color: var(--aurora-indigo, #6366f1);
}
.aurora-qa-badge--a { background: #fff8ec; color: var(--aurora-accent, #f59e0b); }

.aurora-qa-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--aurora-navy, #1e293b); }
.aurora-qa-a .aurora-qa-text { color: #475569; }
.aurora-qa-meta { font-size: 12px; color: var(--aurora-slate-light, #94a3b8); }

.aurora-qa-empty { color: var(--aurora-slate, #64748b); font-size: 14px; margin-bottom: 26px; }

/* --- Formularz --- */
.aurora-qa-ask {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
}
.aurora-qa-ask h3 { margin: 0 0 14px; font-size: 17px; color: var(--aurora-navy, #1e293b); }

.aurora-qa-form textarea,
.aurora-qa-form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--aurora-border, #e2e8f0);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    font-family: inherit;
}
.aurora-qa-form textarea:focus,
.aurora-qa-form input[type="text"]:focus {
    outline: none;
    border-color: var(--aurora-accent, #f59e0b);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}

.aurora-qa-form-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.aurora-qa-form-row input[type="text"] { flex: 1; }
.aurora-qa-form-row button {
    flex-shrink: 0;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: var(--aurora-gradient, linear-gradient(135deg, #f59e0b, #6366f1));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: filter .2s ease, transform .1s ease;
}
.aurora-qa-form-row button:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.aurora-qa-form-row button:disabled { opacity: .6; cursor: default; }
.aurora-qa-form-row button.is-loading { color: transparent; position: relative; }
.aurora-qa-form-row button.is-loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aurora-qa-spin .7s linear infinite;
}
@keyframes aurora-qa-spin { to { transform: rotate(360deg); } }

.aurora-qa-msg { margin-top: 12px; font-size: 13px; font-weight: 600; }
.aurora-qa-msg.is-success { color: #16a34a; }
.aurora-qa-msg.is-error { color: #dc2626; }

@media (max-width: 560px) {
    .aurora-qa-form-row { flex-direction: column; }
    .aurora-qa-form-row button { width: 100%; }
}
