/* 
 * text-settings.css
 * Dedicated styling for all text elements and icons
 */

/* Font declaration */
@font-face {
    font-family: 'ValheimFont';
    src: url('../assets/font/Norse.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Global text settings */
body {
    font-family: 'ValheimFont', Arial, sans-serif;
    color: #fff;
}

/* 
 * SIMPLE TEXT SHADOW - replaces the double-stroke effect
 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 
 * SERVER TYPE TEXT (VANILLA / HARDCORE)
 */
.server-type-container {
    /* Container for the server type text */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    z-index: 6;
    background: none; /* Remove the dark background */
}

.server-type {
    font-size: 36px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 7; /* Ensure text is above all overlays */
    position: relative;
}

/* 
 * SERVER STATUS CONTAINER
 */
.status-header-container {
    width: 100%;
    text-align: center;
    padding: 5px 0;
}

.status-header {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 
 * ICONS AND STATUS TEXT
 */
/* Status Info Container */
.status-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 6; /* Above the gradient and pattern */
    height: 40px; /* Fixed height for status bar */
    padding: 0 10px; /* Horizontal padding */
}

/* All status items */
.status-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Player count item */
.players {
    width: 33%;
    justify-content: flex-start; /* Left aligned */
    min-width: fit-content; /* Ensure it doesn't shrink too much */
}

/* Connection item */
.connection {
    width: 33%;
    justify-content: center; /* Center aligned */
    position: relative;
    min-width: fit-content; /* Ensure it doesn't shrink too much */
}

/* Game mode item */
.game-mode {
    width: 33%;
    justify-content: flex-end; /* Right aligned */
    min-width: fit-content; /* Ensure it doesn't shrink too much */
}

/* Icon containers */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    margin-right: 5px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Icons */
.icon {
    height: 20px;
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

/* Text styling for all status text */
.status-text, .player-count {
    font-size: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap; /* Prevent text wrapping */
}

/* Player count specific */
.player-count {
    font-weight: bold;
}

/* Online status color */
.online {
    color: #0f0;
}