/**
 * Comment System Styles for Trautchens Kitchen
 */

.comments-container {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    min-height: 200px;
}

.comments-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

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

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #6b4d8a;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel {
    background: transparent;
    color: #6b4d8a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f5f5f5;
}

.btn-submit {
    background: #6b4d8a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #4a3b5f;
}

.btn-submit:active {
    transform: translateY(1px);
}

/* Messages */
.comment-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.comment-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.comment-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.comment-message.hidden {
    display: none;
}

/* Comments List */
.comments-list {
    margin-top: 1.5rem;
}

.no-comments {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

.loading {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.comment {
    padding: 1.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.comment-date {
    color: #999;
    font-size: 0.85rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .form-row-inline {
        grid-template-columns: 1fr;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .form-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .btn-submit,
    .btn-cancel {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.75rem 1rem;
    }
    
    .comments-container {
        padding: 1rem;
    }
}
