* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Arial', sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(50, 150, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(80, 100, 200, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
    z-index: -1;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.server-header {
    width: 100%;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    padding: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.server-header .header-container {
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
}

.server-header .logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.server-header .server-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 2.5em;
    font-weight: 900;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.server-header .header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.nav-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #45b7d1 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(78, 205, 196, 0.4);
}

.nav-btn:active {
    transform: translateY(0);
}

.logo {
    flex: 0 0 auto;
}

.minecraft-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease;
}

.minecraft-logo:hover {
    transform: scale(1.1) rotate(5deg);
}



/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.status-indicator.online {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.status-indicator.offline {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.status-text {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online .status-dot {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.status-indicator.offline .status-dot {
    background-color: #ffffff;
    animation: none;
    opacity: 0.6;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Section Title */
.section-title {
    font-size: 2em;
    font-weight: 900;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    margin: 0 0 20px 0;
    text-align: center;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 10px;
}

/* Server Introduction Section */
.server-intro {
    background: rgba(22, 33, 62, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Introduction Content */
.intro-content {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1.1em;
}

.intro-content p {
    margin-bottom: 15px;
}

.intro-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.intro-content li {
    margin-bottom: 8px;
    list-style-type: disc;
    color: #4ecdc4;
}

.intro-content li::marker {
    color: #4ecdc4;
}

/* Placeholder text style */
.intro-content p:nth-child(2),
.intro-content p:nth-child(3),
.intro-content ul,
.intro-content p:last-child {
    color: #ffffff;
}

/* Server Info Section */
.server-info {
    background: rgba(22, 33, 62, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* Server Section for multiple servers */
.server-section {
    animation: fadeIn 0.5s ease-in-out;
}

.server-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

/* Server Meta with Icon */
.server-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Server Favicon */
.server-favicon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* Server Name */
.server-name {
    font-size: 1.5em;
    font-weight: 900;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    margin: 0;
}

/* Connect Section */
.connect-section {
    background: rgba(22, 33, 62, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Info Cards */
.info-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #4ecdc4;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 10px;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4ecdc4;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.info-label {
    font-weight: bold;
    color: #b2bec3;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    color: #ffffff;
    font-size: 1.05em;
    text-align: right;
}

.players-count {
    color: #4ecdc4;
    font-weight: bold;
    font-size: 1.2em;
}

.motd {
    font-style: italic;
    color: #ffeaa7;
    max-width: 80%;
    text-align: right;
    word-wrap: break-word;
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.2) 100%);
    padding: 20px;
    border-radius: 10px;
    color: #ff7675;
    text-align: center;
    font-size: 1.1em;
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin: 15px 0;
}

/* Players Section */
.players-card {
    display: flex;
    flex-direction: column;
}

.players-container {
    flex: 1;
    min-height: 200px;
}

.players-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid #96ceb4;
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.player-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2em;
}

.player-name {
    color: #ffffff;
    font-weight: 600;
    flex: 1;
}

.no-players {
    text-align: center;
    color: #b2bec3;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-style: italic;
}

/* Connect Section */
.connect-section {
    margin-top: 20px;
}

.connect-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-text {
    color: #b2bec3;
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.6;
}

.connection-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.connection-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connection-label {
    font-size: 0.9em;
    color: #b2bec3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.connection-value {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 600;
}

.address-copy {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.address-text {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    color: #4ecdc4;
    font-size: 1.1em;
    word-break: break-all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #45b7d1 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(78, 205, 196, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-icon {
    font-size: 1.2em;
}

/* Footer Styles */
.server-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-radius: 15px;
    color: #b2bec3;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-text {
    margin: 0 0 10px 0;
}

/* Friend Link */
.friend-link {
    margin: 10px 0 0 0;
    font-size: 0.9em;
}

/* Rainyun Link */
.rainyun-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.rainyun-link:hover {
    color: #2980b9;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    text-decoration: underline;
}

.rainyun-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.rainyun-link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-btn {
        padding: 8px 14px;
        font-size: 0.8em;
    }
    
    .server-title {
        font-size: 2em;
        margin: 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-value {
        text-align: left;
        width: 100%;
    }
    
    .address-copy {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        justify-content: center;
    }
    
    .connect-card {
        padding: 20px;
    }
    
    .bottom-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bottom-section {
        padding: 20px;
    }
    
    .bottom-section-btn {
        width: 100%;
    }
}

/* Minecraft Style Animations */
@keyframes minecraftFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.motd {
    animation: minecraftFloat 3s ease-in-out infinite;
}

/* Loading Animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(78, 205, 196, 0.3); }
    50% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.6); }
}

.info-card {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Bottom Sections */
.bottom-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.bottom-section {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottom-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bottom-section-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #4ecdc4;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    padding-bottom: 10px;
}

.bottom-section-desc {
    color: #b2bec3;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.bottom-section-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
    margin: 0 auto;
    display: block;
    text-align: center;
    width: 150px;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', 'Arial', sans-serif;
}

.bottom-section-btn:hover {
    background: linear-gradient(135deg, #45b7d1 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(78, 205, 196, 0.4);
}

.bottom-section-btn:active {
    transform: translateY(0);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(22, 33, 62, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    border-radius: 10px;
    border: 2px solid rgba(22, 33, 62, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #45b7d1 0%, #3498db 100%);
}