/* Game Container */
.game-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 2rem;
    min-height: 80vh;
}

.game-panel {
    flex: 2;
    background: #1e1e1e;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.educational-sidebar {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

/* Input Section */
.input-section {
    margin-bottom: 2rem;
}

.input-section h3 {
    color: #00ff41;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.url-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #00ff41;
    background: #2a2a2a;
    color: #00ff41;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    min-width: 300px;
}

.url-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0,255,65,0.3);
}

.unlock-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247,147,30,0.4);
}

.unlock-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.game-instruction {
    color: #aaa;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Hammer and Lock Animation */
.animation-container {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hammer-lock-animation {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.lock-icon {
    font-size: 4rem;
    display: inline-block;
    animation: shake 0.5s infinite;
}

.hammer-icon {
    font-size: 3rem;
    position: absolute;
    top: -2rem;
    right: -3rem;
    animation: hammer-strike 1s infinite;
}

.impact-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffff00, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: impact 0.5s infinite;
}

.educational-note {
    background: rgba(255,255,255,0.9);
    padding: 1rem;
    border-radius: 8px;
    color: #333;
}

/* CLI Terminal Styles */
.cli-container {
    background: #0c0c0c;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-family: 'Courier New', monospace;
}

.cli-header {
    background: #333;
    padding: 0.8rem 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cli-title {
    color: #fff;
    font-size: 0.9rem;
}

.cli-controls {
    display: flex;
    gap: 0.5rem;
}

.cli-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cli-control.close { background: #ff5f57; }
.cli-control.minimize { background: #ffbd2e; }
.cli-control.maximize { background: #28ca42; }

.cli-content {
    padding: 1rem;
    color: #00ff41;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.4;
}

.cli-line {
    margin: 0.2rem 0;
    animation: typewriter 0.5s ease-in-out;
}

.cli-line.command {
    color: #00ff41;
}

.cli-line.output {
    color: #ffffff;
    margin-left: 2rem;
}

.cli-line.error {
    color: #ff6b6b;
}

.cli-line.success {
    color: #51cf66;
}

.cli-line.warning {
    color: #ffd93d;
}

/* Progress Bar */
.progress-section {
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
}

.progress-label {
    color: #00ff41;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar-container {
    background: #333;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00ff00);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

.progress-percentage {
    color: #00ff41;
    text-align: center;
    font-size: 0.9rem;
}

/* Result Container */
.result-container {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid #00ff41;
}

.result-header h3 {
    color: #00ff41;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.embedded-content {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

.content-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid #00ff41;
}

/* Animations */
@keyframes hammer-strike {
    0%, 100% { transform: rotate(-20deg) translate(0, 0); }
    25% { transform: rotate(-45deg) translate(-10px, 10px); }
    50% { transform: rotate(-20deg) translate(-5px, 5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) rotate(-1deg); }
    75% { transform: translateX(2px) rotate(1deg); }
}

@keyframes impact {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

@keyframes typewriter {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes progress-shine {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(100px); }
}

/* Educational Sidebar Styles */
.learning-objectives {
    list-style: none;
    padding: 0;
}

.learning-objectives li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.learning-objectives li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.score-panel, .tips-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tips-list li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* Second Method Specific Styles */
.second-method-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Navigation Panel */
.navigation-panel {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #007bff;
}

.navigation-panel h4 {
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
    
    .url-input-container {
        flex-direction: column;
    }
    
    .url-input {
        min-width: auto;
    }
    
    .animation-container {
        padding: 2rem 1rem;
    }
    
    .lock-icon, .hammer-icon {
        font-size: 3rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
