/* 服务器状态监控中心独立样式 */
/* 避免与主样式文件冲突，使用命名空间前缀 */

/* 服务器状态区域基础样式 */
.server-status {
    background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 100%);
    padding: 4rem 0;
    margin: 2rem 0;
    position: relative;
    border-top: 4px solid #4a7c59;
    border-bottom: 4px solid #4a7c59;
}

.server-status .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.server-status h2 {
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.8rem;
    color: #90ee90;
    margin-bottom: 3rem;
    text-shadow: 
        2px 2px 0 #1a3a0e,
        4px 4px 0 rgba(0,0,0,0.5);
    letter-spacing: 2px;
    animation: serverStatusGlow 2s ease-in-out infinite alternate;
}

@keyframes serverStatusGlow {
    0% {
        text-shadow: 
            2px 2px 0 #1a3a0e,
            4px 4px 0 rgba(0,0,0,0.5),
            0 0 10px rgba(144, 238, 144, 0.3);
    }
    100% {
        text-shadow: 
            2px 2px 0 #1a3a0e,
            4px 4px 0 rgba(0,0,0,0.5),
            0 0 20px rgba(144, 238, 144, 0.6);
    }
}

/* 我的世界风格状态面板 */
.minecraft-status-panel {
    background: linear-gradient(145deg, #2d5016 0%, #4a7c59 100%);
    border: 4px solid #8fbc8f;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    box-shadow: 
        8px 8px 0 #1a3a0e,
        16px 16px 0 rgba(0,0,0,0.3),
        inset 4px 4px 0 rgba(255,255,255,0.1);
    margin: 0 auto;
    max-width: 1200px;
    /* 我的世界方块纹理背景 */
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.02) 8px, rgba(255,255,255,0.02) 16px),
        repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(0,0,0,0.02) 8px, rgba(0,0,0,0.02) 16px);
}

/* 状态显示区域 */
.status-display-area {
    background: rgba(0,0,0,0.3);
    border: 2px solid #66bb6a;
    border-radius: 4px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.status-display-area:hover {
    background: rgba(0,0,0,0.4);
    border-color: #90ee90;
    box-shadow: 
        0 0 20px rgba(144, 238, 144, 0.3),
        inset 0 0 10px rgba(144, 238, 144, 0.1);
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    animation: statusIconFloat 3s ease-in-out infinite;
}

@keyframes statusIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.status-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #90ee90;
    text-shadow: 1px 1px 0 #1a3a0e;
    letter-spacing: 1px;
}

/* 详细状态区域 */
.detailed-status-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(0,0,0,0.2);
    border: 2px solid #4a7c59;
    border-radius: 4px;
    padding: 2rem;
    margin-top: 2rem;
}

/* 玩家统计部分 */
.player-stats-section {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border: 2px solid #66bb6a;
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 
        4px 4px 0 #1a3a0e,
        8px 8px 0 rgba(0,0,0,0.3),
        inset 2px 2px 0 rgba(255,255,255,0.1);
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stats-header .header-icon {
    font-size: 1.5rem;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.stats-header h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #90ee90;
    text-shadow: 1px 1px 0 #1a3a0e;
    letter-spacing: 1px;
}

.player-count-display {
    margin: 2rem 0;
}

.count-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.count-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 3rem;
    color: #FFD700;
    text-shadow: 
        2px 2px 0 #B8860B,
        4px 4px 0 rgba(0,0,0,0.5);
    animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.count-unit {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #90ee90;
    text-shadow: 1px 1px 0 #1a3a0e;
}

.count-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #8fbc8f;
    text-shadow: 1px 1px 0 #1a3a0e;
    letter-spacing: 1px;
}

/* 装饰像素条 */
.stats-decoration {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 1rem;
}

.pixel-bar {
    width: 12px;
    height: 4px;
    background: linear-gradient(90deg, #66bb6a 0%, #8fbc8f 100%);
    box-shadow: 1px 1px 0 #1a3a0e;
    animation: pixelGlow 1.5s ease-in-out infinite alternate;
}

.pixel-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.pixel-bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pixelGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 服务器信息部分 */
.server-info-section {
    background: linear-gradient(135deg, #1565C0 0%, #2196F3 100%);
    border: 2px solid #42A5F5;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 
        4px 4px 0 #0d47a1,
        8px 8px 0 rgba(0,0,0,0.3),
        inset 2px 2px 0 rgba(255,255,255,0.1);
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-header .header-icon {
    font-size: 1.5rem;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.info-header h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #E3F2FD;
    text-shadow: 1px 1px 0 #0d47a1;
    letter-spacing: 1px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.info-icon {
    font-size: 1.2rem;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.info-content {
    flex: 1;
}

.info-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #BBDEFB;
    text-shadow: 1px 1px 0 #0d47a1;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.info-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: #E3F2FD;
    text-shadow: 1px 1px 0 #0d47a1;
}

/* 面板装饰 */
.panel-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.corner-pixel {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #90ee90;
    box-shadow: 
        0 0 4px rgba(144, 238, 144, 0.5),
        inset 1px 1px 0 rgba(255,255,255,0.3);
}

.corner-pixel.top-left {
    top: -4px;
    left: -4px;
}

.corner-pixel.top-right {
    top: -4px;
    right: -4px;
}

.corner-pixel.bottom-left {
    bottom: -4px;
    left: -4px;
}

.corner-pixel.bottom-right {
    bottom: -4px;
    right: -4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detailed-status-area {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .server-status h2 {
        font-size: 1.2rem;
    }
    
    .minecraft-status-panel {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .status-display-area {
        padding: 2rem 1rem;
    }
    
    .count-number {
        font-size: 2rem;
    }
    
    .stats-header h3,
    .info-header h3 {
        font-size: 0.8rem;
    }
}

/* 加载动画 */
@keyframes statusPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.minecraft-status-panel {
    animation: statusPanelFadeIn 0.8s ease-out;
}

/* 状态更新动画 */
.status-updating .count-number {
    animation: statusUpdate 0.5s ease-in-out;
}

@keyframes statusUpdate {
    0% { color: #FFD700; }
    50% { color: #90ee90; }
    100% { color: #FFD700; }
}

/* 诊断结果特殊样式 */
.status-display-area .status-text div[style*="white-space: pre-line"] {
    background: rgba(0,0,0,0.8);
    color: #90ee90;
    padding: 1.5rem;
    border-radius: 4px;
    border: 2px solid #4a7c59;
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.5),
        0 0 20px rgba(144, 238, 144, 0.2);
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.status-display-area.error .status-text div[style*="white-space: pre-line"] {
    color: #ffcccb;
    border-color: #f44336;
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.5),
        0 0 20px rgba(244, 67, 54, 0.2);
}

/* 诊断结果滚动条样式 */
.status-display-area .status-text div[style*="white-space: pre-line"]::-webkit-scrollbar {
    width: 8px;
}

.status-display-area .status-text div[style*="white-space: pre-line"]::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.status-display-area .status-text div[style*="white-space: pre-line"]::-webkit-scrollbar-thumb {
    background: #4a7c59;
    border-radius: 4px;
}

.status-display-area .status-text div[style*="white-space: pre-line"]::-webkit-scrollbar-thumb:hover {
    background: #66bb6a;
}
