/* Showcase Public Page Styles with Bootstrap 5 Enhancements */

/* Category Card Hover Effects */
.category-card-hover {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
    border-color: #007bff;
}

.category-card-hover:hover .card-img-top {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%) !important;
}

.category-card-hover:hover i {
    transform: scale(1.1);
    color: var(--bs-primary);
}

.category-card-hover .card-img-top {
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.category-card-hover .card-img-top i {
    transition: all 0.3s ease;
}

/* Swiper Customizations for Bootstrap 5 */
.swiper {
    padding-bottom: 2rem;
}

.swiper-pagination-bullet {
    background: #6c757d;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #0d6efd;
    opacity: 1;
}

/* Search Tags */
.search-tags-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
}

.search-tags-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    white-space: nowrap;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    background: #ececeb;
    color: var(--bs-primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    gap: 3px;
    transition: all 0.2s ease;
    text-transform: capitalize;
    border: 1px solid;
    font-family: var(--bs-font-heading);
}
.search-tag:hover {
    background: var(--bs-primary);
    /* transform: translateY(-1px); */
    /* box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3); */
    color: #fff;
}
.search-tag:hover i{color: #fff;}
.search-tag i {
    font-size: 0.75rem;
}

.search-tag-remove {
    background: none;
    border: none;
    color: white;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.search-tag-remove i {
    font-size: 14px;
    color: var(--bs-danger);
}

/* Different colors for different tag types */
.search-tag:has(i.fa-search) {
    background: #e74c3c;
}

.search-tag:has(i.fa-search):hover {
    background: #c0392b;
}

.search-tag:has(i.fa-th-large) {
    background: #f39c12;
}

.search-tag:has(i.fa-th-large):hover {
    background: #e67e22;
}

.search-tag:has(i.fa-layer-group) {
    background: #9b59b6;
}

.search-tag:has(i.fa-layer-group):hover {
    background: #8e44ad;
}

.search-tag:has(i.fa-cube) {
    background: #27ae60;
}

.search-tag:has(i.fa-cube):hover {
    background: #229954;
}

.search-tag:has(i.fa-cogs) {
    background: #34495e;
}

.search-tag:has(i.fa-cogs):hover {
    background: #2c3e50;
}

.search-tag:has(i.fa-star) {
    background: #f1c40f;
    color: #2c3e50;
}

.search-tag:has(i.fa-star):hover {
    background: #f39c12;
}

.search-tag:has(i.fa-star) .search-tag-remove {
    color: #2c3e50;
}

.search-tag:has(i.fa-sort) {
    background: #16a085;
}

.search-tag:has(i.fa-sort):hover {
    background: #138d75;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .display-6 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .search-tags-container {
        padding: 0.75rem;
    }

    .search-tags-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: block;
        width: 100%;
    }

    .search-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Advanced Search Form Styles */
.showcase-search-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #dee2e6;
}

.search-basic-row {
    margin-bottom: 0;
}

.search-input-group {
    position: relative;
}

.search-input-group .form-control {
    padding-left: 3rem;
}

.search-input-group .form-control:focus {
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
    z-index: 5;
}

.advanced-filters-content {
}

.showcase-search-form .form-label {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.showcase-search-form .form-label i {
    width: 16px;
    text-align: center;
}

.showcase-search-form .form-select,
.showcase-search-form .form-control {
}

.showcase-search-form .form-select:focus,
.showcase-search-form .form-control:focus {
}

.feature-checkboxes {
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 0.5rem;
    border: none;
}

.showcase-search-form .form-check {
    margin-bottom: 0;
}

.showcase-search-form .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.showcase-search-form .form-check-label {
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

.showcase-search-form .form-check-label i {
    color: #6c757d;
}

#toggle-filters {
    transition: all 0.3s ease;
}

#toggle-filters:hover {
    transform: translateY(-1px);
}

#toggle-filters[aria-expanded="true"] {
}

#toggle-filters[aria-expanded="true"] .filter-toggle-text::after {
}

#toggle-filters[aria-expanded="false"] .filter-toggle-text::after {
    /* content: " ▼"; */
}

/* Animation for collapsible filters */
.collapse {
    transition: all 0.35s ease;
}

.collapsing {
    transition: height 0.35s ease;
}

.showcases-swiper .swiper-button-next,
.showcases-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    color: #6c757d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.showcases-swiper .swiper-button-next:hover,
.showcases-swiper .swiper-button-prev:hover {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}
.showcases-swiper .swiper-button-next::after,
.showcases-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.showcases_categories-swiper .swiper-button-next,
.showcases_categories-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    color: #6c757d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.showcases_categories-swiper .swiper-button-next:hover,
.showcases_categories-swiper .swiper-button-prev:hover {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}
.showcases_categories-swiper .swiper-button-next::after,
.showcases_categories-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}
.showcases_categories_item{
}
.showcases_categories_item img{height: 100%;width: 100%;object-fit: cover;}
.showcases_categories_item  .card-img-top{background-color: var(--bs-primary-border-subtle) !important;!i;!;!I;!;}
.showcases_categories_item .card-img-top i{
}
.showcases_categories_item .card-body{padding: 10px !important;}
.showcases_categories_item .card-body h6{font-weight: 600 !important;!i;!;!;font-family: var(--bs-font-sans-serif);text-align: center;font-size: 15px;margin-bottom: 3px !important;!i;!;}
.showcases_categories_item .card-body h6 a{
}
.showcases_categories_item .card-body p{text-align: center;font-style: italic;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;}
.showcase-search-form{background-color: #fff;padding: 15px;border-radius: 15px;}
.search-tag-remove-all{padding: 5px 10px;height: auto;}
.search-tags-container .badge{padding: 8px 10px;height: auto;font-size: 13px;font-weight: 400;}
.showcase_detail{border-radius: 15px;}
.showcase_detail_header{
}
.showcase_detail_header .showcas-title{font-size: 24px;font-weight: 500;color: var(--bs-body-color);}
.Showcase_meta{font-size: 14px;color: var(--bs-gray-600);gap: 13px !important;}
.thread-meta-item{
}
.thread-meta-item i{font-size: 14px;}
.showcase_detail .showcase-description{font-size: 16px;color: var(--bs-body-color);overflow: initial;text-overflow: initial;display: block;-webkit-line-clamp: none;-webkit-box-orient: initial;margin-top: 15px;}
.showcase-media-gallery{
}
.showcase-media-gallery h5{font-size: 18px;font-weight: 500;color: var(--bs-dark-text-emphasis);}
.showcase-media-gallery h5 i{color: var(--bs-primary);}
.showcase-image-gallery{
}
.showcase-image-gallery img{height: 110px;}
.showcase_detail .showcase-stats{display: block;font-size: 14px;}
.btn-like-showcase {height: auto;padding: 4px 10px;border: navajowhite;}


.showcase-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ===== SIDEBAR SECTIONS ===== */

.sidebar-section {
    border-bottom: 1px solid #e9ecef;
    padding: 15px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--bs-primary);
    font-size: 0.9rem;
}

/* ===== AUTHOR PROFILE SECTION ===== */

.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-profile .author-avatar {width: 70px;height: auto;margin-right: 0;}

.author-profile .avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.author-info {
    flex: 1;
    min-width: 0;
}
.author-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-name a {
    color: #2c3e50;
    text-decoration: none;
}

.author-name a:hover {
    color: #3498db;
}

.author-role {
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.role-badge.role-super_admin {
    background: #e74c3c;
    color: white;
}

.role-badge.role-admin {
    background: #e67e22;
    color: white;
}

.role-badge.role-moderator {
    background: #9b59b6;
    color: white;
}

.role-badge.role-senior_member {
    background: #27ae60;
    color: white;
}

.role-badge.role-member {
    background: #3498db;
    color: white;
}

.author-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.author-meta .meta-item i {
    font-size: 0.75rem;
}

/* ===== AUTHOR STATS ===== */

.author-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.author-profile .stat-item {
    display: block;
    text-align: center;
}

.author-stats .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    text-align: center;
    display: block !IMPORTANT;!I;!;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== AUTHOR ACTIONS ===== */

.author-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-actions .btn {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* ===== SHOWCASE LIST ===== */

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-item {
    display: flex;
    gap: 0.75rem;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.showcase-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.1);
}

.sidebar-section .showcase-thumbnail {
    flex-shrink: 0;
    width: 100px;
}

.sidebar-section .thumbnail-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.showcase-info {
    flex: 1;
    min-width: 0;
}

.sidebar-section .showcase-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    height: auto !IMPORTANT;!I;!;
}

.sidebar-section .showcase-title a {
    color: #2c3e50;
    text-decoration: none;
    height: auto;
}

.showcase-title a:hover {
    color: var(--bs-primary);
}

.showcase-sidebar .showcase-author {
    margin-bottom: 0;
}

.showcase-author a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8rem;
}

.showcase-author a:hover {
    color: #3498db;
}

.showcase-sidebar .showcase-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item i {
    font-size: 0.7rem;
}

/* ===== CONTRIBUTORS LIST ===== */

.contributors-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contributor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.contributor-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.contributor-rank {
    font-weight: 700;
    color: #e67e22;
    font-size: 28px;
    min-width: 24px;
}

.contributor-avatar .avatar-img {
    width: 40px;
    height: 40px;
}

.contributor-info {
    flex: 1;
    min-width: 0;
}

.contributor-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.contributor-name a {
    color: #2c3e50;
    text-decoration: none;
}

.contributor-name a:hover {
    color: #3498db;
}

.contributor-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.contributor-stats .stat {
    white-space: nowrap;
}

/* ===== EMPTY STATES ===== */

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #dee2e6;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .showcase-sidebar {
        margin-top: 2rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .author-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .showcase-item {
        flex-direction: column;
        text-align: center;
    }
    
    .thumbnail-img {
        width: 100%;
        height: 120px;
    }
    
    .contributor-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== LOADING STATES ===== */

.sidebar-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

.sidebar-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.ratings-list{background-color: #fff;padding: 0;border-radius: 21px;overflow: hidden;}
.category-rating{display: flex;justify-content: end;}
.overall-rating{
}
.rating-number{font-size: 38px;font-weight: 700;color: var(--bs-danger);}
.rating-summary{margin-top: 21px;}
}