/* DEAD CITY PvP Loading Screen Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
}

.loading-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: 
        linear-gradient(45deg, rgba(0,0,0,0.9) 0%, rgba(20,20,20,0.8) 50%, rgba(0,0,0,0.9) 100%),
        radial-gradient(circle at center, rgba(40,40,40,0.3) 0%, rgba(0,0,0,0.8) 100%);
    background-size: 100% 100%, 100% 100%;
    animation: backgroundPulse 4s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { filter: brightness(0.8) contrast(1.2); }
    100% { filter: brightness(1.0) contrast(1.5); }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.03) 2px,
            rgba(255,255,255,0.03) 4px
        );
    opacity: 0.5;
    animation: scanlines 2s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* YouTube Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
}

.video-container iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: brightness(0.8);
    -webkit-backdrop-filter: brightness(0.8);
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.video-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border: 1px solid #666;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 40px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.server-title {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255,255,255,0.5),
        0 0 20px rgba(255,255,255,0.3),
        0 0 30px rgba(255,255,255,0.1);
    letter-spacing: 8px;
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 
            0 0 10px rgba(255,255,255,0.3),
            0 0 20px rgba(255,255,255,0.2),
            0 0 30px rgba(255,255,255,0.1);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(255,255,255,0.7),
            0 0 25px rgba(255,255,255,0.5),
            0 0 35px rgba(255,255,255,0.3);
    }
}

.server-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: #ccc;
    letter-spacing: 4px;
    border: 2px solid #666;
    padding: 8px 20px;
    display: inline-block;
    background: rgba(0,0,0,0.7);
    animation: subtitleFlicker 2s ease-in-out infinite;
}

@keyframes subtitleFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.loading-info {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.loading-status h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 30px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #333;
    border: 2px solid #666;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #666 0%, #fff 50%, #666 100%);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { box-shadow: inset 0 0 10px rgba(255,255,255,0.3); }
    50% { box-shadow: inset 0 0 20px rgba(255,255,255,0.6); }
    100% { box-shadow: inset 0 0 10px rgba(255,255,255,0.3); }
}

.progress-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: #fff;
    min-width: 60px;
    text-align: right;
}

/* PvP Features Grid */
.pvp-features {
    margin: 40px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(0,0,0,0.7);
    border: 1px solid #444;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    border-color: #fff;
    background: rgba(20,20,20,0.9);
    transform: translateY(-5px);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: featureSlide 3s ease-in-out infinite;
}

@keyframes featureSlide {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: grayscale(100%);
}

.feature-item h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

/* Server Stats */
.server-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.8);
    border: 1px solid #444;
    padding: 20px;
    border-radius: 0;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    border-left: 2px solid #666;
}

.stat-item:first-child {
    border-left: none;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}

/* Footer */
.footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.server-info {
    position: absolute;
    left: 0;
    bottom: 0;
    text-align: left;
}

.server-ip, .discord-info {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #ccc;
    margin: 5px 0;
}

/* Music Info Styles */
.music-info {
    text-align: center;
    flex: none;
}

.music-control-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.key-highlight {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border: 1px solid #666;
    border-radius: 3px;
    font-weight: 700;
}

.music-status {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #fff;
    animation: musicStatusPulse 2s ease-in-out infinite;
}

@keyframes musicStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Audio Element Hidden */
#backgroundMusic {
    display: none;
}

.loading-tips {
    text-align: center;
    flex: 1;
}

.loading-tips h4 {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.loading-tips p {
    font-size: 0.9rem;
    color: #bbb;
    font-style: italic;
}

.warning-notice {
    text-align: right;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    animation: warningBlink 1.5s ease-in-out infinite;
}

@keyframes warningBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Animated Elements */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: scannerMove 4s linear infinite;
    z-index: 20;
}

@keyframes scannerMove {
    0% { transform: translateY(0vh); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(255,255,255,0.02) 100px,
        rgba(255,255,255,0.02) 101px
    );
    animation: glitchShift 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes glitchShift {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .server-title {
        font-size: 3.5rem;
        letter-spacing: 6px;
    }
    
    .content-wrapper {
        padding: 30px;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .server-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .server-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .server-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        border-left: none;
        border-top: 2px solid #666;
        padding-top: 15px;
    }
    
    .stat-item:first-child {
        border-top: none;
        padding-top: 10px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .server-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-text {
        text-align: center;
    }
}
