/* ============================================
   Minecraft Server Status - Icon + Copy Button
   ============================================ */

   .header-mc-status {
    margin: 1rem auto 1.5rem;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Status Line */
.mc-status-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--gh-font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Minecraft Grass Block - Isometric View */
.mc-cube-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.3rem;
    transform: rotateX(60deg) rotateZ(45deg);
    transform-style: preserve-3d;
    animation: subtle-float 3s ease-in-out infinite;
}

.mc-cube-icon::before,
.mc-cube-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
}

/* Top face (grass) */
.mc-cube-icon::before {
    background: #7CBD6B;
    transform: translateZ(10px);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

/* Side face (dirt) */
.mc-cube-icon::after {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    transform: rotateY(90deg) translateZ(10px);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

@keyframes subtle-float {
    0%, 100% { transform: rotateX(60deg) rotateZ(45deg) translateY(0); }
    50% { transform: rotateX(60deg) rotateZ(45deg) translateY(-3px); }
}


@keyframes rotate3d {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* Server Address Container (clickable) */
.mc-server-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mc-server-container:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mc-server-container:active {
    transform: translateY(0);
}

/* Server Address Text */
.mc-server-address {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1em;
}

/* Copy Icon */
.mc-copy-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.mc-server-container:hover .mc-copy-icon {
    color: #7CBD6B;
    transform: scale(1.1);
}

.mc-server-container.copied .mc-copy-icon {
    color: #7CBD6B;
}

/* Copy Tooltip */
.mc-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #7CBD6B;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.mc-copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #4CAF50;
}

.mc-copy-tooltip.show {
    opacity: 1;
}

/* Status Separator */
.mc-separator {
    margin: 0 0.3rem;
    opacity: 0.6;
}

/* Online Status */
.mc-status-online {
    color: #4CAF50;
    font-weight: 600;
}

.mc-status-online::before {
    content: '●';
    margin-right: 0.4rem;
    font-size: 0.8em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Offline Status */
.mc-status-offline {
    color: #f44336;
    font-weight: 600;
}

.mc-status-offline::before {
    content: '●';
    margin-right: 0.4rem;
    font-size: 0.8em;
}

/* Player Count */
.mc-players {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.mc-players-count {
    color: #64B5F6;
    font-weight: 700;
}

/* Loading State */
.mc-loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Error State */
.mc-error-text {
    color: #ff9800;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mc-status-line {
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mc-cube-icon {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .mc-status-line {
        font-size: 0.85rem;
        gap: 0.3rem;
    }
    
    .mc-server-container {
        padding: 0.25rem 0.5rem;
    }
}
