/* ==========================================
   BLUEBYTEHQ - COMMENT SYSTEM
   Passend zum hellen Design der Seite
   (wie Gästebuch, Contact, etc.)
   ========================================== */

/* ===== COMMENT SECTION WRAPPER ===== */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
}

/* ===== COMMENT TITLE ===== */
.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title i {
    color: #3b82f6;
}

/* ===== COMMENT FORM - wie form-card ===== */
.comment-form-wrapper {
    margin-bottom: 28px;
}

.comment-form {
    display: flex;
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comment-form-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 15px;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    resize: vertical;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.comment-form textarea::placeholder {
    color: #aaa;
}

.comment-form .btn-primary {
    align-self: flex-end;
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.comment-form .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== LOGIN NOTICE ===== */
.comment-login-notice {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e40af;
    font-size: 14px;
}

.comment-login-notice i {
    color: #3b82f6;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-login-notice a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: underline;
}

.comment-login-notice a:hover {
    color: #1d4ed8;
}

/* ===== EMPTY STATE ===== */
.comments-empty {
    text-align: center;
    padding: 48px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.comments-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    color: #cbd5e1;
    display: block;
}

.comments-empty p {
    font-size: 15px;
    margin: 0;
    color: #64748b;
}

/* ===== COMMENTS LIST ===== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== SINGLE COMMENT - wie gb-entry ===== */
.comment {
    display: flex;
    gap: 14px;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.comment:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-header strong {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
}

/* Date - dezent wie im Gästebuch */
.comment-date {
    font-size: 12px;
    color: #999;
}

/* Comment Text */
.comment-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Comment Meta (Date + Edited) */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-edited {
    color: #94a3b8;
    font-style: italic;
    font-size: 11px;
}

/* ===== COMMENT ACTIONS (Edit/Delete) ===== */
.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 13px;
}

.comment-action-btn:hover {
    background: #e2e8f0;
    color: #3b82f6;
}

.comment-action-btn.comment-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ===== COMMENT EDIT FORM ===== */
.comment-edit-form {
    margin-top: 12px;
}

.comment-edit-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 14px;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    resize: vertical;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.comment-edit-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-save {
    background: #3b82f6;
    color: white;
}

.btn-save:hover {
    background: #2563eb;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .comment-form {
        flex-direction: column;
        padding: 20px;
    }
    
    .comment-form-avatar {
        width: 44px;
        height: 44px;
    }
    
    .comment-form .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .comment {
        padding: 14px;
    }
    
    .comment-avatar {
        width: 38px;
        height: 38px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .comment-login-notice {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .comments-section {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .comment-form {
        padding: 16px;
    }
    
    .comments-empty {
        padding: 32px 16px;
    }
    
    .comments-empty i {
        font-size: 40px;
    }
}

/* ===== SUCCESS MESSAGE ===== */
.comment-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    color: #059669;
}

.comment-success i {
    font-size: 20px;
    color: #10b981;
}

.comment-success span {
    font-size: 14px;
    font-weight: 500;
}
