/* 에디터 전용 스타일 */

/* 기본 레이아웃은 기존 에디터와 동일하게 유지 */
.editor-page {
    padding: 0;
}

.editor-page .main-content {
    max-width: none;
    padding: 0;
}

.editor-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.editor-wrapper {
    padding-top: 64px;
}

/* 저장 모달 */
.save-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.save-modal.open {
    display: flex;
}

.save-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

.save-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.save-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.save-modal-close:hover {
    color: #333;
}

.save-form .form-group {
    margin-bottom: 20px;
}

.save-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.save-form .form-input,
.save-form .form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.save-form .form-textarea {
    resize: vertical;
    min-height: 80px;
}

.save-form .form-input:focus,
.save-form .form-textarea:focus {
    outline: none;
    border-color: #4A90D9;
}

.visibility-toggle {
    display: flex;
    gap: 12px;
}

.visibility-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.visibility-option:hover {
    border-color: #aaa;
}

.visibility-option.selected {
    border-color: #4A90D9;
    background: #f0f7ff;
}

.visibility-option-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.visibility-option-label {
    font-size: 14px;
    font-weight: 500;
}

.save-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.save-modal-actions .btn {
    flex: 1;
    padding: 14px;
    font-size: 15px;
}

/* 도안 정보 표시 (불러온 도안) */
.design-info-bar {
    display: none;
    background: #f0f7ff;
    padding: 12px 20px;
    border-bottom: 1px solid #d0e5ff;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.design-info-bar.visible {
    display: flex;
}

.design-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.design-title-display {
    font-weight: 600;
    font-size: 15px;
}

.design-author-display {
    color: #666;
    font-size: 13px;
}

.design-info-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 에디터 상단 버튼 수정 */
.editor-header-actions {
    display: flex;
    gap: 8px;
}

.editor-header-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* 로그인 필요 알림 */
.login-prompt {
    background: #fff3cd;
    padding: 12px 20px;
    border-bottom: 1px solid #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.login-prompt a {
    color: #856404;
    font-weight: 600;
}

/* 좋아요 버튼 */
.like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.like-btn:hover {
    background: #fff0f0;
    border-color: #ffaaaa;
}

.like-btn.liked {
    background: #ffe0e0;
    border-color: #ff6b6b;
    color: #e53935;
}

.like-btn svg {
    width: 18px;
    height: 18px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .editor-wrapper {
        padding-top: 56px;
    }
    
    .design-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .save-modal-content {
        padding: 20px;
        margin: 10px;
    }
}
