/* Comments Section Styles */
.comments-section {
    max-width: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop: Wider comments section */
@media (min-width: 768px) {
    .comments-section {
        padding: 2.5rem;
        margin-top: 3rem;
    }
}

.comments-section h4 {
    color: var(--text-color, #ffffff);
}

.comment-item {
    transition: all 0.3s ease;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.comment-item .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color, #ffffff);
}

.comment-form-section .card {
    border-left: 4px solid var(--primary-color, #0891b2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color, #ffffff);
    border-radius: 12px;
}

.comment-form-section .card-title {
    margin-bottom: 1.5rem;
    color: var(--text-color, #ffffff);
    font-size: 1.1rem;
}

.comment-form-section .mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Comment form styling */
.comment-form-section .form-label {
    font-weight: 600;
    color: var(--text-color, #ffffff);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1rem;
}

.comment-form-section textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-color, #ffffff);
    padding: 1rem;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.comment-form-section textarea:focus {
    outline: none;
    border-color: var(--primary-color, #0891b2);
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.comment-form-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Desktop: Make comment form wider and better spaced */
@media (min-width: 768px) {
    .comment-form-section {
        max-width: none;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .comment-form-section .card {
        padding: 2.5rem;
    }
    
    .comment-form-section textarea {
        min-height: 120px;
        font-size: 16px;
        padding: 1.25rem;
    }
    
    .comment-form-section .form-label {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

.comment-author strong {
    color: #007bff;
}

.comment-content {
    line-height: 1.6;
    word-wrap: break-word;
}

.character-count {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Dark theme button styles */
[data-theme="dark"] .btn-primary {
    background-color: #0891b2;
    border-color: #0891b2;
    color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: #0e7490;
    border-color: #0e7490;
    color: #ffffff;
}

[data-theme="dark"] .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

/* Ensure buttons are properly styled in dark theme */
.comments-section .btn-primary {
    background-color: var(--primary-color, #0891b2);
    border-color: var(--primary-color, #0891b2);
    color: #ffffff;
    transition: all 0.3s ease;
}

.comments-section .btn-primary:hover {
    background-color: var(--primary-hover, #0e7490);
    border-color: var(--primary-hover, #0e7490);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.2);
}

.no-comments .btn-primary {
    background-color: var(--primary-color, #0891b2);
    border-color: var(--primary-color, #0891b2);
    color: #ffffff;
}

.no-comments .btn-primary:hover {
    background-color: var(--primary-hover, #0e7490);
    border-color: var(--primary-hover, #0e7490);
}

.character-count.warning {
    color: #ffc107;
}

.character-count.danger {
    color: #dc3545;
}

.no-comments {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color, #ffffff);
}

#content-validation {
    font-weight: 500;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}