@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --bg-color: #f8fafc;
    --primary: #2563eb;
    --card-bg: #ffffff;
    --text: #0f172a;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Pretendard', sans-serif; }

body { background: var(--bg-color); color: var(--text); padding: 20px; }

main { max-width: 1000px; margin: 0 auto; width: 100%; }

header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 30px; 
}

.lang-selector { 
    flex: 1; 
    text-align: left; 
}

.title-container {
    flex: 2;
    text-align: center;
}

.title-container h1 { 
    margin: 0;
    font-size: 2.5rem;
}

.title-container p {
    margin-top: 5px;
    color: #64748b;
}

header::after { 
    content: ""; 
    flex: 1; 
}

.lang-selector select { 
    padding: 6px 10px; 
    border-radius: 6px; 
    border: 1px solid var(--border);
    cursor: pointer;
    width: auto;
}

.upload-zone {
    border: 3px dashed var(--primary);
    background: #fff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.2s;
}
.upload-zone.dragover { background: #eff6ff; border-color: #1d4ed8; }

.ad-container { display: flex; gap: 10px; margin: 20px 0; justify-content: center; }
.ad-space-mini { flex: 1; height: 90px; background: #e2e8f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 0.8rem; }

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.card { background: var(--card-bg); padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); border: 1px solid var(--border); }
.card h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.1rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; }

.control-group { margin: 12px 0; }
.control-group label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; }

input[type="range"] { width: 100%; cursor: pointer; }
input[type="number"], input[type="text"], select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; margin-top: 4px; }

.mt-15 { margin-top: 15px; display: block; }

.checkbox-group { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.checkbox-group label { display: flex; align-items: center; gap: 5px; font-size: 0.9rem; cursor: pointer; }

.rename-section { background: #f1f5f9; padding: 12px; border-radius: 8px; margin-top: 15px; }
.section-title { font-size: 0.8rem; font-weight: bold; margin-bottom: 8px; }
.rename-group { display: flex; gap: 5px; }
.input-unit { flex: 1; display: flex; flex-direction: column; }
.input-unit span { font-size: 0.7rem; color: #64748b; }
.input-unit input { padding: 6px; font-size: 0.85rem; }
.info-text { font-size: 0.75rem; color: #64748b; margin-top: 6px; }

.btn-main { width: 100%; padding: 22px; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 1.3rem; font-weight: bold; cursor: pointer; transition: all 0.2s; }
.btn-main:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-main:disabled { background: #94a3b8; cursor: not-allowed; }

footer { text-align: center; margin-top: 40px; padding-bottom: 40px; color: #64748b; font-size: 0.9rem; border-top: 1px solid var(--border); padding-top: 20px; }

.footer-policy-links { margin-bottom: 15px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.footer-link { background: none; border: none; color: var(--primary); cursor: pointer; text-decoration: underline; margin: 0 5px; font-size: 0.85rem; }

.seo-content { margin-top: 30px; text-align: left; padding: 20px; background: #f1f5f9; border-radius: 12px; }
.seo-content h4 { color: #475569; margin-bottom: 10px; }
.seo-content p { font-size: 0.8rem; color: #64748b; line-height: 1.6; margin-bottom: 10px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 100; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal.active { display: flex; }
.modal-content { background: white; padding: 30px; border-radius: 16px; width: 90%; max-width: 600px; max-height: 80vh; display: flex; flex-direction: column; }
.scroll-area { overflow-y: auto; margin: 15px 0; padding-right: 10px; }
.btn-close { padding: 12px; background: #334155; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; }

@media (max-width: 768px) {
    .settings-grid { grid-template-columns: 1fr; }
    .ad-container { flex-wrap: wrap; }
    .ad-space-mini { flex: 0 0 calc(50% - 5px); }
}