/* ===== comments.php — extracted inline <style> → comments.css ===== */
/* Comments Section Styling */
.article-comments-section {
    width: 100%;
    max-width: 100%;
    margin: 2.5rem 0 0 0;
    padding: 2rem 0 0 0;
    border-top: 1px solid #f1f5f9;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    text-align: right;
}

.comments-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.comments-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.maq-comments-ico {
    color: #f97316;
}

.comments-count-badge {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.15rem 0.65rem;
    border-radius: 9999px;
}

.comments-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.comments-alert-success i {
    color: #22c55e;
    font-size: 1.1rem;
}

.comments-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.comments-empty-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 2rem;
    color: #64748b;
}

.comments-empty-box i {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: block;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
}

.comment-bubble {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    flex: 1;
}

.comment-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.comment-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.comment-date {
    font-size: 0.78rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
}

/* Comment Form */
.comment-form-container {
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.comment-form-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Comment form layout container */
.comment-submit-form {
    width: 100%;
}

/* Grid cell wrapper for each guest input (name / email) */
.comment-field-col {
    min-width: 0;
}

/* Wrapper around the comment textarea */
.comment-form-group {
    min-width: 0;
}

.comment-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 1rem;
}

.comment-user-badge i {
    color: #f97316;
}

.comment-guest-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}

.comment-input:focus {
    border-color: #f97316;
    background: #ffffff;
}

.comment-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    line-height: 1.6;
    margin-bottom: 1rem;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}

.comment-textarea:focus {
    border-color: #f97316;
    background: #ffffff;
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.comment-btn-submit {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.comment-btn-submit:hover {
    background: #ea580c;
}

.comment-guest-hint {
    font-size: 0.82rem;
    color: #64748b;
}

.comment-login-inline {
    color: #ea580c;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .comment-guest-row {
        grid-template-columns: 1fr;
    }
    .comment-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
