/* Discord Profile Card 1:1 Recreation */
.discord-card {
    background-color: #1e1f22;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #f2f3f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* Animated Discord Profile Effect Overlay (Visible strictly on hover) */
.discord-profile-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.discord-card:hover .discord-profile-effect {
    opacity: 1;
    visibility: visible;
}

.discord-profile-effect-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Red Top Banner */
.discord-banner {
    width: 100%;
    height: 62px;
    background: #9b1414;
    flex-shrink: 0;
    position: relative;
}

/* Card Body */
.discord-body {
    padding: 0 16px 14px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #1a1b1e;
    background-image: url('https://cdn.discordapp.com/assets/collectibles/nameplates/dark_roses/1526655777350221995/static.png');
    background-size: cover;
    background-position: right bottom;
    background-repeat: no-repeat;
    flex-grow: 1;
}

/* Avatar + Status Bubble Row */
.discord-avatar-row {
    display: flex;
    align-items: flex-end;
    margin-top: -34px;
    margin-bottom: 2px;
    gap: 12px;
    position: relative;
    z-index: 5;
}

/* Avatar Container with Cat Ears Decoration */
.discord-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #111214;
    border: 5px solid #232428;
    box-sizing: border-box;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Centered Discord Avatar Decoration */
.discord-avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    pointer-events: none;
    z-index: 4;
}

/* Green Status Dot */
.discord-status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #23a55a;
    border: 4px solid #232428;
    box-sizing: border-box;
    z-index: 5;
}

.discord-status-dot.status-idle { background-color: #f0b232; }
.discord-status-dot.status-dnd { background-color: #f23f43; }
.discord-status-dot.status-offline { background-color: #80848e; }

/* Status Thought Bubble */
.discord-speech-bubble {
    background-color: #2b2d31;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.3;
    color: #dbdee1;
    max-width: 260px;
    position: relative;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Thought Bubble Connector Dots */
.discord-speech-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #2b2d31;
}

.discord-speech-bubble::after {
    content: '';
    position: absolute;
    left: -14px;
    bottom: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #2b2d31;
}

/* Profile Info Section */
.discord-profile-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.discord-display-name {
    font-size: 18px;
    font-weight: 700;
    color: #f2f3f5;
    margin: 0;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 4px;
}

.discord-sub-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
}

.discord-username-handle {
    font-size: 12.5px;
    color: #949ba4;
    font-weight: 500;
}

/* Primary Guild / Clan Pill Badge */
.discord-clan-badge {
    background-color: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #f2f3f5;
    cursor: default;
    transition: background-color 0.15s ease;
}

.discord-clan-badge:hover {
    background-color: #2b2d31;
}

.discord-clan-icon {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

.discord-clan-arrow {
    font-size: 9px;
    color: #949ba4;
    margin-left: 1px;
}

/* Badges Row */
.discord-badges-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.discord-badge-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.discord-badge-icon:hover {
    transform: scale(1.15);
}

.discord-badge-icon svg, .discord-badge-icon img {
    width: 100%;
    height: 100%;
}