/* 
  Latestor Premium Cosmetics Engine
  Core Rendering Styles
*/

.cosmetic-profile-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 480px;
    background-color: var(--lt-card-bg, #232428);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* =======================================
   BANNER
======================================= */


/* =======================================
   AVATAR WRAPPER & DECORATION
======================================= */
.cosmetic-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.cosmetic-avatar-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #2b2d31;
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cosmetic-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 125%;
    height: 125%;
    z-index: 15;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cosmetic-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.cosmetic-frame img,
.cosmetic-frame svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =======================================
   USER INFO & PROFILE EFFECT
======================================= */
.cosmetic-user-info {
    position: absolute;
    top: 140px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background-color: var(--lt-info-bg, #111214);
    border-radius: 8px;
    padding: 16px;
    overflow: hidden;
    z-index: 1;
}

/* Particle / Effect Container */
.cosmetic-profile-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
}

.cosmetic-profile-effect svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cosmetic-content {
    position: relative;
    z-index: 5;
    color: #F2F3F5;
}

/* Base Badge Style */
.cosmetic-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Base Typography */
.cosmetic-name {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 2px;
}

.cosmetic-username {
    font-size: 14px;
    color: #B5BAC1;
    margin: 0 0 12px;
}

.cosmetic-desc {
    font-size: 13px;
    color: #DBDEE1;
    line-height: 1.5;
}

/* =======================================
   GLOBAL REUSABLE KEYFRAMES
======================================= */
@keyframes cos-spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes cos-spin-rev {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes cos-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes cos-float-up {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-150px);
        opacity: 0;
    }
}

@keyframes cos-float-down {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(150px);
        opacity: 0;
    }
}

@keyframes cos-sway {
    0% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(10deg);
    }
}

/* Override header icon hover for decorated cards */
.room-card[class*="theme-"] .room-card-header-icon:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}