/* Join Screen Styles */
.join-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.join-card {
    width: 100%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00a8ff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(0, 168, 255, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 80px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.logo-1 {
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.logo-vs {
    color: #fff;
}

.logo-2 {
    color: #00a8ff;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.logo-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: #888;
    text-transform: uppercase;
}

.status-section {
    margin: 30px 0;
}

.status-card {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    min-width: 250px;
}

.status-item i {
    font-size: 24px;
    color: #00a8ff;
}

.status-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.status-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #fff;
}

.input-section {
    margin: 40px 0;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00a8ff;
    font-size: 20px;
    z-index: 2;
}

#player-name {
    width: 100%;
    padding: 20px 20px 20px 60px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#player-name:focus {
    outline: none;
    border-color: #00a8ff;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.button-row {
    display: flex;
    gap: 20px;
}

.btn {
    flex: 1;
    padding: 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, #ff0000, #cc0000);
    color: white;
}

.btn-primary:hover:not(.disabled) {
    background: linear-gradient(90deg, #cc0000, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.controls-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.controls-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 25px;
    color: #00a8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.control-item {
    text-align: center;
}

.control-key {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #00a8ff;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 6px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-action {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #666;
    font-size: 12px;
}

.match-rules {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #888;
}

.copyright {
    font-size: 10px;
    opacity: 0.7;
}

/* HUD Styles */
.hud-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.player-health {
    display: flex;
    align-items: center;
    gap: 20px;
}

.health-container {
    width: 200px;
}

.health-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.health-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff0000, #ff5555);
    border-radius: 15px;
    transition: width 0.3s ease;
}

.health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.health-text i {
    color: #ff0000;
}

.armor-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #00a8ff;
}

.match-info {
    text-align: center;
}

.game-mode {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00a8ff;
    margin-bottom: 5px;
}

.timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.score-board {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
}

.score-player {
    color: #00a8ff;
}

.score-opponent {
    color: #ff0000;
}

.score-divider {
    color: #666;
    font-size: 24px;
}

.kills-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #ff0000;
}

/* Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 100;
}

#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

#crosshair::before {
    width: 3px;
    height: 18px;
    top: -9px;
    left: 13.5px;
}

#crosshair::after {
    width: 18px;
    height: 3px;
    top: 13.5px;
    left: -9px;
}

/* HUD Bottom */
.hud-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.weapon-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weapon-icon {
    font-size: 32px;
    color: #00a8ff;
}

.weapon-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.weapon-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: white;
}

.ammo-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.current-ammo {
    color: white;
}

.ammo-divider {
    color: #666;
    margin: 0 5px;
}

.total-ammo {
    color: #666;
}

.players-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    min-width: 180px;
    text-align: center;
}

.player-me {
    color: #00a8ff;
    border: 2px solid #00a8ff;
}

.player-enemy {
    color: #ff0000;
    border: 2px solid #ff0000;
}

.vs-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.match-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.round-counter {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #00a8ff;
}

.online-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: white;
}

/* Chat System */
#chat {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 20;
}

#chat:hover {
    opacity: 1;
}

#chat-messages {
    height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px 10px 0 0;
    padding: 15px;
    margin-bottom: -1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input-wrapper {
    display: flex;
}

#chat-input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 0 10px;
    color: white;
    font-size: 14px;
    pointer-events: auto;
}

#chat-input:focus {
    outline: none;
    border-color: #00a8ff;
}

#chat-send {
    width: 50px;
    background: rgba(0, 168, 255, 0.9);
    border: none;
    border-radius: 0 0 10px 0;
    color: white;
    cursor: pointer;
    pointer-events: auto;
    font-size: 16px;
}

/* Death Screen */
#death-screen .death-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(20, 0, 0, 0.95), rgba(40, 0, 0, 0.98));
    display: flex;
    justify-content: center;
    align-items: center;
}

.death-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    border: 2px solid rgba(255, 0, 0, 0.3);
}

.death-icon {
    font-size: 80px;
    color: #ff0000;
    margin-bottom: 20px;
    animation: pulse 1s infinite;
}

.death-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.death-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 15px;
}

.detail-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.killer-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: white;
}

.respawn-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #00a8ff;
    margin-bottom: 10px;
}

.death-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.death-hint {
    color: #888;
    font-size: 14px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Waiting Screen */
#waiting-screen .waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
}

.waiting-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    border: 2px solid #00a8ff;
}

.searching-icon {
    font-size: 60px;
    color: #00a8ff;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

.searching-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
}

.searching-description {
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.5;
}

.searching-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.status-dots {
    font-size: 24px;
    color: #00ff88;
    letter-spacing: 4px;
}

.status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.player-count-display {
    margin: 30px 0;
}

.count-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    color: #00a8ff;
    margin-bottom: 10px;
}

.count-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.server-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    margin: 20px 0;
}

.cancel-btn {
    padding: 15px 40px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    border-radius: 10px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cancel-btn:hover {
    background: rgba(255, 0, 0, 0.4);
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .join-card {
        padding: 20px;
    }
    
    .logo-main {
        font-size: 60px;
    }
    
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-card {
        flex-direction: column;
        align-items: center;
    }
    
    .hud-top, .hud-bottom {
        padding: 10px 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .players-display {
        flex-direction: column;
        gap: 10px;
    }
    
    #chat {
        width: calc(100% - 40px);
        left: 20px;
        bottom: 80px;
    }
}