/* Clean Profile System CSS for Forums */

/* Remove all the complex frame stuff - keep it simple */
.post-avatar-container {
    display: none; /* Not using this anymore */
}

/* Simple username link styling */
.username-link {
    color: #ffd700 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: color 0.3s ease;
}

.username-link:hover {
    color: #ff6b35 !important;
    text-decoration: none !important;
}

/* Keep the existing post-author-details structure clean */
.post-author-details {
    flex: 1;
    min-width: 0;
}

.post-author-details h6 {
    margin-bottom: 4px !important;
    font-size: 1rem !important;
}

/* Clean title styling */
.post-author-title {
    margin-bottom: 0 !important;
    font-size: 0.85rem !important;
}

/* Title line - display titles in one line */
.title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    position: relative;
}

/* Collapsible badges container */
.collapsible-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Toggle stats button - arrow style */
.toggle-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: #ffd700;
    background-color: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    user-select: none;
    margin-right:4px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
    animation: bounce-arrow 2s infinite;
    flex-shrink: 0;
    vertical-align: middle;
}

.toggle-stats:hover {
    background-color: rgba(255, 215, 0, 0.25);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.toggle-stats i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 0.8rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.toggle-stats i.rotated {
    transform: rotate(90deg);
    animation: arrow-rotate 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Arrow rotation animation */
@keyframes arrow-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(45deg) scale(1.3);
    }
    100% {
        transform: rotate(90deg) scale(1);
    }
}

/* Bouncy animation for arrow */
@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Collapsible stats container */
.collapsible-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.collapsible-stats.show {
    opacity: 1;
    max-height: 50px;
}

/* Individual stat items with bubble bounce animation */
.collapsible-stats .user-stat,
.collapsible-stats .user-frame,
.collapsible-stats .user-tier {
    transform: translateX(-20px) scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.collapsible-stats.show .user-stat,
.collapsible-stats.show .user-frame,
.collapsible-stats.show .user-tier {
    transform: translateX(0) scale(1);
    opacity: 1;
    animation: bubble-bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Staggered animation delays */
.collapsible-stats.show .user-stat:nth-child(1),
.collapsible-stats.show .user-frame:nth-child(1),
.collapsible-stats.show .user-tier:nth-child(1) {
    animation-delay: 0.1s;
}

.collapsible-stats.show .user-stat:nth-child(2),
.collapsible-stats.show .user-frame:nth-child(2),
.collapsible-stats.show .user-tier:nth-child(2) {
    animation-delay: 0.2s;
}

.collapsible-stats.show .user-stat:nth-child(3),
.collapsible-stats.show .user-frame:nth-child(3),
.collapsible-stats.show .user-tier:nth-child(3) {
    animation-delay: 0.3s;
}

.collapsible-stats.show .user-stat:nth-child(4),
.collapsible-stats.show .user-frame:nth-child(4),
.collapsible-stats.show .user-tier:nth-child(4) {
    animation-delay: 0.4s;
}

.collapsible-stats.show .user-stat:nth-child(5),
.collapsible-stats.show .user-frame:nth-child(5),
.collapsible-stats.show .user-tier:nth-child(5) {
    animation-delay: 0.5s;
}

.collapsible-stats.show .user-stat:nth-child(6),
.collapsible-stats.show .user-frame:nth-child(6),
.collapsible-stats.show .user-tier:nth-child(6) {
    animation-delay: 0.6s;
}


/* Stats header */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.stats-title {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
}

.close-stats {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.close-stats:hover {
    background-color: rgba(108, 117, 125, 0.2);
    color: #495057;
}

/* Stats sections */
.stats-section {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.stats-section strong {
    color: #ffd700;
    font-size: 0.8rem;
    margin-right: 8px;
}

/* User badges, frames, tiers, and stats */
.user-badge,
.user-frame,
.user-tier,
.user-stat {
    display: inline-block;
    margin: 2px 6px 2px 0;
    padding: 3px 8px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #495057;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Inline user badges for usernames */
.user-badge-inline {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.user-badge-inline:hover {
    transform: scale(1.1);
}

.user-badge-inline .badge-image {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.2s ease;
}

.user-badge-inline .badge-image:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.user-badge-inline i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: filter 0.2s ease;
}

.user-badge-inline:hover i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.user-badge i,
.user-frame i,
.user-tier i,
.user-stat i {
    margin-right: 4px;
    font-size: 0.7rem;
}

/* Dark theme adjustments for expanded stats */
.additional-stats-right .user-badge,
.additional-stats-right .user-frame,
.additional-stats-right .user-tier,
.additional-stats-right .user-stat {
    background-color: rgba(255, 215, 0, 0.2);
    color: #ffffff;
    border-color: rgba(255, 215, 0, 0.5);
}

.additional-stats-right .user-badge i,
.additional-stats-right .user-frame i,
.additional-stats-right .user-tier i,
.additional-stats-right .user-stat i {
    color: #ffd700;
}

/* No stats message */
.no-stats-message {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.no-stats-message i {
    margin-right: 8px;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .stats-expandable-container {
        flex-direction: column;
    }
    
    .additional-stats-right {
        position: static;
        margin-left: 0;
        margin-top: 12px;
        min-width: auto;
        width: 100%;
    }
    
    .additional-stats-right::before,
    .additional-stats-right::after {
        display: none;
    }
    
    .stats-section {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
}

/* Avatar Status Indicator Container */
.avatar-status-container {
    position: relative;
    display: inline-block;
}

/* Online/Offline Status Indicators - Animated Dots on Avatar */
.avatar-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-sizing: border-box;
    z-index: 10;
}

.avatar-status-dot.online {
    background-color: #10b981;
    animation: pulse-online 2s infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.avatar-status-dot.offline {
    background-color: #6b7280;
    animation: pulse-offline 3s infinite;
}

/* Online pulse animation - faster, brighter */
@keyframes pulse-online {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    }
}

/* Offline pulse animation - slower, subtle */
@keyframes pulse-offline {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Verification Mark */
.verification-mark {
    display: inline-flex;
    align-items: center;
    margin-left: 0.15rem;
    color: #f0b81d;
    font-size: 0.9rem;
    position: relative;
    top: -1px;
}

.verification-mark i {
    filter: drop-shadow(0 0 2px rgba(29, 155, 240, 0.3));
}

/* Dynamic User Tier Badge */
.user-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-tier-badge i {
    font-size: 0.7rem;
}

/* Clean up any remaining profile elements */
.profile-frame-border,
.profile-frame-glow,
.user-tier,
.user-badge,
.post-author-tier,
.post-author-badges,
.premium-star {
    display: none !important; /* Hide all the complex stuff */
}

/* Keep the existing elite-title and tier-title from the original forum CSS */