/* Comment System Styles */
.comment-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.comment-form {
    background: rgba(26, 26, 26, .8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comment-form h3 {
    margin: 0 0 1rem 0;
    color: var(--header-text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--header-text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: transparent;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.submit-btn {
    background: var(--accent-color-3);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    background: rgba(26, 26, 26, .8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.comment-author {
    font-weight: 600;
    color: var(--header-text-color);
    margin-right: 0.5rem;
}

.comment-location {
    color: var(--header-text-color);
    margin-right: 0.5rem;
}

.comment-time {
    color: var(--header-text-color);
}

.comment-content {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-actions {
    margin-top: 0.5rem;
}

.reply-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.reply-btn:hover {
    color: #0056b3;
}

.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 26, .8);
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.reply-form .form-row {
    flex-direction: column;
    gap: 0.5rem;
}

.reply-form .form-group {
    margin-bottom: 0.5rem;
}

.replies {
    margin-left: 2rem;
    margin-top: 1rem;
    border-left: 2px solid #e9ecef;
    padding-left: 1rem;
}

.reply {
    background: rgba(26, 26, 33, .8);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.reply:last-child {
    margin-bottom: 0;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

.no-comments {
    text-align: center;
    color: var(--text-color);
    font-style: italic;
    padding: 2rem;
    background: rgba(26, 26, 33, .8);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-section {
        padding: 0 0.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .replies {
        margin-left: 1rem;
    }
    
    .comment-form {
        padding: 1rem;
    }
}

/* Animation for new comments */
.comment.new-comment {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 