/* Server Status Styles */
.info-item.online {
    color: #4CAF50;
}

.info-item.offline {
    color: #f44336;
}

.info-item.online i {
    color: #4CAF50;
}

.info-item.offline i {
    color: #f44336;
}

/* Live Indicator */
.live-indicator {
    color: #4CAF50;
    font-size: 0.8em;
    margin-left: 4px;
    animation: livePulse 2s infinite;
    display: inline-block;
}

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* New Server Information Layout */
.server-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0099ff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(0, 153, 255, 0.3);
}

.server-icon i {
    font-size: 24px;
    color: white;
}

.server-header h3 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.server-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Server Stats Grid */
.server-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-icon.online {
    background: rgba(76, 175, 80, 0.2);
}

.stat-icon.online i {
    color: #4CAF50;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

/* Server Actions */
.server-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.action-button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.action-button.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.action-button.primary:hover {
    background: linear-gradient(135deg, #45a049, #388e3c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.action-button.secondary {
    background: linear-gradient(135deg, #7289da, #5865f2);
    color: white;
    box-shadow: 0 4px 12px rgba(114, 137, 218, 0.3);
}

.action-button.secondary:hover {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 137, 218, 0.4);
}

.action-button:active {
    transform: translateY(0);
}

/* Server Footer */
.server-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.server-version,
.server-type {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
}

.server-version i,
.server-type i {
    font-size: 12px;
}

/* CTA Buttons (Legacy) */
.cta-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cta-button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #0099ff, #0066cc);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #0088ee, #0055bb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 153, 255, 0.4);
}

.cta-button.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

.cta-button.secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Button success state for copy functionality */
.cta-button.copy-success {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.cta-button.copy-success i {
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Server Info Card Styles */
.form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-card h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.server-info {
    margin-bottom: 20px;
}

.server-info .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.server-info .info-item:last-child {
    border-bottom: none;
}

.server-info .info-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.server-info .info-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.status-indicator.offline {
    background-color: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hero Section Player Count */
.hero .player-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .player-count .count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
}

.hero .player-count .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Server Info Updates */
.server-info .info-item {
    transition: all 0.3s ease;
}

.server-info .info-item:hover {
    transform: translateY(-2px);
}

/* Loading Animation for Server Status */
.server-status-loading {
    opacity: 0.7;
    pointer-events: none;
}

.server-status-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Copy Button Styles */
.btn.copy-success {
    background: linear-gradient(45deg, #4CAF50, #45a049) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.4);
}

.btn.copy-success i {
    animation: checkmark 0.5s ease-in-out;
}

/* Button hover effects for copy functionality */
.btn-primary:hover,
.btn-secondary:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 153, 255, 0.4);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 153, 255, 0.3);
}

/* Copy feedback animation */
.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Player stats update animation */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number.updating {
    animation: numberUpdate 0.5s ease-in-out;
}

@keyframes numberUpdate {
    0% {
        transform: scale(1);
        color: inherit;
    }
    50% {
        transform: scale(1.1);
        color: #4CAF50;
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .server-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .server-actions {
        flex-direction: column;
    }
    
    .server-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .action-button {
        padding: 12px 16px;
        font-size: 13px;
    }
} 