/* 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    
    min-height: 100vh;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 260px;
    padding-left: 10px;
    padding-right: 10px;
}

/* 섹션 기본 비노출, active만 보임 */
.section { display: none; }
.section.active { display: block; }

.section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.section.active {
    display: block;
}
.section h2 {
    color: #4a5568;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid #e2e8f0;
    padding-bottom: 10px;
}
.template-box {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}
.template-title {
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 10px;
}
.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 15px 0;
    overflow-x: auto;
    white-space: pre-line;
}
.comparison-section {
    margin: 30px 0;
}
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.comparison-card {
    border-radius: 10px;
    padding: 20px;
    position: relative;
}
.good-example {
    background: linear-gradient(135deg, #e6fffa 0%, #f0fff4 100%);
    border: 2px solid #68d391;
}
.bad-example {
    background: linear-gradient(135deg, #fed7d7 0%, #fed7e2 100%);
    border: 2px solid #f56565;
}
.comparison-title {
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.good-example .comparison-title {
    color: #22543d;
}
.bad-example .comparison-title {
    color: #742a2a;
}
.comparison-icon {
    margin-right: 10px;
    font-size: 1.2em;
}
.generator-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}
.form-group {
    margin-bottom: 15px;
}
.form-label {
    display: block;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 5px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1em;
}
.form-textarea {
    height: 100px;
    resize: vertical;
}
.generated-template {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    margin-top: 15px;
    white-space: pre-wrap;
    min-height: 200px;
    border: 2px solid #4a5568;
    outline: none;
}
.generated-template:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.editable-notice {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #2c7a7b;
}
.faq-section {
    margin: 30px 0;
}
.faq-item {
    background: #f7fafc;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-question {
    padding: 20px;
    background: #edf2f7;
    cursor: pointer;
    font-weight: bold;
    color: #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover {
    background: #e2e8f0;
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #4a5568;
}
.faq-answer.open {
    padding: 20px;
    max-height: 300px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-icon.open {
    transform: rotate(180deg);
}
.memo-board {
    background: #fef5e7;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.memo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.memo-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}
.memo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.memo-item-title {
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
}
.memo-item-content {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.4;
}
.memo-form {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
}
.memo-form.active {
    display: block;
}
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}
.btn-secondary:hover {
    background: #cbd5e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
}