/* CS2 Server Status Compact Widget Styles */
.cs2-widget-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box; /* Ensures padding/borders don't cause overflow */
}

.cs2-widget-container * {
    box-sizing: inherit;
}

.cs2-compact-card {
    background: #ffffff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 13px;
    line-height: 1.4;
    width: 100%;
    max-width: 100%; /* Prevents stretching beyond container */
    overflow: hidden;
}

.cs2-card-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3338;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cs2-server-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Link styling for the title */
.cs2-server-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    outline: none;
}

.cs2-server-title a:hover {
    color: #0073aa; /* Typical WordPress link blue, adjust if needed */
    text-decoration: underline;
}

.cs2-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

.cs2-dot.online {
    background-color: #00a32a;
    box-shadow: 0 0 4px rgba(0, 163, 42, 0.4);
}

.cs2-dot.offline {
    background-color: #d63638;
}

.cs2-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}

.cs2-card-row {
    display: flex;
    justify-content: space-between;
    color: #50575e;
    flex-wrap: wrap; /* Allows stacking on extremely small screens */
    gap: 2px;
}

.cs2-card-row strong {
    color: #2c3338;
}

.cs2-ip-row {
    margin-top: 6px;
    font-family: monospace;
    font-size: 11px;
    color: #8c8f94;
    justify-content: center;
    background: #f6f7f7;
    padding: 0;
    border-radius: 3px;
    text-align: center;
    transition: background-color 0.2s ease;
    overflow: hidden;
}

.cs2-ip-row:hover {
    background: #e9eaec;
}

/* Link styling for the IP */
.cs2-ip-row a {
    display: block;
    width: 100%;
    padding: 5px;
    color: inherit;
    text-decoration: none;
    word-break: break-all; /* Ensures long IPs/domains break properly on small screens */
}

.cs2-ip-row a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.cs2-no-servers {
    font-size: 13px;
    color: #8c8f94;
    font-style: italic;
}

/* Responsive adjustments for very small sidebars/screens */
@media screen and (max-width: 300px) {
    .cs2-compact-card {
        font-size: 12px;
        padding: 10px;
    }
    
    .cs2-ip-row {
        font-size: 10px;
    }
}