
/* Custom col-2-4 for exactly 5 items per row */
.col-2-4 {
    width: 20%;
    padding: 0 0.25rem;
    margin-bottom: 0.5rem;
}

/* Gallery Item Styles */
.gallery-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

/* User Bar Styles */
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.user-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    max-width: 70%;
}

.user-avatar {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.profile-picture {  
    border-radius: 50%;
    object-fit: cover;
}

.avatar-initial {
    font-weight: bold;
    font-size: 0.75rem;
}

.username {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actions {
    display: flex;
    gap: 5px;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #aaa;
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.views-count i {
    font-size: 12px;
}

.views-count span {
    font-weight: 500;
}

.btn-action {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 14px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-action:hover {
    color: #fff;
}

/* Like Button Styles */
.like-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.like-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.like-button i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.like-button:hover i {
    transform: scale(1.1);
}

.like-button .bi-heart-fill {
    color: #e74c3c;
}

.like-count {
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
}

/* Media Content Styles */
.media-content {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
}

.media-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-link {
    display: block;
    height: 100%;
}

.media-link:hover img {
    transform: scale(1.05);
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.video-badge i {
    color: white;
    font-size: 18px;
}

/* Stats Bar Styles */
.stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-item i {
    font-size: 12px;
}

.stats-item span {
    font-size: 12px;
    color: #eee;
    font-weight: 500;
}

/* Load More Button Styles */
#loadMoreBtn {
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
    .col-2-4 {
        width: 20%;
    }
}

@media (max-width: 1200px) {
    .col-2-4 {
        width: 25%;
    }
}

@media (max-width: 992px) {
    .col-2-4 {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .col-2-4 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-2-4 {
        width: 100%;
    }
}

.tag-navigation {
    background-color: #1a1a1a;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tag-scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0 20px;
}

.tag-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tag-item {
    display: inline-block;
    padding: 6px 16px;
    margin-right: 8px;
    background-color: #2d2d2d;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.tag-item:hover {
    background-color: #3d3d3d;
    color: #fff;
}

.tag-item.active {
    background-color: #6c5ce7;
}

@media (max-width: 768px) {
    .tag-item {
        padding: 4px 12px;
        font-size: 12px;
    }
}

/* Loading Modal Styles */
#loadingModal .modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}

#loadingModal .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25rem;
}

#loadingModal .modal-body {
    padding: 2rem;
}

#loadingModal #loadingText {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Metadata Modal Styles */
.metadata-section {
    margin-bottom: 15px;
}

.metadata-label {
    color: #a8a8a8;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-text {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0;
    word-break: break-word;
}

.modal-content {
    border: 1px solid #333;
}

.metadata-content {
    background: #1a1a1a;
    border-radius: 8px;
}

/* Copy button styles */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 
.border {
    position: absolute;
    left: -8px;
    border-radius: 8px;
    top: -8px;
    z-index: -9;
    height: 105%;
    width: 105%;
    overflow: hidden;
    background: linear-gradient(to right, transparent 20%, transparent 40%, #ECD08C 50%, #ECD08C 55%, transparent 70%, transparent 100%);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    border: 0 !important;
} */

/*Begin shimmer code*/

@keyframes shine {
    to {
      background-position: 200% center;
    }
  }

  #lora:focus, #lora:active, #lora {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ced4da !important;
  }