/* Operator UI Panel - Modern Military Style */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

body {
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    background-color: #111;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* No dark overlay as per user request */

.video-background video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* Operator Panel */
.operator-panel {
    width: 350px;
    height: 100vh;
    max-height: 800px;
    background-color: rgba(0, 0, 0, 0.72);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    position: relative;
}

.operator-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,30,30,0.4) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Operator Title */
.operator-title {
    padding: 25px 20px;
    background-color: rgba(0, 0, 0, 0.42);
    border-bottom: 2px solid rgba(255, 85, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.operator-title h1 {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    padding: 0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    position: relative;
    line-height: 1.2;
    display: inline-block;
}


.operator-title .highlight {
    color: #FF5500;
    font-size: 38px;
    font-weight: inherit;
    letter-spacing: inherit;
}

.operator-title .subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 10px 0 0 2px;
    padding: 0 0 0 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    max-width: 90%;
    border-left: 1px solid #FF5500;
}


/* Operator List */
.operator-list {
    flex: 1;
    overflow-y: auto;
}

/* Category Headers */
.category-header {
    display: flex;
    align-items: center;
    padding: 15px 15px 5px;
    position: relative;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: calc(100% - 30px);
    height: 1px;
    background: linear-gradient(to right, #FF5500 0%, rgba(255,85,0,0.2) 70%, rgba(255,85,0,0) 100%);
}

.category-icon {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: rgba(255,255,255,0.2);
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.beginner .category-icon {
    border-color: rgba(76, 217, 100, 0.3);
}

.intermediate .category-icon {
    border-color: rgba(90, 200, 250, 0.3);
}

.advanced .category-icon {
    border-color: rgba(255, 170, 0, 0.3);
}

.expert .category-icon {
    border-color: rgba(255, 59, 48, 0.3);
}

.category-header:hover .category-icon {
    box-shadow: 0 0 8px rgba(255, 85, 0, 0.4);
}

.category-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
}

.category-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    margin-left: auto;
    letter-spacing: 0.5px;
}

.operator-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.operator-item:hover {
    background-color: rgba(255, 85, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.operator-item:hover .operator-name {
    color: #FF5500;
}

.operator-item:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #FF5500;
}

.operator-item:hover::after {
    content: '>';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF5500;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.operator-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    overflow: hidden;
}

.operator-avatar {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 5px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.operator-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.operator-avatar.beginner::before {
    background-color: rgba(0,0,0,0.7);
    border-left: 2px solid rgba(76, 217, 100, 0.7);
}

.operator-avatar.intermediate::before {
    background-color: rgba(0,0,0,0.7);
    border-left: 2px solid rgba(90, 200, 250, 0.7);
}

.operator-avatar.advanced::before {
    background-color: rgba(0,0,0,0.7);
    border-left: 2px solid rgba(255, 170, 0, 0.7);
}

.operator-avatar.expert::before {
    background-color: rgba(0,0,0,0.7);
    border-left: 2px solid rgba(255, 59, 48, 0.7);
}

.operator-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 100%);
}

.operator-info {
    flex: 1;
}

.operator-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    color: #fff;
    text-transform: uppercase;
}

.operator-subtext {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

/* Difficulty levels - all using white/gray */
.beginner .category-title,
.intermediate .category-title,
.advanced .category-title,
.expert .category-title {
    color: #FF5500;
}

/* Loadouts Button */
.loadouts-button {
    padding: 15px;
}

.loadouts-button button {
    width: 100%;
    padding: 18px 0;
    background-color: #FF5500;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    animation: pulse-glow 2s infinite;
    position: relative;
    overflow: hidden;
}

.loadouts-button button:hover {
    background-color: #FF7700;
}

.loadouts-button button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.loadouts-button button:hover::after {
    left: 100%;
}

/* Scanline effect */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.1) 1px,
        rgba(0, 0, 0, 0.1) 2px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0.2;
}

/* Coming Soon Banner */
.coming-soon-banner {
    position: absolute;
    top: 0%;
    right: 5%;
    z-index: 20;
    transform: rotate(5deg);
    animation: glitchEffect 10s infinite alternate;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .coming-soon-banner {
        top: 2%;
        right: 2%;
        transform: rotate(3deg);
    }
    
    .coming-soon-text {
        font-size: 18px !important;
        letter-spacing: 2px !important;
    }
    
    .coming-soon-content {
        padding: 6px 12px !important;
    }
    
    .tactical-line {
        margin: 4px 0 !important;
    }
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border: 1px solid rgba(255, 85, 0, 0.5);
    position: relative;
}

.coming-soon-content::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, #FF5500, transparent 10%) 0 0,
        linear-gradient(to bottom, #FF5500, transparent 10%) 0 0,
        linear-gradient(to left, #FF5500, transparent 10%) 100% 100%,
        linear-gradient(to top, #FF5500, transparent 10%) 100% 100%;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

.coming-soon-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 65%, #FF5500 67%, #FF5500 69%, transparent 71%);
    background-size: 300% 300%;
    animation: sweep 4s linear infinite;
    opacity: 0.3;
}

.coming-soon-text {
    font-family: 'Anton', sans-serif;
    font-size: 36px;
    letter-spacing: 3px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.7);
    margin: 5px 0;
    position: relative;
}

.tactical-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, transparent, #FF5500, transparent);
    margin: 8px 0;
}

@keyframes sweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes glitchEffect {
    0%, 100% { transform: rotate(5deg); }
    25% { transform: rotate(5deg) translateY(-2px); }
    26% { transform: rotate(5deg) translateY(2px); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(5deg) translateX(2px); }
    76% { transform: rotate(5deg) translateX(-2px); }
}



/* Additional operator panel styling */
.operator-panel {
    position: relative;
    border-radius: 2px;
}

/* Animation for operator items */
.operator-item {
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}

.operator-item:nth-child(1) { animation-delay: 0.1s; }
.operator-item:nth-child(2) { animation-delay: 0.2s; }
.operator-item:nth-child(3) { animation-delay: 0.3s; }
.operator-item:nth-child(4) { animation-delay: 0.4s; }
.operator-item:nth-child(5) { animation-delay: 0.5s; }
.operator-item:nth-child(6) { animation-delay: 0.6s; }
.operator-item:nth-child(7) { animation-delay: 0.7s; }

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

/* Loadouts button animation */
.loadouts-button button {
    animation: pulseButton 2s infinite ease-in-out;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 85, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 85, 0, 0.7);
    }
}

/* Additional styling for operator panel */
.operator-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

/* Adjust scrollbar for operator list */
.operator-list::-webkit-scrollbar {
    width: 5px;
}

.operator-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.operator-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.operator-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scanline animation */
@keyframes scanlines {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}



/* Make the panel responsive */
@media (max-width: 768px) {
    .operator-panel {
        width: 100%;
        max-width: 350px;
    }
}

/* Category hover effects - all using white/gray */
.beginner .operator-item:hover::before,
.intermediate .operator-item:hover::before,
.advanced .operator-item:hover::before,
.expert .operator-item:hover::before {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Glitch effect on hover */
@keyframes glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(1px, -3px);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-1px, 1px);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(2px, -2px);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-3px, 2px);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(2px, -2px);
    }
}

.operator-item:hover .operator-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, #FF5500 50%, transparent 55%);
    background-size: 200% 200%;
    animation: glitch-sweep 3s infinite linear;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes glitch-sweep {
    0% { background-position: 200% 200%; }
    100% { background-position: 0% 0%; }
}

/* Final adjustments for pixel-perfect match - consolidated styles */
.operator-item:hover {
    background-color: rgba(255, 85, 0, 0.1);
    border-left: 3px solid #FF5500;
}

.operator-item:hover .operator-name {
    color: #FF5500;
}

.operator-item:hover .operator-avatar {
    border-color: #FF5500;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
}

/* Enhanced scrollbar for the dark theme */
.operator-list::-webkit-scrollbar-thumb {
    background: #FF5500;
    border-radius: 0;
}

.operator-list::-webkit-scrollbar-thumb:hover {
    background: #FF7700;
}

/* Enhanced LOADOUTS button glow */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255, 85, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 85, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 85, 0, 0.5); }
}

/* Premium message styling */
.premium-message {
    padding: 15px 20px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.premium-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255,85,0,0) 0%, #FF5500 50%, rgba(255,85,0,0) 100%);
    z-index: 1;
}

.message-highlight {
    color: #FF5500;
    font-weight: 700;
    font-size: 16px;
}

.tactical-bracket {
    color: #FF5500;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0;
    opacity: 0.9;
}

.tactical-text {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    margin-top: 5px;
    position: relative;
}

.tactical-text::before, .tactical-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.tactical-text::before {
    left: 15%;
}

.tactical-text::after {
    right: 15%;
}

