/**
 * Collection specific styles
 */
/* Combined Sort & Filter Modal Styles */


.options-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.options-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.options-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.options-modal.active .options-modal-content {
    transform: translateY(0);
}

.bento-dash-con {
    padding: 12px 0 0 0;
    display: flex;
    justify-content: center;
}

.bento-dash {
    width: 40px;
    height: 4px;
    background-color: #d4d4d4;
    border-radius: 10px;
}

.options-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px 15px 20px;     
}

.options-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.options-modal-close {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.options-modal-close:hover {
    background: #e8e8e8;
    color: #333;
}

.options-form {
    padding: 20px;
}

/* Section Styles */
.options-section {
    margin-bottom: 20px;
}

.options-section-title {
    font-size: 15px;
    font-weight: 500;
    color: #000000;    
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 25px 0;
}

/* Filter Dropdown Styles */
.filter-group {
    margin-bottom: 0;
}

.filter-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-family-main);
    color: #333;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #3ba095;
    background-color: #fff;
}

/* Sort Radio Styles */
.sort-group {
    display: flex;
    flex-direction: column;    
}

.sort-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.sort-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d4d4d4;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sort-radio:checked + .sort-radio-custom {
    border-color: #3ba095;
    background-color: #3ba095;
}

.sort-radio:checked + .sort-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.sort-radio:checked ~ .sort-option-content {
    color: #3ba095;
}

.sort-radio:checked ~ .sort-option-content i {
    color: #3ba095;
}

.sort-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-weight: 500;
    color: #666;
    transition: color 0.2s ease;
}

.sort-option-content i {
    font-size: 16px;
    color: #999;
    transition: color 0.2s ease;
}

/* Action Buttons */
.options-actions {
    display: flex;
    gap: 10px;  
    flex-direction: row;   
}

.options-apply-btn,
.options-reset-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-family-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.options-apply-btn {
    background-color: #3ba095;
    color: white;
}

.options-apply-btn:hover {
    background-color: #317e76;
}

.options-reset-btn {
    background-color: #FFFFFF;
    color: #666;
}

.options-reset-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

a.wishlist-add-btn:hover {
    background: var(--user-primary-color) !important;
    color: white !important;
}

/* Filter Badge */
.filter-badge {
    width: 8px;
    height: 8px;
    background-color: #ff6b6b;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

/* Desktop Styles */
@media (min-width: 769px) {    

    .options-modal { align-items: center;  }    
    .options-modal-content {
        border-radius: 20px;
        max-width: 450px;
        max-height: 80vh;
    }    
    .options-modal.active .options-modal-content {
        transform: scale(1);
    }    
    .bento-dash-con {
        display: none;
    }

    .search-bar-container { max-width: 100%; width: 100%;  }   
}


/* Search Bar Styles */
.search-bar-container {
    position: fixed;
    top: 0px;
    right: 0;
    width: 100%;    
    height: 65px ; /*calc(100vh - 50px);*/
    background: #FFFFFF;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.6s ease;   
    border-top: 1px solid #e9e9e9; 
}

.search-bar-container.active {
    transform: translateX(0);
}

.search-bar-wrapper {
    display: grid;
    flex-direction: column;
    padding: 10px 15px;
    gap: 10px;
    height: 100%;
    grid-template-columns: 1fr 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #000000;
    font-size: 16px;
    pointer-events: none;
}

.search-bar-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 1px solid #e9e9e9;
    border-radius: 50px;
    font-size: 16px;
    font-family: var(--font-family-main);
    background-color: #FFFFFF80;
    transition: all 0.2s ease;
}

.search-bar-input:focus {
    outline: none;
    border-color: #FFFFFF;
    background-color: #fff;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: #FFFFFF;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: #d4d4d4;
    color: #333;
}

.search-cancel-btn {
    background: transparent;
    color: black;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-family-main);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 0;
}

/* Filter Badge */
.filter-badge {
    width: 8px;
    height: 8px;
    background-color: #ff6b6b;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Collection badges - Updated */
.collection-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: white;
    z-index: 2;
}

.owned-badge {
    background-color: var(--owned-color);
}

.wishlist-badge {
    background-color: var(--wishlist-color);
}

/* Collection counters */
.collection-counter {
    display: inline-block;
    margin-left: var(--spacing-sm);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: var(--font-size-sm);
}

/* Collection management buttons */
.collection-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}


/* Empty collection message */
.empty-collection {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.empty-collection-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* Collection filters */
.collection-filters {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.filter-label {
    font-weight: 500;
    min-width: 100px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filter-option {
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


/* Notifications */
#notifications-container {
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 1000;
    width: 100%;
}

.notification {
    padding: 15px 15px;
    margin-bottom: 0px;
    text-align: center;
    border-radius: 8px 8px 0px 0px !important; 
    animation: fadeInUp 0.3s ease-out;
    height:70px;
    color:#3ba095;
    display: flex;    
    align-items: center;
    justify-content: center;
    background-color: #d4eee5 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .search-bar-container { top: 45px; background: var(--user-secondary-color) !important;}

    .options-modal.active {    align-items: flex-end !important;  }
    .collection-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .collection-tab {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
    }
    
    .collection-tab.active {
        border-bottom-color: var(--border-color);
        border-left-color: var(--primary-color);
        background-color: var(--bg-secondary);
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: var(--spacing-xs);
    }
    
    .collection-actions {
        flex-direction: column;
    }
}

/*new card ui*/
.action-buttons{padding: 5px 10px 15px 10px !important;} 
.jellycat-card {border-radius: 8px; background-color: #FFFFFF;}  

.btn-wishlist  {
position: absolute;
top: 10px;
right: 10px;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
z-index: 5;
color: #3ba095;
font-size: 22px;
}
.btn-wishlist:hover {    
color: #ff6b6b !important;
background:#FFFFFF;
}


/* Journal icon styling */
.journal-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: var(--user-primary-color);
    font-size: 18px;
}

.journal-icon svg { color: var(--user-primary-color);}

/* Quantity badge styling */
.quantity-badge {
    position: absolute;
    top: 34px;
    right: 13px;
    color: var(--user-primary-color);
    font-size: 18px;
    font-weight: 600;
    min-width: 24px;
    text-align: center
}

.has-quantity .quantity-badge {
    top: 50px;
}

/* Simplified tab styles */
.tabs-container {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin: 12px 0 15px 0;
    width: 100%;
}

.tab-icon-button {
    background: none;
    border: 1px solid var(--user-primary-color);
    cursor: pointer;
    padding: 10px 15px;
    /*transition: all 0.3s ease;*/
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    gap: 10px;
    color: var(--user-primary-color);
    font-weight: 400;
    font-family: var(--font-family-main);
    background-color: #FFFFFF;
    border-radius: 50px;
    font-size: 15px;
}

.tab-icon-button:hover {
    color: #fff;    
    background-color: var(--user-primary-color);
    border-radius: 50px;
}

.tab-icon-button.active {
    color: #fff;    
    background-color: var(--user-primary-color);
    border-radius: 50px;
}

.tab-icon {
    font-size: 18px;
    color: var(--user-primary-color);
    /*transition: color 0.3s ease;*/
}

.tab-icon-button.active .tab-icon {
    color: #FFFFFF;
}

.tab-icon-button:hover .tab-icon {
    color: #FFFFFF;
}

/* Section title */
.section-title-dynamic {
    font-size: 24px;
    font-weight: 500;
    color: #000;    
}      



/* Copy link button */
.copy-link-button {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    height: 35px;
    width: 35px;
    justify-content: center;
}

.copy-link-button:hover { background: #FFFFFF;}

.copy-link-button:active {
    transform: scale(0.95);
}

.copy-link-button-bar {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 50px;
    transition: all 0.2s ease;   
    justify-content: center;
    font-weight: 500;
    font-family: var(--font-family-main);
    padding: 14px;
}

.copy-link-button-bar:hover {
    background: #FFFFFF;
    
}

/* Notification for copy to clipboard */
.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    
.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Username with link button container */
.username-container {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
        margin-top: 1rem;
        color: #000000;
}

/* Stats section layout */
.userprofile-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    flex-direction: row;
}

/* Collection value style */
.collection-value {
    margin-top: 0.5rem;
    font-weight: 500;
    color: #000000;
}

.collection-value-container {
margin-top: 1rem;
}

/* Tab header container with copy link button */
.tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
}

.tab-content{margin-bottom:100px;}

.collectionbox{
    border-radius: var(--border-radius-sm);
    display: grid;
    padding: 1.5rem;
    margin: 0;
    grid-template-columns: 1fr 100px;
    gap: 1rem;
}

.collectionexplain{
    font-size: 1rem;
    line-height: 1;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.collection-sharebar{
    border-radius: var(--border-radius-sm);
    display: grid;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: center;

}

.jellycats-count-figure {
    font-weight: 500;
    display: flex;
    font-size: 32px;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    color:#000000;
}

.jellycats-count-desc {
    font-size: 14px;
    font-weight: 300;
}

.profile-grid-top-three{
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    align-items: center;
    justify-items: center;
}

.profile-picture-container {
    margin-right:0px !important;
}

.profile-bio {
    margin-bottom: 12px;
    font-weight: 200;
    text-align: center;
    color: #000;
    line-height: 1.3;
    max-width: 600px;

}

.user-collection-value{
    border-radius: 60px;
    padding: 8px 20px;
    font-weight: 500;
    display: inline-block;
    color: #000000 !important;
    font-size: 15px;
}

.join-date{
    color: #000000;
    font-weight: 200 !important;
    font-size: 12px !important;
}

/*app nav code*/
.appnav {
width: 100%;
max-width: 100%;
margin: 0 auto;
padding: 0 var(--spacing-md);
background: white;
position: fixed;
top: -1px;
left: 0;
right: 0;
/*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
z-index: 1001;
display: none; /* Hidden by default */
}

.appnav-grid{
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    gap: 10px;
    padding: 10px 0;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}
.appnav-back{
    font-size: 20px;
    display: flex;
    justify-content: flex-start;
}
.appnav-change{
    font-weight: 600;
    color: #000;
    text-align: center;
    font-size: 17px;
}
.appnav-action{
    font-size: 20px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    color: #000000;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
    /* Prevent double-tap zoom */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;        
}

.appnav-action:hover {
background-color: rgba(59, 160, 149, 0.2);
transform: scale(1.05);
}

.appnav-action:active {
    transform: scale(0.95);
} 

/*=================== PIN Cards ==========================*/
/* Pinned Items Styling */

/* Double-tap cursor */
.jellycat-image-container {
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Double-tap visual feedback */
@keyframes doubleTapFeedback {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.jellycat-image-container.tap-feedback {
    animation: doubleTapFeedback 0.2s ease;
}

.pin-announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;    
}

.pin-announcement-modal.show {
    display: flex;
}

.pin-announcement-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pin-announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    }

.pin-announcement-header h3 {
    margin: 0;
    font-size: 20px;
    color: #000000;
}

.pin-announcement-close {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pin-announcement-close:hover {
    background: #e0e0e0;
}

.pin-announcement-body {
    padding: 24px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;   
    align-items: center;
    align-content: center;
}

.pin-announcement-body p {    
    color: #000000;
    text-align:center;
    font-weight:300;
}

.pin-announcement-footer {
    padding: 0px 24px 24px 24px;
    display: flex;
    justify-content: center;
}

.pin-announcement-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pin-announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
    .pin-announcement-content { margin: 0 16px; }    
    .pin-announcement-header h3 { font-size: 18px;  }    
    .pin-announcement-body { padding: 20px; }
}

/*=================== Photos Grid Styles ==========================*/
.photos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.photo-item {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-2px);
}

.photo-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    background-color: #f8f9fa;
}

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-item:hover .photo-container img {
    transform: scale(1.05);
}

.bmac-outter{
    display:flex; 
    flex-direction: column; 
    align-items: center;
    margin-top:3rem;
    background: #d4eee540; 
    padding: 2rem;  
    border-radius: 12px;
}
.bmac-collection{
    display:flex; 
    flex-direction: column; 
    align-items: center; 
    text-align:center;
    font-weight: 300; 
    max-width: 800px;
    font-size: 14px;
}


.jellygen {display: flex; align-items: center;margin-top: 0.5rem;justify-content: center; gap: 2rem; padding: 1rem; color: black; font-weight: 200;}
.jenbtn{font-size: var(--font-size-sm);padding:0.5rem 1rem;color:white; background-color: var(--user-primary-color); border: 1px solid var(--user-primary-color);min-width: max-content;}
.jenbtn:hover{color:#000000;}

/* Follow Button Styles */
.follow-button-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.follow-btn, .unfollow-btn {
    padding: 0.5rem 1.5rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.follow-btn {
    background-color: var(--user-primary-color);
    color: white;
}

.follow-btn:hover {
    background-color: #000000;
    color: white;
}

.unfollow-btn {
    background-color: transparent;
    color: var(--user-primary-color);
    border: 1px solid var(--user-primary-color);
}

.unfollow-btn:hover {
    background-color: var(--user-primary-color);
    color: white;
}

/* Friends Table Styles */
.friends-table {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.friend-row {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: var(--border-radius-sm);
    border: 1px solid #e8e8e8;
    gap: 1rem;
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-friend-pic {
    width: 100%;
    height: 100%;
    background-color: var(--user-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.friend-username {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.friend-joined, .friend-following-since {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.friend-actions {
    flex-shrink: 0;
}

.view-friend-btn {
    padding: 0.5rem 1rem;
    background-color: var(--user-primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.view-friend-btn:hover {
    background-color: #000000;
    color: white;
}

/* Friends Search Box Styles */
.friends-search-container {
    margin: 1rem 0;
}

.friends-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.friends-search-box:focus-within {
    border-color: var(--user-primary-color);
    box-shadow: 0 0 0 3px rgba(59, 160, 149, 0.1);
}

.friends-search-icon {
    color: var(--text-muted);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.friends-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-family-main);
    font-weight: 400;
}

.friends-search-input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.friends-search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.friends-search-clear:hover {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

/* Friend row transitions for search */
.friend-row {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.friend-row.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    margin: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/*|||||||||||||| COLLECTION V2 CSS||||||||||||||||||||*/
.titlefilter{display:grid; grid-template-columns: 1fr 350px;}

/* Stats Cards Container */
.stats-cards-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    margin-bottom: 1.5rem;    
    max-width: 93dvw;
}

.stats-cards-container::-webkit-scrollbar {
    display: none;
}

.stats-cards-scroll {
    display: flex;
    gap: 1rem;
    padding: 0;
    min-width: min-content;
}

.stat-card {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 200px;
    border-radius: 8px;
    padding: 1.25rem 1.25rem 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.stat-card.active {
    border: 3px solid var(--user-primary-color);;
}

.stat-card.blue { background: var(--user-secondary-color);}
.stat-card.pink { background: linear-gradient(135deg, #fbe5e8 0%, #f8c9d1 100%);}
.stat-card.peach { background: linear-gradient(135deg, #fae7d0 0%, #f7d9b8 100%);}
.stat-card.yellow {   background: linear-gradient(135deg, #fef7e0 0%, #fbe96d 100%);}

.stat-card-line {
    height: 100%;
    width: 3px;
    position: absolute;
    top: 0;
    left: 10px;   
}

.scl-blue { background-color: #FFFFFF; }
.scl-pink { background-color: #FFFFFF; }
.scl-orange { background-color: #FFFFFF; }
.scl-yellow { background-color: #FFFFFF; }

.stat-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #041e45;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
}

.stat-card-count {
    font-size: 0.85rem;
    color: #000000;
    font-weight: 300;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-card-image {
    position: absolute;
    bottom: -15px;
    right: -20px;
    width: 110px;
    height: 110px;
    object-fit: contain;
    z-index: 1;
}

.stat-card-placeholder {
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 4.5rem;
    color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Sort/Filter Section */
.filter-sort {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-bottom: 7px;
    align-items: end;
}

.sortfilter-btn {
    background: #FFFFFF80;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size:15px;    
    color: #000000;
}

.sortfilter-btn:hover {
    border-color: #FFFFFF; 
    background: #FFFFFF;   
}

.sortfilter-btn i { margin-right: 0.5rem;}

/* Grid transition for AJAX sorting */
#collection-grid {
    transition: opacity 0.3s ease;
}

/* ===== SORT & FILTER MODALS (SHARED STYLES) ===== */
.sort-modal, .filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg, 1.5rem);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

.sort-modal.active, .filter-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sort-modal-content, .filter-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
/* Make filter modal more compact */
.filter-modal-content {
    max-height: 400px;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sort-modal-header, .filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl, 2rem) var(--spacing-xl, 2rem) 0;
    margin-bottom: var(--spacing-lg, 1.5rem);
}

.sort-modal-header h3, .filter-modal-header h3 {
    font-size: var(--font-size-xl, 1.5rem);
    font-weight: 600;
    color: var(--text-primary, #041e45);
    margin: 0;
}

.bento-dash-con {
    display: flex;
    justify-content: center;
}

.bento-dash {
    width: 100px;
    height: 5px;
    border-radius: 25px;
    background-color: #00000020;
    margin: 1rem 0;
}

.sort-modal-close, .filter-modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--bg-secondary, #d4eee530);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary, #666666);
}

.sort-modal-close:hover, .filter-modal-close:hover {
    background: var(--border-color, #e8e8e8);
    color: var(--text-primary, #041e45);
}

.sort-form, .filter-form {
    padding: 0 var(--spacing-xl, 2rem) var(--spacing-xl, 2rem);
}

.sort-group, .filter-group {    
    align-items: flex-start !important;    
    flex-direction: column;
}

.sort-label, .filter-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary, #041e45);
    margin-bottom: var(--spacing-md, 1rem);
    font-size: var(--font-size-md, 1rem);
}

/* Radio Buttons (for Sort only) */
.sort-radio-label {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: background-color 0.2s ease;    
    border: 2px solid transparent;
    width:100%;
    padding: 10px 10px 10px 0;
}

.sort-radio {
    display: none;
}

.sort-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color, #e8e8e8);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    background: white;
    flex-shrink: 0;
}



.sort-option-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md, 1rem);
    flex: 1;
    font-size: var(--font-size-md, 1rem);
    color: #000000;
}

.sort-option-content i {
    font-size: 18px;
    color:#000000;
    width: 24px;
    text-align: center;
}

.sort-radio:checked ~ .sort-option-content {
    font-weight: 400;
    color: #000000;
}

.sort-radio:checked ~ .sort-option-content i {
    color: #000000;
}

/* Dropdown for Filter */
.filter-dropdown {
    width: 100%;
    padding: 14px 16px;
    font-size: var(--font-size-md, 1rem);
    font-family: var(--font-family-main);
    color: #000000;
    background-color: #ffffff;
    border: 2px solid var(--border-color, #e8e8e8);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.filter-dropdown:hover {
    border-color: #000000;
    background-color: #ffffff;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #000000;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label i {
    color: var(--text-secondary, #666666);
}

/* Action Buttons */
.sort-actions, .filter-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
    margin-top: var(--spacing-xl, 2rem);
}

.sort-save-btn, .filter-save-btn {
    width: 100%;
    padding: 16px 24px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-md, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm, 0.5rem);
}

.sort-save-btn:hover, .filter-save-btn:hover {
    background-color: var(--link-hover, #000000);
    transform: translateY(-2px);
}

.filter-clear-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: transparent;
    color: #666666;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-size: var(--font-size-md, 1rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm, 0.5rem);
}

.filter-clear-btn:hover {
    border-color: #000000;
    color: #000000;
}

.wishlist-heart-icon{
    position: absolute;
    justify-content: center;
    font-size: 22px;
    color: #ff6b6b;
    margin-right: 5px;
    top: 10px;
    right: 10px;
}

.wishlist-add-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--user-primary-color) !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    font-size: 14px;
    font-weight: 600;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family-main);
    gap: 6px;    
    color: var(--user-primary-color);
    margin: 5px 10px 15px 10px !important;
}

/* Active filter indicator badge */
.filter-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #3ba095;
    border-radius: 50%;
    margin-left: 0.25rem;
}

.card-state-owned .jellycat-image-container{
    background-color: #FFFFFF !important;
}
.card-state-owned {
    background-color: #FFFFFF !important;
}

@media (max-width: 768px) {
    .stats-cards-container {margin: 8rem 0 1.5rem 0;}
    .section-title-dynamic { font-size: 1.25rem;  }    
    .stat-card { width: 200px; height: 120px;  padding: 1rem 1.5rem; }    
    .stat-card-title {font-size: 1rem; }    
    .stat-card-image { width: 110px; height: 110px;  }
    .titlefilter{grid-template-columns: 1fr;}  
    .wishlist-add-btn {font-size:13px;}  
    .owned-tag {font-size:13px !important;} 
    .sortfilter-btn {  padding: 8px; font-size:14px;}    
       
    
    /* Sort/Filter Modal Mobile */
    .sort-modal, .filter-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .sort-modal-content, .filter-modal-content {
        width: 100%;
        max-width: none;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        animation: modalSlideUpMobile 0.3s ease;
    }
    
    @keyframes modalSlideUpMobile {
        from {
            transform: translateY(100%);
            opacity: 1;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .sort-modal-header, .filter-modal-header {
        padding: var(--spacing-lg, 1.5rem) var(--spacing-lg, 1.5rem) 0;
    }
    
    .sort-form, .filter-form {
        padding: 0 var(--spacing-lg, 1.5rem) var(--spacing-lg, 1.5rem);
    }
    .photos-grid {grid-template-columns: repeat(4, 1fr); gap: 0.75rem;  }
    .appnav {display: block; }
    .profile-banner { margin-top: 4.5rem; }
    /* Hide the main site header on mobile when app nav is present */
    .site-header {display: none; } 
    .friends-table { grid-template-columns:1fr ;}
    .friends-search-box { padding: 0.65rem 1rem; }    
    .friends-search-input { font-size: 0.85rem;  }
    .tabs-container{
        justify-content: flex-start;
        margin: 12px 0 15px 0;
        width: 100%;
        display: flex;
        overflow-x: auto;
        gap: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-right: calc(-1 * var(--spacing-md));
        max-width: 94dvw !important;
    }    
}

@media (max-width: 576px) {
    .username-container{margin-bottom: 0px !important}    
    .jellycats-wishlist {   margin-left: 0; }
    .profile-picture-container {width: 80px !important;height: 80px !important; }
    .profile-picture { width: 75px!important;  height: 75px!important;}
    .collection-sharebar{ grid-template-columns: 1fr; text-align: center;}
    /* collection card*/
    .jellycats-count-figure {font-size: 25px;}
    .jellycats-count-desc { font-size: 12px;}
    .tabs-container {  justify-content: space-between;}
}
@media (max-width: 480px) {
    .photos-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}