/* ============================================
   Discord Quest Automation - Styling
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    border: 1px solid #2d2d4d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header h1 {
    color: #7289da;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header .subtitle {
    color: #b9bbbe;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #ff4757;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

.instructions {
    background: rgba(40, 40, 60, 0.9);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #3a3a5d;
}

.instructions h2 {
    color: #7289da;
    margin-bottom: 15px;
    border-bottom: 2px solid #7289da;
    padding-bottom: 10px;
}

.instructions ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.instructions .note {
    background: rgba(114, 137, 218, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #7289da;
    margin-top: 15px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #43b581 0%, #3a9c6d 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #4a4a6a 0%, #3a3a5a 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.btn.copied {
    background: linear-gradient(135deg, #43b581 0%, #3a9c6d 100%);
}

.code-container {
    background: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    border: 1px solid #2d2d4d;
}

.code-header {
    background: #252526;
    padding: 15px 20px;
    border-bottom: 1px solid #3e3e42;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-header h3 {
    color: #569cd6;
    font-size: 1.2em;
}

.code-stats {
    color: #b5cea8;
    font-size: 0.9em;
}

.code-block {
    padding: 25px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: #1e1e1e;
    max-height: 600px;
    overflow-y: auto;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Syntax Highlighting */
.comment { color: #6a9955; }
.string { color: #ce9178; }
.keyword { color: #569cd6; font-weight: bold; }
.builtin { color: #4ec9b0; }
.constant { color: #9cdcfe; }
.number { color: #b5cea8; }
.template { color: #d7ba7d; }
.property { color: #9cdcfe; }

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2d2d4d;
    color: #8a8a8a;
    font-size: 0.9em;
}

.footer a {
    color: #7289da;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #7289da;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b6eae;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .code-block {
        padding: 15px;
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .controls,
    .footer,
    .warning {
        display: none;
    }
    
    .code-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .code-block {
        background: white;
        color: black;
        max-height: none;
        overflow: visible;
    }
    
    /* Reset syntax highlighting for print */
    .comment,
    .string,
    .keyword,
    .builtin,
    .constant,
    .number,
    .template,
    .property {
        color: black !important;
    }
}
