/* Player Attributes Styles */
/* Nested breakdown shown in attribute modal (equipment base / enchant / etc.) */
ul.attribute-delta-by-source {
    margin: 0.25rem 0 0.35rem 1rem;
    padding: 0;
    list-style: disc;
    font-size: 0.9em;
    opacity: 0.92;
}

.attribute-controls {
    display: flex;
    justify-content: space-between;
    margin: 10px auto;
    width: 90%;
    max-width: 400px;
    gap: 10px;
}

.control-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom right, #a08040, #e0c080, #a08040);
    border: 2px solid #6a5a4a;
    border-radius: 5px;
    color: #333333;
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    box-shadow: 0 0 8px rgba(0,0,0,0.6), inset 0 0 3px rgba(255,255,255,0.4);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    font-family: var(--player-font, 'Cinzel Decorative'), cursive, Arial, sans-serif;
}

.control-button:hover {
    background: linear-gradient(to bottom right, #b09050, #f0d090, #b09050);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0,0,0,0.8), inset 0 0 5px rgba(255,255,255,0.6);
}

.control-button:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(0,0,0,0.5), inset 0 0 2px rgba(255,255,255,0.3);
}

.player-attributes-box {
    background: rgba(30, 30, 30, 0.9);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #4a4a4a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #6a5a4a;
}

.attribute-item:last-child {
    border-bottom: none;
}

.attribute-column-left {
    flex: 1;
    text-align: left;
}

.attribute-column-middle {
    flex: 1;
    text-align: center;
}

.attribute-column-right {
    flex: 1;
    text-align: right;
}

.attribute-label {
    font-family: var(--player-font, 'Cinzel Decorative'), cursive, Arial, sans-serif;
    font-weight: bold;
    color: #e0e0e0;
}

.attribute-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.attribute-details {
    display: flex;
    flex-direction: column; /* Changed to column to stack items vertically */
    align-items: flex-start; /* Align items to the start for left alignment */
    margin-top: 8px;
    font-size: 0.9em;
    line-height: 1.35;
    color: #b0b0b0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 190px; /* Increased max-height to accommodate roomier detail rows */
    overflow: hidden;
    opacity: 1;
    padding: 6px 10px 4px 14px; /* Add some padding for better visual separation */
    gap: 6px;
}

.attribute-detail-row {
    width: 100%; /* Ensure each row takes full width */
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: space-between; /* Space out items within the row */
    align-items: center;
    text-align: left; /* Align text to the left */
    margin-bottom: 0;
}

.attribute-detail-row:last-child {
    margin-bottom: 0; /* No margin for the last row */
}

.attribute-total-value {
    font-weight: bold; /* Make it bold to stand out */
    color: #e0c080; /* A slightly different golden color for emphasis */
    margin-left: auto; /* Push to the right */
}

.attribute-base-value {
    color: #cccccc; /* Light gray for Base */
}

.attribute-bonus-value,
.attribute-buff-value,
.attribute-debuff-value,
.attribute-total-value {
    cursor: pointer; /* Indicate clickable elements */
}

.attribute-bonus-value {
    color: #00ff00; /* Green for Bon */
}

.attribute-buff-value {
    color: #90ee90; /* Light green for Buff */
}

.attribute-debuff-value {
    color: #ff0000; /* Red for Debuff */
}

.attribute-details.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}
