/* Item Detail Page Styles - Extracted from inline styles */

/* Image zoom cursor */
.item-image-zoomable {
    cursor: zoom-in;
}

/* Z-index for overlays */
.item-overlay-high-z {
    z-index: 10;
}

/* Hidden elements */
.item-nav-hidden {
    display: none;
}

/* Thumbnail pointer cursor */
.item-thumbnail-clickable {
    cursor: pointer;
}

/* Description content scrollable area */
.item-description-scrollable {
    max-height: 400px;
    overflow-y: auto;
}

/* Large icon size for placeholders */
.item-large-icon {
    font-size: 3rem;
}

/* File list scrollable area */
.item-file-list-scrollable {
    max-height: 500px;
    overflow-y: auto;
}

/* Comments Section Styles */
.comments-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
}

.comment-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-form {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

.comment-content {
    margin: 8px 0;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-actions .btn-link {
    padding: 0;
    font-size: 0.875rem;
    text-decoration: none;
}

.comment-actions .btn-link:hover {
    text-decoration: underline;
}

.comment-actions .comment-like-btn {
    padding: 2px 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.comment-actions .comment-like-btn:hover {
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.comment-actions .comment-like-btn .bi-heart-fill {
    animation: likeHeartBeat 0.3s ease-in-out;
}

/* Comment Edit Form Styles */
.comment-edit-form {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.comment-edit-input {
    resize: vertical;
    min-height: 80px;
}

.comment-edit-form .btn {
    font-size: 0.875rem;
}

@keyframes likeHeartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.comment-actions .comment-like-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Comment user avatar and name styling */
.comment-user-avatar {
    transition: transform 0.2s ease;
}

.comment-user-avatar:hover {
    transform: scale(1.05);
}

.comment-user-name {
    transition: color 0.2s ease;
}

.comment-user-name:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Hold to Delete button styling for comments */
.comment-actions .delete-all-btn {
    position: relative;
    overflow: hidden;
    min-width: 120px;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 4px 8px;
    background-color: #dc3545;
    color: white;
    transition: all 0.2s ease;
}

.comment-actions .delete-all-btn:hover {
    background-color: #c82333;
}

.comment-actions .delete-all-btn.holding {
    background-color: #fd7e14 !important;
}

.comment-actions .delete-all-btn .delete-btn-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    width: 0%;
    transition: width 0.05s linear;
    z-index: 1;
}

.comment-actions .delete-all-btn .delete-btn-text {
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* Responsive scroll behavior */
@media (max-width: 768px) {
    .comments-container {
        max-height: 400px;
    }
}



/* Tab content max height and scrolling */
.tab-content {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ensure smooth scrolling */
.tab-content {
    scroll-behavior: smooth;
}

/* Custom scrollbar for tab content */
.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Remove the individual description scrolling since we now have it on the whole tab area */
.item-description-scrollable {
    max-height: none;
    overflow: visible;
}

/* Comments pagination styling */
.comments-container .pagination {
    margin-bottom: 0;
}

.comments-container .page-link {
    color: #0d6efd;
    border-color: #dee2e6;
}

.comments-container .page-link:hover {
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.comments-container .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.comments-container .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
} 