/*hey, this was a wonderful opputunity to learn a litle css, am not great at it, so i took some help from my father for understanding the logic, i hope ya guys dont mind, happy hacking :)*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Code Pro', 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #000000;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #111111;
    border: 2px solid #333333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

header {
    background: #000000;
    padding: 40px;
    text-align: center;
    color: #e0e0e0;
    border-bottom: 3px solid #ffd700;
    position: relative;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.playground {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #333333;
}

.input-section, .output-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 0;
    border: none;
    position: relative;
}

.input-section::before, .output-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffd700, #4ecdc4);
}

.input-section h3, .output-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

#codeInput {
    width: 100%;
    height: 280px;
    padding: 18px;
    border: 2px solid #444444;
    border-radius: 8px;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background: #222222;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

#codeInput:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

#runButton {
    width: 100%;
    padding: 18px;
    margin-top: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ffd700);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

#runButton:hover {
    background: linear-gradient(45deg, #ff5252, #ffeb3b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

#runButton:active {
    transform: translateY(0);
}

.examples-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #333333;
}

.examples-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    text-align: center;
}

.example-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.example-btn {
    padding: 10px 12px;
    background: #333333;
    color: #e0e0e0;
    border: 1px solid #555555;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Source Code Pro', monospace;
}

.example-btn:hover {
    background: #444444;
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-1px);
}

.example-btn:active {
    transform: translateY(0);
}

#output {
    background: #222222;
    color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 220px;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 320px;
    border: 2px solid #444444;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.commands {
    background: #1a1a1a;
    padding: 35px;
    border-top: 4px solid #ffd700;
}

.commands h3 {
    color: #ffd700;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-align: center;
}

.commands ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.commands li {
    background: #2a2a2a;
    padding: 15px 18px;
    border-radius: 10px;
    border-left: 5px solid #ff6b6b;
    font-size: 14px;
    color: #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.commands code {
    background: #333333;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    color: #ffd700;
    font-weight: 600;
    border: 1px solid #555555;
}

footer {
    background: #000000;
    color: #ecf0f1;
    text-align: center;
    padding: 25px;
    font-style: italic;
    border-top: 3px solid #ffd700;
}

footer p {
    margin: 5px 0;
}

footer p:first-child {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .playground {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .commands ul {
        grid-template-columns: 1fr;
    }
    
    .example-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body {
        padding: 10px;
    }
}

.commands li:hover {
    background: #333333;
    transform: translateX(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-left-color: #ffd700;
}

#output::-webkit-scrollbar {
    width: 10px;
}

#output::-webkit-scrollbar-track {
    background: #2c3e50;
    border-radius: 5px;
}

#output::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b6b, #ffd700);
    border-radius: 5px;
}

#output::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff5252, #ffeb3b);
}
