:root {
    --primary: #F3F4F6;
    --secondary: #9CA3AF;
    --gradient-1: #3B82F6;
    --gradient-2: #10B981;
    --card: #1A1A1E;
    --background: #0E0E10;
}

/* Explore Container */
.explore-container {
    column-count: 2;
    column-gap: 1rem;
    padding: 2rem 1rem 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* List View - Single Column Layout */
.explore-container.list-view {
    column-count: 1;
    column-gap: 0;
    padding: 2rem;
    max-width: 1200px;
}

/* Explore Card */
.explore-card {
    position: relative;
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.explore-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.explore-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

.explore-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.explore-card:hover .explore-card-overlay {
    opacity: 1;
}

.explore-card-title {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
}

.explore-card-like-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.explore-card-like-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 16px rgba(59, 130, 246, 0.6),
        0 0 30px rgba(59, 130, 246, 0.4),
        inset 0 0 25px rgba(255, 255, 255, 0.15);
}

/* Show SVG diamond icon when not liked and card is hovered */
.explore-card:hover .explore-card-like-btn:not(.liked) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9l5-5h8l5 5-9 12L3 9zm5.2-3l-2.7 3h12.9l-2.7-3H8.2z'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.explore-card-like-btn.liked {
    background: var(--gradient-2) !important;
    background-image: none !important;
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        0 0 20px rgba(16, 185, 129, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.explore-card-like-btn.liked:hover {
    box-shadow: 
        0 6px 16px rgba(16, 185, 129, 0.6),
        0 0 30px rgba(16, 185, 129, 0.4),
        inset 0 0 25px rgba(255, 255, 255, 0.15);
}

.explore-card-like-btn.liked::before {
    content: "✓";
    z-index: 2;
    position: relative;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.4rem;
}

.explore-card-like-btn:not(.liked)::before {
    display: none;
}


/* Popup Modal */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.popup-content {
    position: relative;
    z-index: 2001;
    background: var(--card);
    border-radius: 1.5rem;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: popupSlideIn 0.3s ease;
}

.popup-content .popup-scrollable-content {
    overflow-y: auto;
    overflow-x: hidden;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.popup-menu-btn {
    position: absolute;
    top: 1rem;
    right: 4rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.popup-menu-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.popup-menu-dropdown {
    position: absolute;
    top: 4rem;
    right: 1rem;
    background: var(--card);
    border: 1.5px solid var(--secondary);
    border-radius: 0.75rem;
    padding: 0.5rem;
    z-index: 2003;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 150px;
}

.popup-menu-item {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.popup-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.fullscreen-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.fullscreen-image-modal img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary);
    font-size: 2rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5001;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-scrollable-content {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.popup-image-container {
    width: fit-content;
    max-width: calc(100% - 4rem);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin: 0 auto;
}

.popup-image-container:hover {
    opacity: 0.9;
}

.popup-image-container img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: var(--card);
}

.popup-info {
    width: 100%;
    max-width: 100%;
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.popup-scrollable {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.popup-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.popup-stat-pill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--card);
    border: 1.5px solid var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.popup-stat-pill button,
.popup-share-pill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--card);
    border: 1.5px solid var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--primary);
    font-family: inherit;
}

.popup-stat-pill:hover,
.popup-share-pill:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.popup-share-pill {
    cursor: pointer;
}

.popup-share-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.popup-likes-pill {
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.popup-likes-pill.liked {
    border-color: var(--gradient-2);
}


/* Mini like button inside popup likes pill */
.popup-likes-pill-like-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    box-shadow: 
        0 2px 6px rgba(59, 130, 246, 0.4),
        0 0 10px rgba(59, 130, 246, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    margin-right: 0.25rem;
}

.popup-likes-pill-like-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 3px 8px rgba(59, 130, 246, 0.6),
        0 0 15px rgba(59, 130, 246, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.15);
}

/* Show SVG diamond icon when not liked */
.popup-likes-pill-like-btn:not(.liked) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9l5-5h8l5 5-9 12L3 9zm5.2-3l-2.7 3h12.9l-2.7-3H8.2z'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.popup-likes-pill-like-btn.liked {
    background: var(--gradient-2) !important;
    background-image: none !important;
    box-shadow: 
        0 2px 6px rgba(16, 185, 129, 0.4),
        0 0 10px rgba(16, 185, 129, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.popup-likes-pill-like-btn.liked:hover {
    box-shadow: 
        0 3px 8px rgba(16, 185, 129, 0.6),
        0 0 15px rgba(16, 185, 129, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.15);
}

.popup-likes-pill-like-btn.liked::before {
    content: "✓";
    z-index: 2;
    position: relative;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.875rem;
}

.popup-likes-pill-like-btn:not(.liked)::before {
    display: none;
}


.popup-liked-checkmark {
    color: #ffffff; /* White for contrast */
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 3px rgba(0, 0, 0, 0.5),
        0 0 6px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

.popup-liked-checkmark:hover {
    transform: scale(1.1);
}

.popup-stat-pill a {
    color: var(--gradient-1);
    cursor: pointer;
}

.popup-stat-pill a:hover {
    text-decoration: underline;
}

.popup-likes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.popup-label {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

/* Comments pill - clickable */
.popup-comments-pill {
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-comments-pill:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.popup-uploader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.popup-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.popup-location-map-container {
    width: 100%;
    margin: 1.5rem 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--card);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-location-name {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gradient-1);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-location-name:hover {
    color: var(--gradient-2);
    background: rgba(59, 130, 246, 0.05);
}

.popup-location-map {
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 200px;
    border-radius: 0 0 0.75rem 0.75rem;
}

.popup-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.location-link {
    color: var(--gradient-1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-link:hover {
    color: var(--gradient-2);
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 480px) {
    .explore-container {
        column-count: 3;
        column-gap: 1.5rem;
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .explore-container {
        column-count: 4;
        column-gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .explore-container {
        column-count: 5;
    }
}

@media (min-width: 1600px) {
    .explore-container {
        column-count: 6;
    }
}

/* Adjust popup for smaller screens */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .popup-image-container {
        max-height: 50vh;
    }
    
    .popup-info {
        padding: 1.5rem;
        max-height: 45vh;
    }
    
    .popup-info h2 {
        font-size: 1.25rem;
    }
}

/* Search Container */
.search-container {
    padding: 2rem 1rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--secondary);
    border-radius: 50px;
    background: var(--card);
    color: var(--primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--gradient-1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Filter Pills */
.filter-pills-container {
    overflow-x: auto;
    padding: 0.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
    scrollbar-width: none;
}

.filter-pills-wrapper {
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem;
    min-width: fit-content;
}

.filter-pill {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--secondary);
    border-radius: 50px;
    background: var(--card);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.filter-pill:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.filter-pill.active {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
    color: var(--primary);
}

/* Filter pill animations */
@keyframes filterPillActivate {
    0% {
        background: var(--card);
        border-color: var(--secondary);
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
        border-color: transparent;
        transform: scale(1);
    }
}

@keyframes filterPillDeactivate {
    0% {
        background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
        border-color: transparent;
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        background: var(--card);
        border-color: var(--secondary);
        transform: scale(1);
    }
}

.sort-pill {
    width: 3rem;
    height: 2.75rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sort-icon {
    font-size: 1rem;
}

.more-filters-pill {
    width: 3rem;
    height: 2.75rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-filters-pill span {
    font-size: 1.5rem;
    line-height: 1;
}

/* Filter Popups */
.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.filter-popup-content {
    background: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.filter-popup-content.large-popup {
    max-width: 600px;
}

.filter-popup-content h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.sort-option-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sort-option {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.sort-direction-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1.5px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.sort-direction-btn:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.sort-direction-icon {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.filter-list-item {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    border: 1.5px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.filter-list-item[data-filter="users"] {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--gradient-1);
}

.filter-list-item[data-filter="users"]:hover {
    background: rgba(59, 130, 246, 0.25);
}

.filter-list-item[data-filter="users"].active {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--gradient-1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.sort-option:hover,
.filter-list-item:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.sort-option.active {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.close-popup-btn,
.apply-filter-btn {
    width: 100%;
    padding: 0.875rem;
    margin-top: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.apply-filter-btn {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    color: var(--primary);
}

.apply-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.close-popup-btn {
    background: var(--background);
    color: var(--primary);
    border: 1.5px solid var(--secondary);
}

.close-popup-btn:hover {
    background: var(--card);
    border-color: var(--primary);
}

.location-input {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    border: 1.5px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.location-input:focus {
    border-color: var(--gradient-1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.location-input-wrapper {
    position: relative;
    width: 100%;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--secondary);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.location-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.location-suggestion:hover {
    background: var(--background);
}

.location-suggestion:last-child {
    border-bottom: none;
}

.map-search-container {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.location-filter-map-inline .map-search-container {
    padding: 0;
    background: transparent;
    border: none;
}

.map-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.map-search-input:focus {
    border-color: var(--gradient-1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.map-search-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.map-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.location-filter-map-inline {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-filter-map {
    width: 100%;
    height: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--card);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.map {
    width: 100%;
    max-width: 800px;
    height: 500px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--card);
}

/* Darken map tiles in explore page maps */
.map .leaflet-tile-container img,
#popup-location-map .leaflet-tile-container img {
    filter: brightness(0.85) contrast(1.1);
}

.map-controls {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.confirm-location-btn,
.cancel-map-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.confirm-location-btn {
    flex: 1;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    color: var(--primary);
}

.confirm-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cancel-map-btn {
    flex: 1;
    background: var(--card);
    color: var(--primary);
    border: 1.5px solid var(--secondary);
}

.cancel-map-btn:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.map-pin-btn,
.near-me-btn {
    padding: 0.75rem 1.5rem;
    border: 1.5px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--card);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.map-pin-btn:hover,
.near-me-btn:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.map-pin-btn:disabled,
.near-me-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Location Radius Slider */
.location-radius-container {
    margin: 1.5rem 0;
}

.radius-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--background);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    cursor: pointer;
    border: 2px solid var(--card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.radius-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    cursor: pointer;
    border: 2px solid var(--card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.radius-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: 3px;
}

.radius-slider::-moz-range-track {
    height: 6px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: 3px;
}

.location-filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.clear-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1.5px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--card);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.clear-filter-btn:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Color Filter Options */
.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--background);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    border-color: var(--gradient-1);
}

.color-option input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

.color-label {
    font-size: 0.85rem;
    color: var(--primary);
}

/* Comments Section */
.comments-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comments-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    padding: 1rem;
    background: var(--background);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.comment-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.comment-like-btn:hover {
    color: var(--gradient-1);
}

.comment-like-btn.liked {
    color: var(--gradient-2);
}

.comment-reply-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.comment-reply-btn:hover {
    color: var(--gradient-1);
}

.comment-text {
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-timestamp {
    font-size: 0.75rem;
    color: var(--secondary);
}

.replies-container {
    margin-left: 2rem;
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.reply-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.reply-input {
    margin-left: 2rem;
    margin-top: 0.5rem;
    display: none;
}

.reply-input.active {
    display: block;
}

.comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.comment-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--secondary);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    max-height: 150px;
    outline: none;
    transition: all 0.2s ease;
}

.comment-input:focus {
    border-color: var(--gradient-1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.submit-comment-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* End Message */
.end-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 500;
}

/* Liked Page */
.liked-page-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
    color: var(--primary);
    font-weight: 700;
}

.no-liked-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
    font-size: 1.25rem;
}

/* Profile Button */
.profile-btn {
    width: auto;
    min-width: 3rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn svg {
    width: 20px;
    height: 20px;
}

/* Loading Placeholder */
.explore-card.loading {
    min-height: 300px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.explore-card.loading::before {
    display: none;
}

.popup-comments-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

/* Profile Uploaded Posts Layout */
.profile-uploaded-post {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    position: relative;
}

.profile-uploaded-post.post-reverse {
    flex-direction: row-reverse;
}

.profile-post-image-card {
    flex: 0 0 300px;
    width: 300px;
    height: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.profile-post-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.profile-post-image-card.loading {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.profile-post-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.profile-post-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.profile-post-title:hover {
    color: var(--primary);
}

.profile-post-description {
    color: var(--secondary);
    line-height: 1.6;
}

.profile-post-description p {
    margin: 0;
    display: inline;
}

.show-more-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    margin-left: 0.25rem;
    transition: opacity 0.2s ease;
}

.show-more-link:hover {
    opacity: 0.8;
}

.profile-post-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.profile-post-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--card);
    border: 1.5px solid var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary);
}

.profile-post-pill:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.profile-post-likes-pill.liked {
    border-color: var(--gradient-2);
}

.profile-post-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-uploaded-post:hover .profile-post-menu-container {
    opacity: 1;
}

.profile-post-menu-btn {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.profile-post-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 150px;
}

.profile-post-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.profile-post-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-post-breaker {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Loading placeholders for text and pills */
.profile-post-content.loading .profile-post-title,
.profile-post-content.loading .profile-post-description,
.profile-post-content.loading .profile-post-pill {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 0.5rem;
    min-height: 1.5rem;
}

.profile-post-content.loading .profile-post-title {
    height: 2rem;
    width: 60%;
}

.profile-post-content.loading .profile-post-description {
    height: 4rem;
    width: 100%;
}

.profile-post-content.loading .profile-post-pill {
    height: 2rem;
    width: 80px;
}

/* Explore List View Styles */
.explore-list-item {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.explore-list-item:last-child {
    border-bottom: none;
}

.explore-list-image-card {
    flex: 0 0 300px;
    width: 300px;
    height: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.explore-list-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.explore-list-image-card.loading {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.explore-list-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.explore-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    min-height: 300px;
}

.explore-list-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.explore-list-title:hover {
    color: var(--primary);
}

.explore-list-description {
    color: var(--secondary);
    line-height: 1.6;
}

.explore-list-description p {
    margin: 0;
    display: inline;
}

.explore-list-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.explore-list-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--card);
    border: 1.5px solid var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary);
}

.explore-list-pill:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.explore-list-likes-pill {
    position: relative;
    overflow: visible;
}

.explore-list-likes-pill.liked {
    border-color: var(--gradient-2);
}

/* Mini like button inside explore list likes pill (matching popup) */
.explore-list-likes-pill-like-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    box-shadow: 
        0 2px 6px rgba(59, 130, 246, 0.4),
        0 0 10px rgba(59, 130, 246, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    margin-right: 0.25rem;
}

.explore-list-likes-pill-like-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 3px 8px rgba(59, 130, 246, 0.6),
        0 0 15px rgba(59, 130, 246, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.15);
}

/* Show SVG diamond icon when not liked */
.explore-list-likes-pill-like-btn:not(.liked) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9l5-5h8l5 5-9 12L3 9zm5.2-3l-2.7 3h12.9l-2.7-3H8.2z'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.explore-list-likes-pill-like-btn.liked {
    background: var(--gradient-2) !important;
    background-image: none !important;
    box-shadow: 
        0 2px 6px rgba(16, 185, 129, 0.4),
        0 0 10px rgba(16, 185, 129, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.explore-list-likes-pill-like-btn.liked:hover {
    box-shadow: 
        0 3px 8px rgba(16, 185, 129, 0.6),
        0 0 15px rgba(16, 185, 129, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.15);
}

.explore-list-likes-pill-like-btn.liked::before {
    content: "✓";
    z-index: 2;
    position: relative;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.875rem;
}

.explore-list-likes-pill-like-btn:not(.liked)::before {
    display: none;
}

/* Comments pill styling (matching popup) */
.explore-list-comments-pill {
    cursor: pointer;
    transition: all 0.2s ease;
}

.explore-list-comments-pill:hover {
    border-color: var(--gradient-1);
    background: rgba(59, 130, 246, 0.1);
}

.explore-list-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.explore-list-item:hover .explore-list-menu-container {
    opacity: 1;
}

.explore-list-menu-btn {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.explore-list-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.explore-list-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 150px;
}

.explore-list-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.explore-list-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design for Explore List View */
@media (max-width: 768px) {
    .explore-list-item {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .explore-list-image-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .explore-list-menu-container {
        opacity: 1;
    }
    
    .explore-container.list-view {
        padding: 1rem;
    }
}

/* Responsive Design for Profile Uploaded Posts */
@media (max-width: 768px) {
    .profile-uploaded-post {
        flex-direction: column !important;
        gap: 1.5rem;
    }
    
    .profile-post-image-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .profile-post-menu-container {
        opacity: 1;
    }
}

/* Responsive Design for Search and Filters */
@media (max-width: 768px) {
    
    .search-input {
        width: 80%;
    }

    .filter-pills-wrapper {
        padding: 0 0.5rem;
    }

    .filter-popup-content {
        padding: 1.5rem;
    }
}

/* User Cards */
.user-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: var(--card);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--gradient-1);
}

.user-card-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gradient-1);
}

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

.user-card-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.user-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.user-card-username {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.user-card-bio {
    font-size: 0.9rem;
    color: var(--secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-card-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary);
    align-items: center;
}

.user-card-stats span:not(:has-text('•')) {
    color: var(--primary);
}

/* See More Users Button */
.see-more-users-btn {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 1.5px solid var(--gradient-1);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--gradient-1);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
    display: block;
}

.see-more-users-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--gradient-2);
    color: var(--gradient-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Disabled filter pills */
.filter-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive user cards */
@media (max-width: 768px) {
    
    .user-card-avatar {
        width: 100px;
        height: 100px;
    }
    
    .user-card-info {
        align-items: center;
    }
}

