/* Player Info and Stats Styles */
.player-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.9);
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    width: fit-content;
    min-width: 280px;
    margin-left: auto;
    margin-right: auto;
    gap: 5px;
}

.player-info-bar .player-level-display {
    flex-grow: 1;
    justify-content: center;
    min-width: unset;
}

.player-info-right-placeholder {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin: 0 8px;
}

.player-talent-button {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    padding: 0 !important;
    margin: 0 4px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    background: #2a2a2a !important;
    border: 1px solid #c0a060 !important;
    color: #c0a060 !important;
    text-decoration: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    font-size: 0.9em;
    line-height: 1;
}

.player-talent-button:hover {
    background: #4a3a2a !important;
    color: #fff !important;
}

.hp-mp-bar-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(30, 30, 30, 0.9);
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    margin-bottom: 20px;
    width: fit-content;
    min-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.player-info-bar .player-icon {
    margin: 0 8px;
}

.player-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e0e0e0;
    font-size: 0.9em;
    min-width: 120px;
}

.player-stat:first-child {
    justify-content: flex-start;
}

.player-stat:last-child {
    justify-content: flex-end;
}

/* CD + perejimo kaina: vienas prijungtas blokas (bendras rėmelis) */
.player-stat-move-cd {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    gap: 0;
}

.player-stat-move-cd .move-cd-combo {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #6a5a4a;
    border-radius: 3px;
    overflow: hidden;
    box-sizing: border-box;
}

.player-stat-move-cd .stat-bar.cooldown-bar {
    width: 100%;
    flex-shrink: 0;
    border: none;
    border-radius: 0;
}

.player-stat-move-cd .move-cost-bar {
    width: 100%;
    margin-top: 0;
}

.player-stat-move-cd .move-cost-track {
    border: none;
    border-radius: 0;
    border-top: 1px solid rgba(58, 50, 42, 0.95);
}

.player-stat-move-cd:last-child {
    justify-content: flex-start;
}

.stat-label {
    font-weight: bold;
    color: #c0a060;
}

.stat-bar {
    flex-grow: 1;
    height: 12px;
    background-color: #2a2a2a;
    border: 1px solid #6a5a4a;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.stat-fill {
    height: 100%;
    background-color: #c0a060;
    transition: transform 0.5s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: left;
    transform: scaleX(1);
    z-index: 1;
}

.cooldown-bar .stat-fill {
    height: 100%;
    width: 100%;
    background-color: #c0a060;
    transition: transform 0.1s linear;
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: right;
    transform: scaleX(1);
    z-index: 1;
}

.cooldown-bar.ready {
    background-color: #60a030;
    transition: background-color 0.3s ease;
}

/* Perejimo bazė (pilkas 100%) + greičio nuolaida (šviesus sluoksnis), tik informacijai */
.move-cost-bar {
    width: 100%;
    margin-top: 4px;
}

.move-cost-track {
    position: relative;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(80, 72, 60, 0.9);
    background: #1a1a1a;
}

.move-cost-base {
    position: absolute;
    inset: 0;
    background: #4a4a4a;
    border-radius: 1px;
}

.move-cost-speed-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(220, 200, 150, 0.95), rgba(180, 165, 120, 0.88));
    border-radius: 1px;
    pointer-events: none;
    transition: width 0.25s ease-out;
}

.health-bar .stat-fill {
    background-color: #a03030;
}

.mana-bar .stat-fill {
    background-color: #3060a0;
}

.exp-bar {
    background-image: linear-gradient(to right, transparent 9%, rgba(255, 255, 255, 0.2) 10%, transparent 10%, transparent 19%, rgba(255, 255, 255, 0.2) 20%, transparent 20%, transparent 29%, rgba(255, 255, 255, 0.2) 30%, transparent 30%, transparent 39%, rgba(255, 255, 255, 0.2) 40%, transparent 40%, transparent 49%, rgba(255, 255, 255, 0.2) 50%, transparent 50%, transparent 59%, rgba(255, 255, 255, 0.2) 60%, transparent 60%, transparent 69%, rgba(255, 255, 255, 0.2) 70%, transparent 70%, transparent 79%, rgba(255, 255, 255, 0.2) 80%, transparent 80%, transparent 89%, rgba(255, 255, 255, 0.2) 90%, transparent 90%, transparent 99%);
    background-size: 100% 100%;
    background-color: #2a2a2a;
}

.exp-bar .stat-fill {
    background-color: #60a030;
}

.stat-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.8em;
    text-shadow: -1px -1px 0 #000,  
                  1px -1px 0 #000,
                 -1px 1px 0 #000,
                  1px 1px 0 #000;
    z-index: 2;
    white-space: nowrap;
    font-family: var(--player-font, Arial, sans-serif);
}

.regen-timer-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 5px;
    color: #c0a060;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow: hidden;
}

.regen-timer-overlay .regen-fill {
    height: 100%;
    width: 100%;
    background-color: rgba(192, 160, 96, 0.3);
    transition: transform 0.1s linear;
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: right;
    transform: scaleX(1);
    z-index: -1;
}

.regen-timer-overlay.visible {
    opacity: 1;
}

.player-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #c0a060;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
    margin: 0 8px;
}

.player-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-stats-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
}

.player-race-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    position: absolute;
    right: 50%;
    margin-right: 80px;
}

.player-gender-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: absolute;
    left: 50%;
    margin-left: 80px;
}

.player-race-group .player-race-label,
.player-gender-group .player-gender-label {
    margin-bottom: 5px;
}

.player-stats-detail .player-level-circle {
    position: relative;
    margin: 0;
}

.player-level-circle {
    width: 70px;
    height: 70px;
    background-color: #2a2a2a;
    border: 2px solid #c0a060;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 8px rgba(0,0,0,0.7);
    flex-shrink: 0;
}

.player-level-circle .level-text {
    font-family: var(--player-font, 'Cinzel Decorative'), cursive, Arial, sans-serif;
    color: #c0a060;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.player-exp-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(30, 30, 30, 0.9);
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    margin-bottom: 5px;
    width: fit-content;
    min-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.player-exp-bar-container .player-stat {
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.player-exp-bar-container .stat-bar {
    flex-grow: 1;
    width: auto;
    height: 20px;
}

.player-exp-bar-container .stat-text {
    font-size: 1em;
    line-height: 20px;
}

.player-hp-mp-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(30, 30, 30, 0.9);
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-top: 5px;
    margin-bottom: 20px;
    width: fit-content;
    min-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.player-hp-mp-bar-container .player-stat {
    width: 48%;
    max-width: 250px;
}

.player-hp-mp-bar-container .player-stat:first-child {
    justify-content: flex-start;
}

.player-hp-mp-bar-container .player-stat:last-child {
    justify-content: flex-end;
}

.player-hp-mp-bar-container .stat-bar {
    flex-grow: 1;
    width: auto;
    height: 20px;
}

.player-hp-mp-bar-container .stat-text {
    font-size: 1em;
    line-height: 20px;
}

.player-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.player-char-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c0a060;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

.player-name-id-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.player-name-label {
    color: #e0e0e0;
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: bold;
}

.player-name-value {
    font-family: var(--player-font, 'Cinzel Decorative'), cursive, Arial, sans-serif;
    font-size: 1.3em;
    color: #c0a060;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.player-id-display {
    display: block;
    color: #b0b0b0;
    font-size: 0.9em;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
