/* Стили для кастомной системы комментариев */
.bb-comments-section {
    max-width: 70%;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    position: relative; /* Для позиционирования honeypot */
}
@media (max-width: 768px) {
    .bb-comments-section {
        max-width: 100%;
    }
}

/* Honeypot поле - полностью скрытое */
.bb-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

.bb-comments-header-toggle {
    display: block;
    margin-bottom: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: #f0f0f0;
    border-radius: 6px;
    transition: background-color 0.3s;
    outline: none;
}

.bb-comments-header-toggle:hover {
    background: #e0e0e0;
}

.bb-comments-header-toggle:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

.bb-comments-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #333;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bb-comments-count {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
    background: #e0e0e0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.bb-toggle-icon {
    display: inline-block;
    transition: transform 0.3s;
    color: #09AFF4;
    font-size: 1.2rem;
    margin-left: auto;
}

.bb-comments-section.collapsed .bb-toggle-icon {
    transform: rotate(-90deg);
}

.bb-comments-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
}

.bb-comments-section:not(.collapsed) .bb-comments-container {
    max-height: 5000px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

.bb-comments-list-wrapper {
    margin-bottom: 2rem;
}

.bb-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bb-comment-item {
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #4361ee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.bb-comment-author {
    font-size: 1rem;
    font-weight: 600;
    color: #4361ee;
}

.bb-comment-date {
    font-size: 0.875rem;
    color: #666;
}

.bb-comment-text {
    color: #333;
    line-height: 1.6;
    word-wrap: break-word;
}

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

/* Форма комментариев */
.bb-comment-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bb-comment-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
}

.bb-form-group {
    margin-bottom: 1.25rem;
}

.bb-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.bb-form-group .required {
    color: #e74c3c;
}

.bb-form-control {
    color: #333 !important;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 15px !important;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.bb-form-control:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

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

.bb-comment-submit {
    width: 100% !important;
    background: #09AFF4;
    color: #fff !important;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.bb-comment-submit:hover:not(:disabled) {
    font-family: "Involve", sans-serif;
    font-size: 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    background: #1A1C39;
    color: #fff;
    transform: translateY(-1px);
}

.bb-comment-submit:active:not(:disabled) {
    transform: translateY(0);
}

.bb-comment-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.bb-form-message {
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

.bb-message-success {
    padding: 0.75rem;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.bb-message-error {
    padding: 0.75rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Пагинация комментариев */
.bb-comments-pagination {
    display: flex;
    justify-content: end;
    align-items: end;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.bb-pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bb-pagination-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #fff !important;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px !important;
    transition: all 0.3s;
    text-align: center;
    letter-spacing: 0.8px;
}

.bb-pagination-btn:hover:not(.active):not(:disabled) {
    font-family: "Involve", sans-serif !important;
    border-radius: 15px;
    background-color: #1A1C39 !important;
    color: #fff;
    letter-spacing: 0.8px;
}

.bb-pagination-btn.active {
    background-color: #1A1C39 !important;
    color: #fff;
    border-color: #1A1C39;
    font-weight: 600;
}

.bb-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bb-pagination-dots {
    padding: 0 0.25rem;
    color: #666;
}

.bb-pagination-prev,
.bb-pagination-next {
    width: 100%;
    max-width: 160px;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .bb-comments-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .bb-comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bb-comment-form {
        padding: 1rem;
    }
    
    .bb-comments-pagination {
        gap: 0.25rem;
    }
    
    .bb-pagination-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        min-width: 35px;
    }
    
    .bb-pagination-prev,
    .bb-pagination-next {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

