/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* BODY */
body {
    background: #0d0f14;
    color: #e5e7eb;
    font-family: Inter, Arial, sans-serif;
}

/* HERO */
.hero {
    padding: 40px 30px 30px;
    background: linear-gradient(180deg, #151821, #0d0f14);
    border-bottom: 1px solid #232632;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
}

.hero p {
    color: #9ca3af;
    margin-top: 8px;
    margin-bottom: 25px;
}

/* SEARCH */
.search-box {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #2c2f3a;
    background: #0f1117;
    color: white;
    font-size: 14px;
}

/* SERVER LIST */
.server-list {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
    display: grid;
    gap: 14px;
}

/* SERVER CARD */
.server-row {
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: center;

    background: #161922;
    border: 1px solid #262a36;
    border-radius: 8px;
    padding: 16px;

    transition: 0.2s;
}

.server-row:hover {
    border-color: #ff8a00;
    background: #1a1f2b;
}

/* ICON */
.server-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff8a00, #ff5e00);
    color: #111;
    font-weight: 900;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

/* FIX LOGO */
.server-icon.has-logo {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none;
}

/* LOGO */
.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* INFO */
.server-info h2 {
    font-size: 18px;
    margin-bottom: 6px;

    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* TAGS */
.tags {
    display: flex;
    gap: 6px;
}

.tags span {
    background: #222632;
    border: 1px solid #2f3443;
    padding: 4px 7px;
    font-size: 11px;
    border-radius: 4px;
    color: #9ca3af;
}

/* STATS */
.server-stats {
    display: flex;
    gap: 25px;
    text-align: right;
}

.server-stats small {
    display: block;
    font-size: 11px;
    color: #6b7280;
}

.server-stats strong {
    font-size: 18px;
    color: #ff8a00;
}

/* PLAYER BAR */
.server-row::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #ff8a00, #ff5e00);
    opacity: 0.25;
}

/* BOT LABELS */
.bot-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bot-red {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ff6b6b;
}

.bot-green {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #4ade80;
}

/* ADMIN */
.form-box {
    max-width: 500px;
    margin: 40px auto;
    background: #161922;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #262a36;
}

input,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #2c2f3a;
    background: #0f1117;
    color: white;
}

button {
    width: 100%;
    padding: 12px;
    background: #ff8a00;
    color: #111;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: #ffa033;
}

.success {
    text-align: center;
    color: #22c55e;
    font-weight: bold;
}