:root {
    --bg-color: #f4f6f8;
    --header-bg: #ffffff;
    --text-color: #333333;
    --border-color: #e1e4e8;
    --accent-color: #007bff;
    --code-bg: #282c34;
    --code-text: #abb2bf;
    --string-color: #98c379;
    --number-color: #d19a66;
    --key-color: #e06c75;
    --btn-bg: #2ea44f;
    --btn-hover: #2c974b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: var(--header-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.logo span {
    color: var(--text-color);
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-switch {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-switch:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.warning-msg {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.error-text {
    color: #e06c75;
    font-weight: bold;
}

.btn-install {
    background-color: var(--btn-bg);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-install:hover {
    background-color: var(--btn-hover);
}

.container {
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.editor-area {
    display: flex;
    gap: 20px;
    height: 70vh;
}

.pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.pane-header {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pane-header h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
}

textarea, .output-area {
    flex: 1;
    padding: 15px;
    border: none;
    resize: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    line-height: 1.5;
}

textarea {
    color: var(--text-color);
}

.output-area {
    background-color: var(--code-bg);
    color: var(--code-text);
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* JSON Highlighting Colors */
.json-key { color: var(--key-color); }
.json-string { color: var(--string-color); }
.json-number { color: var(--number-color); }
.json-boolean { color: var(--accent-color); }
.json-null { color: var(--accent-color); }

.btn-copy {
    background: white;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-copy:hover {
    background: #f0f0f0;
}

.ad-container {
    padding: 20px;
    text-align: center;
    background: white;
    margin-top: 20px;
}

.seo-content {
    background: white;
    padding: 3rem 2rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.seo-content article {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.seo-content h2 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.8rem; }
.seo-content p { margin-bottom: 1rem; color: #555; }
.seo-content ul { margin-left: 20px; margin-bottom: 1rem; color: #555; }
.seo-content li { margin-bottom: 0.5rem; }

.copyright {
    text-align: center;
    margin-top: 2rem;
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .editor-area {
        flex-direction: column;
        height: auto;
    }
    
    .pane {
        height: 50vh;
    }
}

.more-tools {
    max-width: 1600px;
    margin: 20px auto 0; /* 위쪽 여백 추가 */
    padding: 0 20px;
    text-align: center;
}

.more-tools h4 {
    margin-bottom: 15px;
    color: #666;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tool-icon {
    font-size: 1.2rem;
}

.tool-name {
    font-weight: 600;
}