/* Interaction Buttons and Content Boxes Styles */

/* Variantas A: horizontalus scroll + kraštų fade */
.interaction-buttons-scroll {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 0 auto 5px auto;
}

.interaction-buttons-scroll::before,
.interaction-buttons-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.interaction-buttons-scroll::before {
    left: 0;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.92), transparent);
}

.interaction-buttons-scroll::after {
    right: 0;
    background: linear-gradient(to left, rgba(18, 18, 18, 0.92), transparent);
}

.interaction-buttons-scroll.can-scroll-left::before,
.interaction-buttons-scroll.can-scroll-right::after {
    opacity: 1;
}

.interaction-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0;
    width: 100%;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    padding: 4px 12px;
    scrollbar-width: thin;
    scrollbar-color: #6a5a4a rgba(30, 30, 30, 0.5);
}

.interaction-buttons-container::-webkit-scrollbar {
    height: 5px;
}

.interaction-buttons-container::-webkit-scrollbar-thumb {
    background: #6a5a4a;
    border-radius: 4px;
}

/* Kai netelpa — slinkimas nuo kairės; kai telpa — centras (ypač PC) */
.interaction-buttons-container.is-scrollable {
    justify-content: flex-start;
}

.interaction-button {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0; /* Remove inherited top margin */
    background: #4a3a2a;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #6a5a4a;
    box-shadow: 0 3px 5px rgba(0,0,0,0.4);
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    font-family: var(--player-font, 'Cinzel Decorative'), cursive, Arial, sans-serif;
    cursor: pointer;
    text-align: center;
}

.interaction-button:hover {
    background: #6a4a3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0,0,0,0.6);
}

.interaction-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.4);
}

.interaction-content-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: 600px;
    text-align: center;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 500px;
    overflow: hidden;
    opacity: 1;
}

.interaction-content-box.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
}

.interaction-content-box h3 {
    color: #c0a060;
    margin-bottom: 15px;
}

/* Monster List Styles */
.monster-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.monster-item {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border: 1px solid #6a5a4a;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.monster-item .monster-icon {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #c0a060;
    margin-right: 15px;
    flex-shrink: 0;
}

.monster-item .monster-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.monster-item .monster-name {
    font-weight: bold;
    color: #c0a060;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.monster-item .monster-quantity {
    color: #e0e0e0;
    font-size: 0.9em;
    margin-top: 5px;
}

.fight-button {
    display: inline-block;
    width: auto;
    max-width: none;
    padding: 8px 15px;
    margin: 0;
    font-size: 0.9em;
}

.button-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* Interaction Glow Effect */
.interaction-button.glow {
    box-shadow: 0 0 15px rgba(192, 160, 96, 0.8);
    border: 1px solid #c0a060;
    background: #5a4a3a; /* Slightly lighter background when glowing */
}

/* Online and Area Players Count Styles */
.online-and-area-players-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.9);
    padding: 10px 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: 600px;
    font-family: var(--player-font, 'Cinzel Decorative'), cursive, Arial, sans-serif;
    font-size: 1.1em;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.online-players-display,
.area-players-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-label,
.area-label {
    font-weight: bold;
    color: #c0a060;
}

.online-count,
.area-count {
    color: #e0e0e0;
    font-weight: bold;
}

.monsters-in-area h3 {
    color: #c0a060;
    margin-bottom: 15px;
}

.monster-item span {
    color: #e0e0e0;
    font-size: 1em;
}
