/* ==========================================================================
   Valorant Profile Widget (1:1 Reference from zeluq.me)
   - Game tag sits BEHIND the card (z-index: 1) with prominent width & height
   - Card sits in FRONT (z-index: 2) without overlapping adjacent bricks
   ========================================================================== */

@font-face {
    font-family: 'ValorantFont';
    src: url('../assets/fonts/Valorant Font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#valorant-widget-brick {
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.valorant-widget-container {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-top: 18px;
    /* Reserves clear dedicated vertical space for the full tag */
}

/* 1. Overlapping Game Tag - Wider, taller, fully readable above the card */
.game-tag {
    position: absolute;
    top: 0;
    left: 18px;
    z-index: 1;
    /* BEHIND the card */
    min-width: 140px;
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3px 20px 0 23px;
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0% 50%);
    user-select: none;
    pointer-events: none;
    box-sizing: border-box;
}

.tag-valorant {
    top: -4px;
    width: 90%;
    background-image: url('../assets/valorant.jpg');
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    font-family: 'ValorantFont', sans-serif;
}

/* 2. Main Glass Profile Card - Sits in FRONT */
.valorant-profile-card {
    position: relative;
    z-index: 2;
    /* IN FRONT of game-tag */
    background-color: rgba(17, 25, 40, 0.88);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(255, 70, 85, 0.08);
    padding: 8px 14px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    height: calc(100% - 18px);
    box-sizing: border-box;
    overflow: hidden;
    transition: background-image 0.4s ease, border-color 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
}

.valorant-profile-card:hover {
    border-color: rgba(255, 70, 85, 0.4);
}

/* Top Row: Avatar & Player Info */
.v-profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.v-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.v-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(156, 163, 175, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    background-color: #1f2937;
    display: block;
}

.v-player-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.v-name-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v-player-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    margin-top: 10px;
}

.v-player-tag {
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
}

.v-player-title {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Bottom Row: Current Rank & Peak Rank with Divider */
.v-ranks-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

.v-rank-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.v-rank-item:first-child {
    flex: 1 1 auto;
}

.v-rank-item:last-child {
    flex: 0 0 auto;
}

.v-rank-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.v-rank-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.v-rank-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.v-rank-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.v-rank-value .text-yellow-400,
.v-rank-value span {
    color: #facc15;
    font-weight: 700;
}

.v-peak-season {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}