/* 메인 컨테이너 스타일 */
.spell-checker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    text-align: center;
    margin: 30px 0 20px;
    color: #333;
    font-weight: 700;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    margin: 10px auto 0;
}

/* 입력 섹션 스타일 */
.input-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
    flex: 1;
    min-width: 300px;
}

.text-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.text-input-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.character-count {
    font-size: 0.9rem;
    color: #666;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.text-area-container {
    position: relative;
}

textarea#inputText {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Noto Sans KR', sans-serif;
    resize: vertical;
    box-sizing: border-box;
}

textarea#inputText:focus {
    border-color: #74ebd5;
    outline: none;
    box-shadow: 0 0 5px rgba(116, 235, 213, 0.3);
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.check-button {
    padding: 12px 20px;
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    flex: 2;
}

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

.reset-button {
    padding: 12px 20px;
    background: #f1f1f1;
    color: #666;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.reset-button:hover {
    background: #e6e6e6;
}

/* API 설정 스타일 */
.api-settings {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.api-settings summary {
    cursor: pointer;
    color: #666;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s;
    user-select: none;
}

.api-settings summary:hover {
    color: #74ebd5;
}

.settings-content {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 10px;
}

.api-selection {
    margin-bottom: 15px;
}

.api-selection label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.api-selection select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.api-key-input {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.api-key-input label {
    width: 100%;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.api-key-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.small-button {
    padding: 8px 15px;
    background: #74ebd5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.small-button:hover {
    background: #5fcebf;
}

.api-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
    line-height: 1.4;
}

.api-info i {
    margin-right: 5px;
    color: #74ebd5;
}

/* API 응답 스타일 */
.api-response {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.api-response-header {
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.api-response-content {
    white-space: pre-wrap;
    font-family: monospace;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
}

/* 결과 섹션 스타일 */
.result-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    flex: 1;
    min-width: 300px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.result-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.error-summary {
    font-size: 0.9rem;
    color: #666;
}

.result-content {
    min-height: 250px;
}

.intro-message {
    text-align: center;
    color: #888;
    padding: 50px 0;
    font-size: 1.1rem;
}

.success-message {
    text-align: center;
    color: #28a745;
    padding: 50px 0;
    font-size: 1.1rem;
}

.loading-message {
    text-align: center;
    color: #666;
    padding: 50px 0;
    font-size: 1.1rem;
}

.loading-message i {
    margin-right: 10px;
    color: #74ebd5;
}

.error-message {
    text-align: center;
    color: #e74c3c;
    padding: 20px;
    background: #fff7f7;
    border-radius: 5px;
    margin: 20px 0;
}

/* 오류 항목 스타일 */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.error-item {
    background: #f8f9fa;
    border-left: 4px solid #ff7675;
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.error-item.ignored {
    opacity: 0.6;
    border-left-color: #888;
}

.error-text {
    font-weight: 500;
    color: #e74c3c;
    margin-bottom: 5px;
}

.suggestion {
    color: #27ae60;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.error-actions {
    display: flex;
    gap: 10px;
}

.apply-single, .skip-single {
    padding: 5px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.apply-single {
    background: #74ebd5;
    color: white;
}

.apply-single:hover {
    background: #5fcebf;
}

.skip-single {
    background: #f1f1f1;
    color: #666;
}

.skip-single:hover {
    background: #e6e6e6;
}

.ignored-text {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* 교정 모달 스타일 */
.correction-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
}

.close-modal {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.error-text {
    font-weight: 500;
    color: #e74c3c;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff7f7;
    border-radius: 5px;
    border-left: 3px solid #e74c3c;
}

.suggestion-header {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.suggestion-text {
    color: #27ae60;
    padding: 10px;
    background: #f7fff7;
    border-radius: 5px;
    border-left: 3px solid #27ae60;
}

.modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.apply-button, .skip-button {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.apply-button {
    background: #74ebd5;
    color: white;
    flex: 1;
}

.apply-button:hover {
    background: #5fcebf;
}

.skip-button {
    background: #f1f1f1;
    color: #666;
    flex: 1;
}

.skip-button:hover {
    background: #e6e6e6;
}

/* FAQ 섹션 스타일 */
.faq-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.faq-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: #3d5cb9;
    margin-top: 0;
    margin-bottom: 15px;
}

.faq-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* 코멘트 섹션 스타일 */
.comments-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.comments-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 20px;
}

/* 반응형 설정 */
@media (max-width: 992px) {
    .spell-checker-container {
        flex-direction: column;
    }
    
    .input-section, .result-section {
        width: 100%;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .check-button, .reset-button {
        width: 100%;
    }
    
    .api-key-input {
        flex-direction: column;
    }
    
    .api-key-input input, 
    .api-key-input button {
        width: 100%;
    }
} 