/* Styles specific to souls-listing page */

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    width: min(100%, 400px);
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    padding: 0.8rem 2.5rem 0.8rem 0.8rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--border-radius);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 94, 120, 0.5);
}

.search-bar .clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.search-bar .clear-btn.visible {
    opacity: 1;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
    min-height: 200px;
}

.profiles-grid.loading {
    opacity: 0.3;
}

.profile-card {
    background: linear-gradient(135deg, var(--secondary), rgba(26, 26, 51, 0.95));
    border-radius: var(--border-radius);
    padding: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid rgba(255, 94, 120, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    /* will-change: transform, box-shadow; - removed for performance */
}

.profile-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-card:hover::before {
    opacity: 1 !important;
}

.profile-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-card-link-wrapper:hover {
    text-decoration: none;
    color: inherit;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-card-avatar {
    width: 65px;
    height: 65px;
    min-width: 65px;
    min-height: 65px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    transition: all 0.3s ease;
    transform: translateZ(0);
    /* will-change: transform, border-color, opacity; - removed for performance */
    background-color: var(--secondary);
    display: block;
    opacity: 0.7;
}

.profile-card-avatar.loaded {
    opacity: 1;
}

.profile-card:hover .profile-card-avatar {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Avatar container with online indicator */
.avatar-container {
    position: relative;
    display: inline-block;
}


.profile-card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.profile-card-info .username {
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--text);
    text-decoration: none;
}

.profile-card-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    text-decoration: none;
    margin-top: 0.5rem;
}

.profile-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 94, 120, 0.2);
    margin-top: auto;
}

.profile-card-stats {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
}

.stat-item i {
    color: var(--accent);
    font-size: 0.9rem;
}

.stat-item span {
    font-weight: 600;
}

.profile-card-level {
    padding: 0.4rem 1rem;
    background: linear-gradient(45deg, rgba(255, 94, 120, 0.2), rgba(255, 202, 40, 0.2));
    border: 1px solid rgba(255, 94, 120, 0.4);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.profile-card:hover .profile-card-level {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.message-soul-btn {
    margin: 0 1.5rem 1.5rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.message-soul-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Ensure no text decoration inheritance */
.profile-card * {
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .profiles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .profile-card {
        margin: 0 0.5rem;
    }
    
    .profile-card-header {
        gap: 0.8rem;
    }
    
    .profile-card-avatar {
        width: 55px;
        height: 55px;
        min-width: 55px;
        min-height: 55px;
    }
    
    .profile-card-info h3 {
        font-size: 1.1rem;
    }
    
    .profile-card-stats {
        gap: 1rem;
    }
}

/* Soul status styling - three-tier hierarchy */
.soul-online {
    border-color: rgba(0, 255, 100, 0.6) !important;
    box-shadow: 0 8px 25px rgba(0, 255, 100, 0.15), 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(135deg, var(--secondary), rgba(26, 26, 51, 0.98)) !important;
}

.soul-online .profile-card-avatar {
    border-color: rgba(0, 255, 100, 0.8) !important;
    animation: soulGlowPulse 2s ease-in-out infinite;
}

.soul-online:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 35px rgba(0, 255, 100, 0.25), 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

@keyframes soulGlowPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 255, 100, 0.4);
        border-color: rgba(0, 255, 100, 0.8);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 255, 100, 0.7);
        border-color: rgba(0, 255, 100, 1);
    }
}

.soul-recent {
    border-color: rgba(255, 94, 120, 0.5) !important;
    box-shadow: 0 7px 22px rgba(255, 94, 120, 0.12), 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(135deg, var(--secondary), rgba(26, 26, 51, 0.97)) !important;
}

.soul-recent .profile-card-avatar {
    border-color: rgba(255, 94, 120, 0.7) !important;
}

.soul-recent:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 32px rgba(255, 94, 120, 0.2), 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Removed user sidebar styles - using only active users sidebar for instant messaging */

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    margin: 2rem auto;
    background: rgba(26, 26, 51, 0.8);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 94, 120, 0.3);
    max-width: 400px;
}

.loading-indicator .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 94, 120, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    color: var(--text);
    font-style: italic;
    opacity: 0.8;
}

.error-message {
    background: rgba(255, 68, 68, 0.2);
    color: #ff6b6b;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem auto;
    text-align: center;
    border: 1px solid rgba(255, 68, 68, 0.4);
    max-width: 500px;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text);
    opacity: 0.7;
    font-style: italic;
    font-size: 1.1rem;
} 