/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
}

/* Header Styles */
.header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #00d4ff;
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-info {
    display: flex;
    gap: 30px;
}

.score-board, .level-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #00d4ff;
}

.score, .level {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00d4ff;
}

/* Game Area Styles */
.game-area {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    border: 1px solid #00d4ff;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* Game Selection Styles */
.game-selection h2 {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #00d4ff;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mission-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mission-card:hover::before {
    left: 100%;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    border-color: #ff6b6b;
}

.mission-card i {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 15px;
}

.mission-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.mission-card p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.difficulty {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty.easy {
    background: #4caf50;
    color: white;
}

.difficulty.medium {
    background: #ff9800;
    color: white;
}

.difficulty.hard {
    background: #f44336;
    color: white;
}

/* Game Interface Styles */
.game-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #00d4ff;
}

.back-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.back-btn:hover {
    background: #00d4ff;
    color: #000;
}

#mission-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00d4ff;
}

.timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 107, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #ff6b6b;
}

.timer i {
    color: #ff6b6b;
}

#time-left {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #ff6b6b;
}

.game-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    flex: 1;
}

.scenario-area {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00d4ff;
    border-radius: 15px;
    padding: 30px;
    min-height: 400px;
}

.scenario-display {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.controls-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn:hover {
    background: #00d4ff;
    color: #000;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

.info-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00d4ff;
    border-radius: 15px;
    padding: 20px;
    flex: 1;
}

.info-panel h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.tips-content {
    color: #cccccc;
    line-height: 1.6;
}

.progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #00d4ff;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ff6b6b);
    width: 0%;
    transition: width 0.3s ease;
}

/* Results Screen Styles */
.results-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.results-content {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00d4ff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.results-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 30px;
}

.results-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid #00d4ff;
}

.stat-label {
    color: #cccccc;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00d4ff;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Button Styles */
.btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #ff6b6b, #cc3333);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.btn-outline:hover {
    background: #00d4ff;
    color: #000;
}

/* Educational Panel Styles */
.educational-panel {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00d4ff;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    border-bottom: 1px solid #00d4ff;
    border-radius: 15px 15px 0 0;
}

.panel-header h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.learning-section h4, .achievements h4 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.lesson-content {
    color: #cccccc;
    line-height: 1.6;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00d4ff;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    border-bottom: 1px solid #00d4ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
}

.close-btn {
    background: none;
    border: none;
    color: #00d4ff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    padding: 30px;
    color: #cccccc;
    line-height: 1.6;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #00d4ff;
    text-align: center;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .educational-panel {
        order: 3;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-content {
        grid-template-columns: 1fr;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
    100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.5); }
}

.glow {
    animation: glow 2s infinite;
} 