/**
 * Frontend CSS - Plugin Perguntas & Respostas Receiteria
 * Version: 8.4
 */

/* Container Principal */
.qa-container {
    max-width: 100%;
    margin: 0 auto;
    border-radius:10px;

}

/* Header Simples */
.qa-form-section {
    background: #F7EFE4;
    border-radius: 10px;
    margin-bottom: 24px;
}

.qa-form-section h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #703416;
    padding: 20px 20px 0 20px;
    text-align: center;
}

.qa-form {
    background: #FBF7F1;
    padding: 20px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.qa-user-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.qa-field {
    margin-bottom: 12px;
}

.qa-field input,
.qa-field textarea {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: white;
}

.qa-field input {
    padding: 10px;
    font-size: 13px;
    border: 1px solid #947160;
}

.qa-field textarea {
    min-height: 80px;
    resize: vertical;
}

.qa-field input:focus,
.qa-field textarea:focus {
    outline: none;
    border-color: #F53E28;
}

.qa-submit-area {
    text-align: center;
}

.qa-submit-button {
    background: #F53E28;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

.qa-submit-button:hover {
    background: #d63426;
}

.qa-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qa-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.qa-message.success {
    background: #F7EFE4;
    color: #703416;
}

.qa-message.error {
    background: #F7EFE4;
    color: #F53E28;
}

.qa-questions-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #703416;
    font-weight: 600;
}

.qa-list {
    margin: 0;
}

.qa-item {
    background: #FBF7F1;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 16px;
    transition: background 0.2s ease;
}

.qa-item:hover {
    background: #F7EFE4;
}

.qa-question-part {
    margin-bottom: 12px;
}

.qa-question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.qa-question-meta strong {
    font-weight: 600;
    color: #947160;
    font-size: 12px;
}

.qa-question-meta small {
    color: #947160;
    font-size: 10px;
}

.qa-question-text {
    font-size: 15px;
    line-height: 1.4;
    color: #703416;
    font-weight: 700;
}

.qa-answer-part {
    background: white;
    padding: 12px;
    border-radius: 4px;
}

.qa-answer-meta {
    margin-bottom: 8px;
}

.qa-answer-meta strong {
    font-weight: 600;
    color: #947160;
    font-size: 12px;
}

.qa-chef-badge {
    background: #F53E28;
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}

.qa-answer-text {
    font-size: 15px;
    line-height: 1.5;
    color: #703416;
}

/* Links nas respostas */
.qa-answer-text a {
    color: #F53E28;
    text-decoration: none;
    font-weight: 500;
}

.qa-answer-text a:hover {
    text-decoration: underline;
}

.qa-answer-text a[target="_blank"]:after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}

.qa-empty {
    text-align: center;
    padding: 40px 20px;
    color: #947160;
    background: #FBF7F1;
    border-radius: 6px;
}

.qa-load-more-section {
    text-align: center;
    margin-top: 20px;
}

.qa-load-more {
    background: #F53E28;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}



.qa-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qa-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c2c7;
    margin: 20px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .qa-user-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .qa-question-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .qa-form-section h3 {
        font-size: 18px;
        padding: 15px 15px 0 15px;
    }
    
    .qa-form {
        padding: 15px;
    }
    
    .qa-item {
        padding: 12px;
    }
    
    .qa-answer-part {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .qa-submit-button {
        width: 100%;
        padding: 15px 24px;
    }
    
    .qa-field input,
    .qa-field textarea {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

