/* Server Detail Page Styles */

/* Server info list */
.server-info-list dt,
.server-info-list dd {
    margin-bottom: 0;
}

/* Copy button and feedback */
.copy-btn {
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 16px;
}

.copy-btn:hover {
    opacity: 0.8;
}

/* Connection instructions section */
.connection-instructions {
    border: 1px solid rgba(255, 114, 0, 0.2);
}

.connection-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Connection Card Styles */
.connection-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.connection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.connection-card.steam-theme {
    background: rgba(30, 58, 138, 0.5);
    border: 1px solid #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.connection-card.epic-theme {
    background: rgba(124, 58, 237, 0.5);
    border: 1px solid #a855f7;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.connection-card h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.connection-card small {
    color: rgba(255, 255, 255, 0.8);
}

.connection-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Connection Icon Styles */
.connection-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.steam-theme .connection-icon {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.epic-theme .connection-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

/* Step Number Styles */
.step-number {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

/* Steps Container */
.steps-container .d-flex small {
    color: rgba(255, 255, 255, 0.9);
}

/* Connection Button Styles */
.connection-button {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: white;
}

.connection-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.steam-theme .connection-button {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.steam-theme .connection-button:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.epic-theme .connection-button {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.epic-theme .connection-button:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}

.epic-theme .connection-button:disabled {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    opacity: 0.7;
    cursor: default;
    transform: none;
}

/* Alert Styles for Connection Info */
.connection-alert {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.connection-alert small {
    margin: 0;
    color: #93c5fd;
}

.connection-code {
    background: rgba(255, 114, 0, 0.15);
    color: #ff7200;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

/* Keyboard key styling */
kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.85rem;
}

/* Chart container */
#playersChart,
#rankChart {
    background: transparent;
}

/* Server query list scrollbar */
.highlight_block ul::-webkit-scrollbar {
    width: 6px;
}

.highlight_block ul::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.highlight_block ul::-webkit-scrollbar-thumb {
    background: rgba(255, 114, 0, 0.4);
    border-radius: 3px;
}

.highlight_block ul::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 114, 0, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .connection-card {
        padding: 1rem;
    }

    .connection-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 10px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}
