@import url('https://googleapis.com');

body {
    background: transparent;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.server-card {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Блок с картой */
.server-map-bg {
    height: 160px; /* Увеличенная высота окна карты */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    box-sizing: border-box;
    background-color: #1e293b;
}

.server-map-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* Статус сервера */
.server-status-badge {
    position: relative;
    z-index: 2;
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
}

.server-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.server-status-badge.offline {
    background: rgba(239, 68, 68, 0.95);
}
.offline-bg { background-color: #334155; }

.map-name {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Нижний блок содержимого */
.server-footer {
    background: #ffffff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.server-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 2px;
}

/* Информация об игроках */
.players-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 13px;
}

.players-info b {
    color: #0f172a;
    font-size: 13px;
}

/* Прогресс-бар */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-top: -2px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
}

/* Блок IP */
.server-ip-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 6px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    gap: 6px;
}

.server-ip {
    color: #334155;
    font-weight: 700;
    font-size: 11.5px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
}

/* Кнопка копирования */
.copy-btn {
    background: #64748b;
    color: #fff;
    border: none;
    padding: 5px 8px;
    font-size: 9.5px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Кнопка подключения */
.btn-connect {
    display: block;
    text-align: center;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.error-msg {
    font-size: 12px;
    color: #ef4444;
}
